diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-25 10:13:47 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-25 14:11:14 -0400 |
commit | b664a8e83eb1aa40f0f5d2e837855165a843c676 (patch) | |
tree | b37275b62aca106dcd337f7355585042ae18f179 | |
parent | 17274d904e6dc9cc3acad91de55893b9f437a6f2 (diff) | |
download | u-boot-TEST/ofplat-done-wrong-failures.zip u-boot-TEST/ofplat-done-wrong-failures.tar.gz u-boot-TEST/ofplat-done-wrong-failures.tar.bz2 |
dm: core: Don't include ofnode functions with of-platdataTEST/ofplat-done-wrong-failures
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/Makefile | 4 |
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 |