config:msm:common: Add instructions to compile external dtc

This change adds the compilation of the external dtc project as a
PRE_DEFCONFIG_CMDS requirement. This change is to be used by the dt overlay
merge script to setup the path for all the required tools.

Change-Id: I0051836ccac0356b1370a06faf715185f76b4f83
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
This commit is contained in:
Siddharth Gupta 2020-10-27 18:44:41 -07:00
parent 9413184168
commit 8f5fd8f114

View File

@ -4,6 +4,17 @@ CC="${ROOT_DIR}/common/scripts/gcc-wrapper.py ${CC}"
BRANCH=msm-waipio
CONFIG_TARGET=msm.${MSM_ARCH}
################################################################################
##
function compile_external_dtc() {
(
cd ${ROOT_DIR}/external/dtc
NO_PYTHON=1 CC=cc make
)
export PATH=${ROOT_DIR}/external/dtc:${PATH}
}
append_cmd PRE_DEFCONFIG_CMDS 'compile_external_dtc'
################################################################################
## DTB general support
DTB_DIR=vendor/qcom