diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-01-04 04:53:19 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-01-04 04:53:37 -0600 |
commit | 2f6215b0b601d6e3ec356f720f806910d9e1e458 (patch) | |
tree | cc7792061c3276e6e354b7608dba76357e24f3e9 /sys-kernel/easy-kernel | |
parent | 57140bbf2c41b1169cea7e0ad1fcb2fceb0b4e81 (diff) | |
download | packages-2f6215b0b601d6e3ec356f720f806910d9e1e458.tar.gz packages-2f6215b0b601d6e3ec356f720f806910d9e1e458.tar.bz2 packages-2f6215b0b601d6e3ec356f720f806910d9e1e458.tar.xz packages-2f6215b0b601d6e3ec356f720f806910d9e1e458.zip |
easy-kernel: handle STUPID edge case where Portage $ARCH != uname -s != kernel $ARCH
Diffstat (limited to 'sys-kernel/easy-kernel')
-rw-r--r-- | sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild | 18 | ||||
-rw-r--r-- | sys-kernel/easy-kernel/files/config_4.4.39_p6_ppc | 23 |
2 files changed, 18 insertions, 23 deletions
diff --git a/sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild b/sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild index d14ddc0ec..93afa5ba4 100644 --- a/sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild +++ b/sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild @@ -25,16 +25,32 @@ src_prepare() { src_configure() { cp "${FILESDIR}"/config_${PV}_${ARCH} "${S}"/.config || \ die "No configuration available for your architecture." + + case ${ARCH} in + ppc) export ARCH="powerpc" ;; + ppc64) export ARCH="powerpc64" ;; + esac + emake silentoldconfig } src_compile() { - emake bzImage + case ${ARCH} in + ppc) export ARCH="powerpc" ;; + ppc64) export ARCH="powerpc64" ;; + esac + + emake emake modules emake firmware } src_install() { + case ${ARCH} in + ppc) export ARCH="powerpc" ;; + ppc64) export ARCH="powerpc64" ;; + esac + dodir /boot emake install INSTALL_PATH="${D}/boot" emake modules_install INSTALL_MOD_PATH="${D}" diff --git a/sys-kernel/easy-kernel/files/config_4.4.39_p6_ppc b/sys-kernel/easy-kernel/files/config_4.4.39_p6_ppc index 4feddf5ce..5819a40ac 100644 --- a/sys-kernel/easy-kernel/files/config_4.4.39_p6_ppc +++ b/sys-kernel/easy-kernel/files/config_4.4.39_p6_ppc @@ -429,28 +429,7 @@ CONFIG_SUSPEND_FREEZER=y CONFIG_HIBERNATE_CALLBACKS=y CONFIG_HIBERNATION=y CONFIG_PM_STD_PARTITION="" -CONFIG_TOI_CORE=y - -# -# Image Storage (you need at least one allocator) -# -CONFIG_TOI_FILE=y -CONFIG_TOI_SWAP=y - -# -# General Options -# -CONFIG_TOI_CRYPTO=y -CONFIG_TOI_USERUI=y -CONFIG_TOI_USERUI_DEFAULT_PATH="/usr/local/sbin/tuxoniceui_text" -CONFIG_TOI_DEFAULT_IMAGE_SIZE_LIMIT=-2 -# CONFIG_TOI_KEEP_IMAGE is not set -CONFIG_TOI_REPLACE_SWSUSP=y -# CONFIG_TOI_IGNORE_LATE_INITCALL is not set -CONFIG_TOI_DEFAULT_WAIT=25 -CONFIG_TOI_DEFAULT_EXTRA_PAGES_ALLOWANCE=2000 -# CONFIG_TOI_CHECKSUM is not set -CONFIG_TOI=y +# CONFIG_TOI_CORE is not set CONFIG_PM_SLEEP=y # CONFIG_PM_AUTOSLEEP is not set # CONFIG_PM_WAKELOCKS is not set |