]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/cris/boot/Makefile
CRIS: Discard .note.gnu.build-id section
[net-next-2.6.git] / arch / cris / boot / Makefile
CommitLineData
1da177e4 1#
66ab3a74 2# arch/cris/boot/Makefile
1da177e4
LT
3#
4
66ab3a74 5objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
d717809b 6objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
66ab3a74
JN
7
8OBJCOPYFLAGS = -O binary $(objcopyflags-y)
9
1da177e4 10
87f5a7f7
JN
11subdir- := compressed rescue
12targets := Image
1da177e4 13
87f5a7f7
JN
14$(obj)/Image: vmlinux FORCE
15 $(call if_changed,objcopy)
16 @echo ' Kernel: $@ is ready'
17
18$(obj)/compressed/vmlinux: $(obj)/Image FORCE
19 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
20 $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
21
22$(obj)/zImage: $(obj)/compressed/vmlinux
23 @cp $< $@
24 @echo ' Kernel: $@ is ready'