Makefile (9a64e8e0ace51b309fdcff4b4754b3649250382a) Makefile (300db34a7256c94dbb7676f1e87101a3bb13cdd9)
1#
2# arch/microblaze/boot/Makefile
3#
4
1#
2# arch/microblaze/boot/Makefile
3#
4
5obj-y += linked_dtb.o
6
7targets := linux.bin linux.bin.gz simpleImage.%
8
9OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
10
5targets := linux.bin linux.bin.gz simpleImage.%
6
7OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
8
11# Ensure system.dtb exists
12$(obj)/linked_dtb.o: $(obj)/system.dtb
13
14# Generate system.dtb from $(DTB).dtb
15ifneq ($(DTB),system)
16$(obj)/system.dtb: $(obj)/$(DTB).dtb
17 $(call if_changed,cp)
18endif
19
20$(obj)/linux.bin: vmlinux FORCE
21 $(call if_changed,objcopy)
22 $(call if_changed,uimage)
23 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
24
25$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
26 $(call if_changed,gzip)
27 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

--- 12 unchanged lines hidden (view full) ---

40$(obj)/simpleImage.%: vmlinux FORCE
41 $(call if_changed,cp,.unstrip)
42 $(call if_changed,objcopy)
43 $(call if_changed,uimage)
44 $(call if_changed,strip)
45 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
46
47
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`')'

--- 12 unchanged lines hidden (view full) ---

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
48# Rule to build device tree blobs
49DTC_FLAGS := -p 1024
50
51$(obj)/%.dtb: $(src)/dts/%.dts FORCE
52 $(call if_changed_dep,dtc)
53
54clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
37clean-files += simpleImage.*.unstrip linux.bin.ub