Blame view
dts/Makefile
1.54 KB
83d290c56 SPDX: Convert all... |
1 |
# SPDX-License-Identifier: GPL-2.0+ |
bbb0b128c fdt: Add support ... |
2 3 |
# # Copyright (c) 2011 The Chromium OS Authors. |
bbb0b128c fdt: Add support ... |
4 5 6 |
# This Makefile builds the internal U-Boot fdt if CONFIG_OF_CONTROL is # enabled. See doc/README.fdt-control for more details. |
6ab6b2afa dts: re-write dts... |
7 8 |
DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%) ifeq ($(DEVICE_TREE),) |
3284c8b8c dts: generate mul... |
9 |
DEVICE_TREE := unset |
6ab6b2afa dts: re-write dts... |
10 |
endif |
c8391a0e9 dts/Makefile: uni... |
11 |
|
d18926af3 fdt: Rename the D... |
12 13 |
ifneq ($(EXT_DTB),) DTB := $(EXT_DTB) |
63b4b5bae fdt: Add DEV_TREE... |
14 |
else |
a3444bd09 Revert "Ensure de... |
15 |
DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb |
63b4b5bae fdt: Add DEV_TREE... |
16 |
endif |
c8391a0e9 dts/Makefile: uni... |
17 |
|
9bd76b807 spl: make CONFIG_... |
18 19 |
$(obj)/dt-spl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE $(call if_changed,fdtgrep) |
43b6e38b2 dts: add property... |
20 21 22 23 |
ifeq ($(CONFIG_OF_DTB_PROPS_REMOVE),y) $(obj)/dt.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE $(call if_changed,fdt_rm_props) else |
3284c8b8c dts: generate mul... |
24 |
$(obj)/dt.dtb: $(DTB) FORCE |
b9d1dbd4d kbuild: use cmd_s... |
25 |
$(call if_changed,shipped) |
43b6e38b2 dts: add property... |
26 |
endif |
bbb0b128c fdt: Add support ... |
27 |
|
9bd76b807 spl: make CONFIG_... |
28 |
targets += dt.dtb dt-spl.dtb |
bbb0b128c fdt: Add support ... |
29 |
|
a3444bd09 Revert "Ensure de... |
30 |
$(DTB): arch-dtbs |
3284c8b8c dts: generate mul... |
31 32 33 34 35 36 37 |
$(Q)test -e $@ || ( \ echo >&2; \ echo >&2 "Device Tree Source is not correctly specified."; \ echo >&2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'"; \ echo >&2 "or build with 'DEVICE_TREE=<device_tree>' argument"; \ echo >&2; \ /bin/false) |
2737dfe09 kbuild: make arch... |
38 |
PHONY += arch-dtbs |
3284c8b8c dts: generate mul... |
39 |
arch-dtbs: |
a3444bd09 Revert "Ensure de... |
40 |
$(Q)$(MAKE) $(build)=arch/$(ARCH)/dts dtbs |
bbb0b128c fdt: Add support ... |
41 |
|
9bd76b807 spl: make CONFIG_... |
42 43 44 45 46 47 |
ifeq ($(CONFIG_SPL_BUILD),y) obj-$(CONFIG_OF_EMBED) := dt-spl.dtb.o # support "out-of-tree" build for dtb-spl $(obj)/dt-spl.dtb.o: $(obj)/dt-spl.dtb.S FORCE $(call if_changed_dep,as_o_S) else |
6ab6b2afa dts: re-write dts... |
48 |
obj-$(CONFIG_OF_EMBED) := dt.dtb.o |
9bd76b807 spl: make CONFIG_... |
49 |
endif |
bbb0b128c fdt: Add support ... |
50 |
|
9bd76b807 spl: make CONFIG_... |
51 |
dtbs: $(obj)/dt.dtb $(obj)/dt-spl.dtb |
6ab6b2afa dts: re-write dts... |
52 |
@: |
bbb0b128c fdt: Add support ... |
53 |
|
9bd76b807 spl: make CONFIG_... |
54 |
clean-files := dt.dtb.S dt-spl.dtb.S |
3284c8b8c dts: generate mul... |
55 56 |
# Let clean descend into dts directories |
17f2ffea3 dts: riscv: updat... |
57 |
subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts ../arch/powerpc/dts ../arch/riscv/dts |