diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2019-09-13 15:14:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-16 09:06:45 +0200 |
commit | 27112f5b5541d736a560dbc9f059d879d4b354a3 (patch) | |
tree | 6d8423c28fb3e163aa99d87c660a4ba98bbbabdf /scripts | |
parent | 4d6ff095684d180221fd924e8ba13fcc77c8366a (diff) | |
download | barebox-27112f5b5541d736a560dbc9f059d879d4b354a3.tar.gz barebox-27112f5b5541d736a560dbc9f059d879d4b354a3.tar.xz |
dtc: optionally add add __symbols__ to build-in devicetree
The devicetree overlay driver requires the __symbols__ node to resolve
phandles to the base devicetree. If Barebox has to apply the overlay to
the live devicetree, the build-in devicetree must be built with the
__symbols__ node.
It is configurable, because adding __symbols__ significantly increases
the size of the devicetree binary. When configuring Barebox, a developer
should be able to enable or disable devicetree overlay support and as
this only affects the build-in devicetree, which is linked to the image
anyway, use a Kconfig item for configuring the __symbols__.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c4d307ae30..ad0484de3a 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -292,6 +292,10 @@ DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-unique_unit_address \ -Wno-pci_device_reg +ifeq ($(CONFIG_OF_OVERLAY_LIVE), y) +DTC_FLAGS += -@ +endif + # Generate an assembly file to wrap the output of the device tree compiler quiet_cmd_dt_S_dtb = DTB $@ cmd_dt_S_dtb = $(srctree)/scripts/gen-dtb-s $(subst -,_,$(*F)) $< $(CONFIG_IMD) > $@ |