]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/cris/boot/Makefile
Merge branches 'pm-domains', 'pm-sleep' and 'pm-cpufreq'
[mirror_ubuntu-artful-kernel.git] / arch / cris / boot / Makefile
1 #
2 # arch/cris/boot/Makefile
3 #
4
5 objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
6 objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
7
8 OBJCOPYFLAGS = -O binary $(objcopyflags-y)
9
10
11 subdir- := compressed rescue
12 targets := Image
13
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'