summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-03 06:01:13 -0700
committerSimon Glass <sjg@chromium.org>2021-03-22 19:23:27 +1300
commit5a1b25c2011e88e44626202f3cde05e65209c1e4 (patch)
tree2801507264a338025303893238203943adbb39ad /scripts
parent4a092350d18d1aea637de6be8802a9de0cca194f (diff)
downloadu-boot-5a1b25c2011e88e44626202f3cde05e65209c1e4.tar.gz
u-boot-5a1b25c2011e88e44626202f3cde05e65209c1e4.tar.xz
u-boot-5a1b25c2011e88e44626202f3cde05e65209c1e4.zip
dm: of-platadata: Add option for device instantiation
Add Kconfig options to support build-time device instantiation. When fully implemented, this will allow dtoc to create U-Boot devices (i.e. struct udevice records) at build time, thus reducing code space in SPL. For now this defaults to off, but will be enabled when the rest of the implementation is in place. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.spl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index bfae9a4fca..f3bb793681 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -313,6 +313,10 @@ pythonpath = PYTHONPATH=scripts/dtc/pylibfdt
DTOC_ARGS := $(pythonpath) $(srctree)/tools/dtoc/dtoc \
-d $(obj)/$(SPL_BIN).dtb -p $(SPL_NAME)
+ifneq ($(CONFIG_$(SPL_TPL_)OF_PLATDATA_INST),)
+DTOC_ARGS += -i
+endif
+
quiet_cmd_dtoc = DTOC $@
cmd_dtoc = $(DTOC_ARGS) -c $(obj)/dts -C include/generated all