Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | # |
2 | |||||
3 | obj-y += linked_dtb.o | ||||
4 | |||||
5 | # Ensure system.dtb exists | ||||
6 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||||
7 | |||||
8 | # Generate system.dtb from $(DTB).dtb | ||||
9 | ifneq ($(DTB),system) | ||||
10 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||||
11 | $(call if_changed,cp) | ||||
12 | endif | ||||
13 | |||||
14 | quiet_cmd_cp = CP $< $@$2 | ||||
15 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||||
16 | |||||
17 | # Rule to build device tree blobs | ||||
18 | DTC_FLAGS := -p 1024 |