License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / cris / boot / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4 2#
66ab3a74 3# arch/cris/boot/Makefile
1da177e4
LT
4#
5
66ab3a74 6objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
d717809b 7objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
66ab3a74
JN
8
9OBJCOPYFLAGS = -O binary $(objcopyflags-y)
10
1da177e4 11
87f5a7f7
JN
12subdir- := compressed rescue
13targets := Image
1da177e4 14
87f5a7f7
JN
15$(obj)/Image: vmlinux FORCE
16 $(call if_changed,objcopy)
17 @echo ' Kernel: $@ is ready'
18
19$(obj)/compressed/vmlinux: $(obj)/Image FORCE
20 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
21 $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
22
23$(obj)/zImage: $(obj)/compressed/vmlinux
24 @cp $< $@
25 @echo ' Kernel: $@ is ready'