]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/cris/boot/Makefile
x86/build: Specify elf_i386 linker emulation explicitly for i386 objects
[mirror_ubuntu-bionic-kernel.git] / arch / cris / boot / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # arch/cris/boot/Makefile
4 #
5
6 objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
7 objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
8
9 OBJCOPYFLAGS = -O binary $(objcopyflags-y)
10
11
12 subdir- := compressed rescue
13 targets := Image
14
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'