Skip to contentSkip to conversation

routerstationpro: strip the output kernel of .comment

PATCH New [email protected] 1 participant 2 messages Apr 10, 2013

lore
Share & tools
lore
#0 lore raw

cover routerstationpro: strip the output kernel of .comment

Hi Richard,

This is the patch that reverts 9cd3816e4db97c8fd093a120a75a2b5d193afcdd, and enables do_strip for routerstation pro.

[YOCTO 3515]
[YOCTO 4220]

M

#1 lore raw

PATCH 1/1 routerstationpro: strip the output kernel of .comment section

From: Michel Thebeau <[email protected]>

The routerstationpro has a 16mb flash which the kernel image should fit into. The default build type for vmlinux then should be a stripped vmlinux.

Use KERNEL_IMAGE_STRIP_EXTRA_SECTIONS to do this.

Reverts commit 9cd3816e4db97c8fd093a120a75a2b5d193afcdd, which causes:
RedBoot> load -v vlm-boards/19256/kernel
Using default protocol (TFTP)
Unrecognized image type: 0x0

[YOCTO 3515]
[YOCTO 4220]

---
 meta-yocto-bsp/conf/machine/routerstationpro.conf |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-yocto-bsp/conf/machine/routerstationpro.conf +3 -2
index a727e2a..723625b 100644
@@ -6,8 +6,9 @@ require conf/machine/include/tune-mips32.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 serial"
 
-KERNEL_ALT_IMAGETYPE = "vmlinux"
-KERNEL_IMAGETYPE = "vmlinux.bin"
+KERNEL_IMAGETYPE = "vmlinux"
+KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
+KERNEL_IMAGE_STRIP_EXTRA_SECTIONS  = ".comment"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 PREFERRED_VERSION_linux-yocto ?= "3.4%"
Signature · 1 line
1.7.9.7