[RFC][PATCH] kbuild: Generate symbols for DTO application in DTBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Emit symbols section in DTBs to permit symbol resolution when applying DTOs.

Signed-off-by: Marek Vasut <marex@xxxxxxx>
Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---
NOTE: I am sending this as RFC, because I suspect there is a better way how
      to pass extra flags to DTC during kernel build ?
      Maybe from shell environment somehow ?
      Or maybe b7e70391a5451 ("arm64: tegra: Enable device-tree overlay support")
      is the way to go about this ?
---
 arch/arm/boot/dts/Makefile   | 3 +++
 arch/arm64/boot/dts/Makefile | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 252353fb4e3b3..2d50302d077dd 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
+
+DTC_FLAGS += -@
+
 dtb-$(CONFIG_ARCH_ALPINE) += \
 	alpine-db.dtb
 dtb-$(CONFIG_MACH_ARTPEC6) += \
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index 1ba04e31a4387..f7b3c86517a0e 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
+
+DTC_FLAGS += -@
+
 subdir-y += actions
 subdir-y += allwinner
 subdir-y += altera
-- 
2.35.1




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux