Makefile 1.0 KB
Newer Older
1 2 3 4
#
# arch/microblaze/boot/Makefile
#

J
Jason Wu 已提交
5
targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
6

7
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
8 9 10

$(obj)/linux.bin: vmlinux FORCE
	$(call if_changed,objcopy)
J
Jason Wu 已提交
11 12 13
	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
14
	$(call if_changed,uimage)
15 16 17 18 19 20
	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
	$(call if_changed,gzip)
	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

21 22 23 24
quiet_cmd_cp = CP      $< $@$2
	cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)

quiet_cmd_strip = STRIP   $@
25
	cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
M
Michal Simek 已提交
26
				-K _fdt_start vmlinux -o $@
27

28
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
29

30 31
$(obj)/simpleImage.%: vmlinux FORCE
	$(call if_changed,cp,.unstrip)
32 33
	$(call if_changed,objcopy)
	$(call if_changed,uimage)
34 35 36
	$(call if_changed,strip)
	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

37
clean-files += simpleImage.*.unstrip linux.bin.ub