mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:37:10 +02:00
strip the .note.gnu.build-id section from kernel images, which on some platforms can lead to unusable 3.1G kernel image files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14357 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
92541a3db8
commit
db92b585b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user