Stephen Warren | 300db34 | 2012-11-27 16:29:15 -0700 | [diff] [blame^] | 1 | # |
2 | # arch/microblaze/boot/Makefile | ||||
3 | # | ||||
4 | |||||
5 | obj-y += linked_dtb.o | ||||
6 | |||||
7 | # Ensure system.dtb exists | ||||
8 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||||
9 | |||||
10 | # Generate system.dtb from $(DTB).dtb | ||||
11 | ifneq ($(DTB),system) | ||||
12 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||||
13 | $(call if_changed,cp) | ||||
14 | endif | ||||
15 | |||||
16 | quiet_cmd_cp = CP $< $@$2 | ||||
17 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||||
18 | |||||
19 | # Rule to build device tree blobs | ||||
20 | DTC_FLAGS := -p 1024 | ||||
21 | |||||
22 | clean-files += *.dtb |