arm64: add config option to enable DT overlay

Add config option to enable DT overlay. This option sets DTC_FLAGS to
enable DT compilation with overlay support.

Change-Id: I74b1ed9828ec94093fab40a70c0cd0c155796c94
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
This commit is contained in:
Puja Gupta 2017-03-17 13:27:09 -07:00 committed by Venkata Narendra Kumar Gutta
parent 63eeb69d77
commit 989a41a35e
2 changed files with 11 additions and 1 deletions

View file

@ -1303,6 +1303,13 @@ config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
Space separated list of names of dtbs to append when
building a concatenated Image.gz-dtb.
config BUILD_ARM64_DT_OVERLAY
bool "enable DT overlay compilation support"
depends on OF
help
This option enables support for DT overlay compilation.
Enabling this option sets required flags to add DT
overlay in the compilation.
endmenu
menu "Userspace binary formats"

View file

@ -125,8 +125,11 @@ endif
KBUILD_DTBS := dtbs
all: $(KBUILD_DTBS) $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_KERNEL_IMAGE_NAME))
ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
export DTC_FLAGS := -@
endif
all: $(KBUILD_DTBS) $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_KERNEL_IMAGE_NAME))
Image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@