diff options
| author | Simon Glass <sjg@chromium.org> | 2020-10-03 09:25:22 -0600 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:17 -0600 |
| commit | a652d9c73a6eea1fdfb901c66178a4d804fac95d (patch) | |
| tree | 85eaeea9428ceb50ce9579f87edf49e442447a22 /drivers/core/Makefile | |
| parent | 08c3b88dd145d3f7f06e7ad8458905bde7a286ef (diff) | |
| download | u-boot-a652d9c73a6eea1fdfb901c66178a4d804fac95d.tar.gz u-boot-a652d9c73a6eea1fdfb901c66178a4d804fac95d.tar.xz u-boot-a652d9c73a6eea1fdfb901c66178a4d804fac95d.zip | |
dm: Avoid using #ifdef for CONFIG_OF_LIVE
At present this option results in a number of #ifdefs due to the presence
or absence of the global_data of_root member.
Add a few macros to global_data.h to work around this. Update the code
accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/Makefile')
| -rw-r--r-- | drivers/core/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/Makefile b/drivers/core/Makefile index 10f4bece33..5edd4e4135 100644 --- a/drivers/core/Makefile +++ b/drivers/core/Makefile @@ -11,7 +11,7 @@ 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_OF_LIVE) += of_access.o of_addr.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 |
