linux-kexecboot.inc: disable modules and debugging to make kernel smaller
authorKoen Kooi <koen@openembedded.org>
Tue, 16 Dec 2008 13:22:01 +0000 (14:22 +0100)
committerKoen Kooi <koen@openembedded.org>
Tue, 16 Dec 2008 13:22:01 +0000 (14:22 +0100)
* most devices can reuse the defconfig of their 'proper' kernel now

packages/kexecboot/linux-kexecboot.inc

index 3f931f5..7a899f1 100644 (file)
@@ -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
 }