georges.me...@wanadoo.fr wrote: > Hello all, > Cris image creation patch - objcopy on my machine creates 3Gb image without '-R .note.gnu.build-id' switch.
hin...@alala /work/git/openwrt $ svn diff Index: include/kernel-defaults.mk =================================================================== --- include/kernel-defaults.mk (revision 13873) +++ include/kernel-defaults.mk (working copy) @@ -101,8 +101,8 @@ 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 -R .reginfo -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL) + $(KERNEL_CROSS)objcopy -R .reginfo -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf endef define Kernel/Clean/Default Without patch: hin...@alala /work/git/openwrt $ l build_dir/linux-etrax/ total 4160 drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:34 base-files drwxr-xr-x 8 hinkok hinkok 4096 Jan 5 13:32 e100boot drwxr-xr-x 10 hinkok hinkok 4096 Jan 5 13:34 iptables-1.4.1.1 drwxr-xr-x 25 hinkok hinkok 4096 Jan 5 13:34 linux-2.6.25.20 drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:34 mkfimage drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:34 mtd drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:34 packages -rw-r--r-- 1 hinkok hinkok 3222891118 Jan 5 13:34 vmlinux -rwxr-xr-x 1 hinkok hinkok 1666612 Jan 5 13:34 vmlinux.elf -rw-r--r-- 1 hinkok hinkok 903213 Jan 5 13:34 vmlinuz With patch: hin...@alala /work/git/openwrt $ l build_dir/linux-etrax/ total 4144 drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:35 base-files drwxr-xr-x 8 hinkok hinkok 4096 Jan 5 13:32 e100boot drwxr-xr-x 10 hinkok hinkok 4096 Jan 5 13:35 iptables-1.4.1.1 drwxr-xr-x 25 hinkok hinkok 4096 Jan 5 13:36 linux-2.6.25.20 drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:36 mkfimage drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:35 mtd drwxr-xr-x 3 hinkok hinkok 4096 Jan 5 13:35 packages -rwxr-xr-x 1 hinkok hinkok 1649262 Jan 5 13:36 vmlinux -rwxr-xr-x 1 hinkok hinkok 1658360 Jan 5 13:36 vmlinux.elf -rw-r--r-- 1 hinkok hinkok 903212 Jan 5 13:36 vmlinuz Best regards, Hinko -- Hinko Kočevar, OSS developer ČETRTA POT, d.o.o. Planina 3, 4000 Kranj, SI EU tel ++386 (0) 4 280 66 03 e-mail hinko.koce...@cetrtapot.si http www.cetrtapot.si _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel