mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
arm: xilinx: Use device tree which can be passed on cmd line
DEVICE_TREE variable has been added by commit 6ab6b2afa0
("dts: re-write dts/Makefile more simply with Kbuild")
where DT can be specified on command line. If it is not then
CONFIG_DEFAULT_DEVICE_TREE is used to ensure backward compatibility.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
b4f8468187
commit
312f2c5b14
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ spl/board/xilinx/zynq/ps_init_gpl.o board/xilinx/zynq/ps_init_gpl.o: $(PS_INIT_F
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(init-objs),)
|
ifeq ($(init-objs),)
|
||||||
hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
|
hw-platform-y :=$(shell echo $(DEVICE_TREE))
|
||||||
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
|
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
|
||||||
$(hw-platform-y)/ps7_init_gpl.o)
|
$(hw-platform-y)/ps7_init_gpl.o)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -14,7 +14,7 @@ spl/board/xilinx/zynqmp/ps_init_gpl.o board/xilinx/zynqmp/ps_init_gpl.o: $(PS_IN
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(init-objs),)
|
ifeq ($(init-objs),)
|
||||||
hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
|
hw-platform-y :=$(shell echo $(DEVICE_TREE))
|
||||||
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/psu_init_gpl.c),\
|
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/psu_init_gpl.c),\
|
||||||
$(hw-platform-y)/psu_init_gpl.o)
|
$(hw-platform-y)/psu_init_gpl.o)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue