aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-25 10:13:47 -0600
committerTom Rini <trini@konsulko.com>2021-09-25 12:31:54 -0400
commit25a8ff692f1b57b8e28fac21fb7f567c7f2318ec (patch)
tree292ee0e2f82f56ca8ea21ef6c85ebea968796ddf
parentbbf5a00587999ed24b0f353588a8a43d333731cb (diff)
downloadu-boot-WIP/2021-09-25-TI-platform-updates.zip
u-boot-WIP/2021-09-25-TI-platform-updates.tar.gz
u-boot-WIP/2021-09-25-TI-platform-updates.tar.bz2
dm: core: Don't include ofnode functions with of-platdataWIP/2021-09-25-TI-platform-updates
These functions cannot work with of-platdata since libfdt is not available. At present when dev_read_...() functions are used it produces error messages about ofnode which is confusing. Adjust the Makefile and header to produce an error message for the actual dev_read...() function which is called. This makes it easier to see what code needs to be converted for use with of-platdata. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/core/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/core/Makefile b/drivers/core/Makefile
index 5edd4e4..725e6e9 100644
--- a/drivers/core/Makefile
+++ b/drivers/core/Makefile
@@ -15,6 +15,8 @@ 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_OF_CONTROL) += of_extra.o ofnode.o read_extra.o
+ifdef CONFIG_$(SPL_TPL_)OF_LIBFDT
+obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += of_extra.o ofnode.o read_extra.o
+endif
ccflags-$(CONFIG_DM_DEBUG) += -DDEBUG