Blame view
dts/Makefile
1.05 KB
bbb0b128c fdt: Add support ... |
1 2 3 |
# # Copyright (c) 2011 The Chromium OS Authors. # |
1a4596601 Add GPL-2.0+ SPDX... |
4 |
# SPDX-License-Identifier: GPL-2.0+ |
bbb0b128c fdt: Add support ... |
5 6 7 8 |
# # 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... |
9 10 |
DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%) ifeq ($(DEVICE_TREE),) |
3284c8b8c dts: generate mul... |
11 |
DEVICE_TREE := unset |
6ab6b2afa dts: re-write dts... |
12 |
endif |
c8391a0e9 dts/Makefile: uni... |
13 |
|
d18926af3 fdt: Rename the D... |
14 15 |
ifneq ($(EXT_DTB),) DTB := $(EXT_DTB) |
63b4b5bae fdt: Add DEV_TREE... |
16 |
else |
3284c8b8c dts: generate mul... |
17 |
DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb |
63b4b5bae fdt: Add DEV_TREE... |
18 |
endif |
c8391a0e9 dts/Makefile: uni... |
19 |
|
3284c8b8c dts: generate mul... |
20 |
$(obj)/dt.dtb: $(DTB) FORCE |
b9d1dbd4d kbuild: use cmd_s... |
21 |
$(call if_changed,shipped) |
bbb0b128c fdt: Add support ... |
22 |
|
6ab6b2afa dts: re-write dts... |
23 |
targets += dt.dtb |
bbb0b128c fdt: Add support ... |
24 |
|
3284c8b8c dts: generate mul... |
25 26 27 28 29 30 31 32 33 34 35 |
$(DTB): arch-dtbs $(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) arch-dtbs: $(Q)$(MAKE) $(build)=arch/$(ARCH)/dts dtbs |
bbb0b128c fdt: Add support ... |
36 |
|
6ab6b2afa dts: re-write dts... |
37 |
.SECONDARY: $(obj)/dt.dtb.S |
bbb0b128c fdt: Add support ... |
38 |
|
6ab6b2afa dts: re-write dts... |
39 |
obj-$(CONFIG_OF_EMBED) := dt.dtb.o |
bbb0b128c fdt: Add support ... |
40 |
|
6ab6b2afa dts: re-write dts... |
41 42 |
dtbs: $(obj)/dt.dtb @: |
bbb0b128c fdt: Add support ... |
43 |
|
6ab6b2afa dts: re-write dts... |
44 |
clean-files := dt.dtb.S |
3284c8b8c dts: generate mul... |
45 46 |
# Let clean descend into dts directories |
6bd04bb48 kbuild: fix bugs ... |
47 |
subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/sandbox/dts ../arch/x86/dts |