mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
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: 312f2c5b14
("arm: xilinx: Use device tree which can be passed on cmd line")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
58ecd9ad0b
commit
9c18aaa23c
2 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,11 @@ spl/board/xilinx/zynq/ps_init_gpl.o board/xilinx/zynq/ps_init_gpl.o: $(PS_INIT_F
|
|||
$(CC) $(c_flags) -I $(srctree)/$(src) -c -o $@ $^
|
||||
endif
|
||||
|
||||
DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%)
|
||||
ifeq ($(DEVICE_TREE),)
|
||||
DEVICE_TREE := unset
|
||||
endif
|
||||
|
||||
ifeq ($(init-objs),)
|
||||
hw-platform-y :=$(shell echo $(DEVICE_TREE))
|
||||
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
|
||||
|
|
|
@ -13,6 +13,11 @@ spl/board/xilinx/zynqmp/ps_init_gpl.o board/xilinx/zynqmp/ps_init_gpl.o: $(PS_IN
|
|||
$(CC) $(c_flags) -I $(srctree)/$(src) -c -o $@ $^
|
||||
endif
|
||||
|
||||
DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%)
|
||||
ifeq ($(DEVICE_TREE),)
|
||||
DEVICE_TREE := unset
|
||||
endif
|
||||
|
||||
ifeq ($(init-objs),)
|
||||
hw-platform-y :=$(shell echo $(DEVICE_TREE))
|
||||
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/psu_init_gpl.c),\
|
||||
|
|
Loading…
Add table
Reference in a new issue