diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-02-02 16:39:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-02-02 16:39:28 +0000 |
commit | 7b1820a1b7b839ccdfd540231fe417792c7fe66e (patch) | |
tree | 60d819606996f4d2ae7adc00e7cda7efb7301dcd | |
parent | b1ba71cbd2fa44d6b291ff78ebb4199b68d44508 (diff) | |
download | mtk-20170518-7b1820a1b7b839ccdfd540231fe417792c7fe66e.zip mtk-20170518-7b1820a1b7b839ccdfd540231fe417792c7fe66e.tar.gz mtk-20170518-7b1820a1b7b839ccdfd540231fe417792c7fe66e.tar.bz2 |
strip the .note.gnu.build-id section from kernel images, which on some platforms can lead to unusable 3.1G kernel image files
SVN-Revision: 14357
-rw-r--r-- | include/kernel-defaults.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index e3897a6..258c8cc 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -102,11 +102,13 @@ define Kernel/CompileModules/Default +$(MAKE) $(KERNEL_MAKEOPTS) modules endef +OBJCOPY_STRIP = -R .reginfo -R .note -R .comment -R .mdebug -R .note.gnu.build-id + define Kernel/CompileImage/Default $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init) +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNELNAME) - $(KERNEL_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) - $(KERNEL_CROSS)objcopy -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf + $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) + $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf endef define Kernel/Clean/Default |