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 <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2018-08-17 19:17:42 +08:00
parent 77c36d3572
commit 2943395673
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -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
+5
View File
@@ -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) \