summaryrefslogtreecommitdiff
path: root/sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-01-04 04:53:19 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-01-04 04:53:37 -0600
commit2f6215b0b601d6e3ec356f720f806910d9e1e458 (patch)
treecc7792061c3276e6e354b7608dba76357e24f3e9 /sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild
parent57140bbf2c41b1169cea7e0ad1fcb2fceb0b4e81 (diff)
downloadpackages-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/easy-kernel-4.4.39_p6.ebuild')
-rw-r--r--sys-kernel/easy-kernel/easy-kernel-4.4.39_p6.ebuild18
1 files changed, 17 insertions, 1 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}"