Skip to content
Snippets Groups Projects
Verified Commit 2f6215b0 authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

easy-kernel: handle STUPID edge case where Portage $ARCH != uname -s != kernel $ARCH

parent 57140bbf
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment