1 # SPDX-License-Identifier: GPL-2.0
2 # arch/h8300/boot/Makefile
4 targets
:= vmlinux.srec vmlinux.bin zImage
7 OBJCOPYFLAGS_vmlinux.srec
:= -Osrec
8 OBJCOPYFLAGS_vmlinux.bin
:= -Obinary
9 OBJCOPYFLAGS_zImage
:= -O binary
-R .note
-R .comment
-R .stab
-R .stabstr
-S
11 UIMAGE_LOADADDR
= $(CONFIG_RAMBASE
)
12 UIMAGE_ENTRYADDR
= $(shell /bin
/bash
-c
'printf "0x%08x" \
13 $$[$(CONFIG_RAMBASE) + $(CONFIG_OFFSET)]')
15 $(obj
)/vmlinux.srec
$(obj
)/vmlinux.bin
: vmlinux FORCE
16 $(call if_changed
,objcopy
)
18 $(obj
)/zImage
: $(obj
)/compressed
/vmlinux FORCE
19 $(call if_changed
,objcopy
)
21 $(obj
)/compressed
/vmlinux
: FORCE
22 $(Q
)$(MAKE
) $(build
)=$(obj
)/compressed
$@
24 $(obj
)/uImage.bin
: $(obj
)/vmlinux.bin
25 $(call if_changed
,uimage
,none
)
27 CLEAN_FILES
+= arch
/$(ARCH
)/vmlinux.bin arch
/$(ARCH
)/vmlinux.srec arch
/$(ARCH
)/uImage.bin