mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 00:21:37 +00:00
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>
This commit is contained in:
parent
4a092350d1
commit
5a1b25c201
2 changed files with 25 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue