Changeset 14357


Ignore:
Timestamp:
2009-02-02T17:39:28+01:00 (8 years ago)
Author:
nbd
Message:

strip the .note.gnu.build-id section from kernel images, which on some platforms can lead to unusable 3.1G kernel image files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-defaults.mk

    r14272 r14357  
    103103endef 
    104104 
     105OBJCOPY_STRIP = -R .reginfo -R .note -R .comment -R .mdebug -R .note.gnu.build-id 
     106 
    105107define Kernel/CompileImage/Default 
    106108        $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init) 
    107109        +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNELNAME) 
    108         $(KERNEL_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) 
    109         $(KERNEL_CROSS)objcopy -R .reginfo -R .note -R .comment -R .mdebug -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf 
     110        $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) 
     111        $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf 
    110112endef 
    111113 
Note: See TracChangeset for help on using the changeset viewer.