]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
300db34a | 2 | # |
300db34a | 3 | |
37c8a5fa | 4 | ifneq ($(DTB),) |
300db34a SW |
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 | |
37c8a5fa | 15 | endif |
300db34a SW |
16 | |
17 | quiet_cmd_cp = CP $< $@$2 | |
18 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | |
19 | ||
20 | # Rule to build device tree blobs | |
21 | DTC_FLAGS := -p 1024 |