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) \