From 29433956738374ebce6bb983eb14127b2ebed047 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Fri, 17 Aug 2018 19:17:42 +0800 Subject: [PATCH] rk: kbuild: Introduce CONFIG_DTC_SYMBOLS dtc generation of symbols by CONFIG_DTC_SYMBOLS. For support device tree overlay. Change-Id: Ia10496031bc02fd3a4ff98ab0acfc6fc9a54951b Signed-off-by: Tao Huang --- drivers/of/Kconfig | 7 +++++++ scripts/Makefile.lib | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 18450437d5d5..517b9a49212d 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -12,6 +12,13 @@ menuconfig OF if OF +config DTC_SYMBOLS + bool "Enable dtc generation of symbols for overlays support" + depends on DTC + help + Set DTC_FLAGS += -@ + Android OS must enable this option. + config OF_UNITTEST bool "Device Tree runtime unit tests" depends on !SPARC diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c0d3b0ec8f70..6beeb3be1bc3 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -317,6 +317,11 @@ endif DTC ?= $(objtree)/scripts/dtc/dtc DTC_FLAGS += $(call dtc-option,-Wno-interrupt_provider) +# Generation of symbols for Android +ifeq ($(CONFIG_DTC_SYMBOLS),y) +DTC_FLAGS += -@ +endif + # Disable noisy checks by default ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) DTC_FLAGS += $(call dtc-option,-Wno-unit_address_vs_reg) \