• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# arch/microblaze/boot/Makefile
3#
4
5targets := linux.bin linux.bin.gz simpleImage.%
6
7OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
8
9$(obj)/linux.bin: vmlinux FORCE
10	$(call if_changed,objcopy)
11	$(call if_changed,uimage)
12	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
13
14$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
15	$(call if_changed,gzip)
16	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
17
18quiet_cmd_cp = CP      $< $@$2
19	cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
20
21quiet_cmd_strip = STRIP   $@
22	cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
23				-K _fdt_start vmlinux -o $@
24
25UIMAGE_IN = $@
26UIMAGE_OUT = $@.ub
27UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
28
29$(obj)/simpleImage.%: vmlinux FORCE
30	$(call if_changed,cp,.unstrip)
31	$(call if_changed,objcopy)
32	$(call if_changed,uimage)
33	$(call if_changed,strip)
34	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
35
36
37clean-files += simpleImage.*.unstrip linux.bin.ub
38