Skip to content
Snippets Groups Projects
Commit 3c02b480 authored by Jason Liu's avatar Jason Liu Committed by Xiaobo Xie
Browse files

Revert "scripts: Makefile: Enable creation of _symbols_ DT node for overlays"

This reverts commit 11db97ca.

The blamed commit changes the common Makefile and force creation of
__symbols__ node on the generated dtb files for all platforms.

This is not good and not acceptible under some cases due to this change
will increase the final DTB size a lot and bring big impact for others
who does not need creation of _symbols_ DT node for overlays.For
example, on i.MX OP-TEE, the maxsize of DT is 1MB, this patch will break
some of the i.MX6/i.MX7 boards to boot with OP-TEE enabled.

A similar patch was submitted and rejected by the community. The
following post discusses this:

https://lore.kernel.org/patchwork/patch/821645/



LS1028A-QDS, which needs the "-@" build flag for device tree overlays,
now sets the "DTC_FLAGS_fsl-ls1028a-qds" GNU Make variable in
arch/arm64/boot/dts/freescale/Makefile, and the support for overlays is
already built for it, so the reverted patch was not even necessary.

Signed-off-by: default avatarJason Liu <jason.hui.liu@nxp.com>
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
parent ff2c809a
No related branches found
No related tags found
No related merge requests found
...@@ -297,9 +297,6 @@ endif ...@@ -297,9 +297,6 @@ endif
DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
# Enable creation of _symbols_ node for DT overlays
DTC_FLAGS += -@
# Generate an assembly file to wrap the output of the device tree compiler # Generate an assembly file to wrap the output of the device tree compiler
quiet_cmd_dt_S_dtb= DTB $@ quiet_cmd_dt_S_dtb= DTB $@
cmd_dt_S_dtb= \ cmd_dt_S_dtb= \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment