mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 01:38:22 +00:00
eaf738559c
Sandbox unit tests in U-Boot proper load a test device tree to have some devices to work with. In order to do the same in SPL, we must enable SPL_OF_REAL. However, we already have SPL_OF_PLATDATA enabled. When generating platdata from a devicetree, it is expected that we will not need devicetree access functions (even though SPL_OF_CONTROL is enabled). This expectation does not hold for sandbox, so allow user control of SPL_OF_REAL. There are several places in the tree where conditions involving OF_PLATDATA or OF_REAL no longer function correctly when both of these options can be selected at the same time. Adjust these conditions accordingly. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
21 lines
773 B
Makefile
21 lines
773 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
|
|
obj-y += device.o fdtaddr.o lists.o root.o uclass.o util.o tag.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ACPIGEN) += acpi.o
|
|
obj-$(CONFIG_$(SPL_TPL_)DEVRES) += devres.o
|
|
obj-$(CONFIG_$(SPL_TPL_)DM_DEVICE_REMOVE) += device-remove.o
|
|
obj-$(CONFIG_$(SPL_)SIMPLE_BUS) += simple-bus.o
|
|
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
|
|
obj-$(CONFIG_DM) += dump.o
|
|
obj-$(CONFIG_$(SPL_TPL_)REGMAP) += regmap.o
|
|
obj-$(CONFIG_$(SPL_TPL_)SYSCON) += syscon-uclass.o
|
|
obj-$(CONFIG_$(SPL_)OF_LIVE) += of_access.o of_addr.o
|
|
ifndef CONFIG_DM_DEV_READ_INLINE
|
|
obj-$(CONFIG_OF_CONTROL) += read.o
|
|
endif
|
|
obj-$(CONFIG_$(SPL_)OF_PLATDATA) += read.o
|
|
obj-$(CONFIG_OF_CONTROL) += of_extra.o ofnode.o read_extra.o
|
|
|
|
ccflags-$(CONFIG_DM_DEBUG) += -DDEBUG
|