Commit 9c18aaa23c4a052000133979c268ae703966d0c8
1 parent
58ecd9ad0b
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
arm: xilinx: Fill DEVICE_TREE directly in Makefiles
DEVICE_TREE variable is not exported from dts/Makefile that's why it is necessary to setup directly before use. Fixes: 312f2c5b14fa ("arm: xilinx: Use device tree which can be passed on cmd line") Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Showing 2 changed files with 10 additions and 0 deletions Side-by-side Diff
board/xilinx/zynq/Makefile
... | ... | @@ -13,6 +13,11 @@ |
13 | 13 | $(CC) $(c_flags) -I $(srctree)/$(src) -c -o $@ $^ |
14 | 14 | endif |
15 | 15 | |
16 | +DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%) | |
17 | +ifeq ($(DEVICE_TREE),) | |
18 | +DEVICE_TREE := unset | |
19 | +endif | |
20 | + | |
16 | 21 | ifeq ($(init-objs),) |
17 | 22 | hw-platform-y :=$(shell echo $(DEVICE_TREE)) |
18 | 23 | init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ |
board/xilinx/zynqmp/Makefile
... | ... | @@ -13,6 +13,11 @@ |
13 | 13 | $(CC) $(c_flags) -I $(srctree)/$(src) -c -o $@ $^ |
14 | 14 | endif |
15 | 15 | |
16 | +DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%) | |
17 | +ifeq ($(DEVICE_TREE),) | |
18 | +DEVICE_TREE := unset | |
19 | +endif | |
20 | + | |
16 | 21 | ifeq ($(init-objs),) |
17 | 22 | hw-platform-y :=$(shell echo $(DEVICE_TREE)) |
18 | 23 | init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/psu_init_gpl.c),\ |