]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - arch/h8300/boot/Makefile
Merge existing fixes from regulator/for-5.8
[mirror_ubuntu-jammy-kernel.git] / arch / h8300 / boot / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 # arch/h8300/boot/Makefile
3
4 targets := vmlinux.srec vmlinux.bin zImage
5 subdir- := compressed
6
7 OBJCOPYFLAGS_vmlinux.srec := -Osrec
8 OBJCOPYFLAGS_vmlinux.bin := -Obinary
9 OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S
10
11 UIMAGE_LOADADDR = $(CONFIG_RAMBASE)
12 UIMAGE_ENTRYADDR = $(shell /bin/bash -c 'printf "0x%08x" \
13 $$[$(CONFIG_RAMBASE) + $(CONFIG_OFFSET)]')
14
15 $(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
16 $(call if_changed,objcopy)
17
18 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
19 $(call if_changed,objcopy)
20
21 $(obj)/compressed/vmlinux: FORCE
22 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
23
24 $(obj)/uImage.bin: $(obj)/vmlinux.bin
25 $(call if_changed,uimage,none)
26
27 CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec arch/$(ARCH)/uImage.bin