[oe-commits] Koen Kooi : linux-kexecboot.inc: disable modules and debugging to make kernel smaller

GIT User account git at amethyst.openembedded.net
Tue Dec 16 13:26:20 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 070a04a29a40b19198c045269f97b10e71a8c9af
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=070a04a29a40b19198c045269f97b10e71a8c9af

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Dec 16 14:22:01 2008 +0100

linux-kexecboot.inc: disable modules and debugging to make kernel smaller
* most devices can reuse the defconfig of their 'proper' kernel now

---

 packages/kexecboot/linux-kexecboot.inc |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/packages/kexecboot/linux-kexecboot.inc b/packages/kexecboot/linux-kexecboot.inc
index 3f931f5..7a899f1 100644
--- a/packages/kexecboot/linux-kexecboot.inc
+++ b/packages/kexecboot/linux-kexecboot.inc
@@ -30,9 +30,18 @@ KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}"
 do_compile[depends] += "${INITRAMFS_IMAGE}:do_rootfs"
 
 do_configure_append() {
-sed -i -e /CONFIG_BLK_DEV_INITRD/d -e /CONFIG_INITRAMFS_SOURCE/d ${S}/.config
+sed -i -e /CONFIG_BLK_DEV_INITRD/d \
+       -e /CONFIG_INITRAMFS_SOURCE/d \
+       -e /=m/d \
+       -e /CONFIG_MODULES/d \
+       -e /CONFIG_DEBUG_ERRORS/d \
+       -e /CONFIG_DEBUG_BUGVERBOSE/d \
+       -e /CONFIG_DEBUG_KERNEL/d \
+       ${S}/.config
+
 echo 'CONFIG_BLK_DEV_INITRD=y 
-CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"' >> ${S}/.config
+CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"
+CONFIG_MODULES=n' >> ${S}/.config
 
         yes '' | oe_runmake oldconfig
 }





More information about the Openembedded-commits mailing list