aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2017-06-01 21:27:52 +0000
committerDenys Dmytriyenko <denys@ti.com>2017-06-11 18:36:14 -0400
commitcda2ad72402e0701ab38a2c1b62689951a83ed17 (patch)
tree1fb41bbb292375255c1cb2e09129ee79c2cddb9f /classes
parentadcaa50740e0e9dca17314de2c173472f20d48bc (diff)
downloadmeta-ti-cda2ad72402e0701ab38a2c1b62689951a83ed17.tar.gz
meta-ti-cda2ad72402e0701ab38a2c1b62689951a83ed17.tar.bz2
meta-ti-cda2ad72402e0701ab38a2c1b62689951a83ed17.zip
ti-pdk: clean up variables by adding TI_PDK_ prefix
* Add TI_PDK_ prefix to variables which may be set by recipes to stress that they are used to configure the ti-pdk class. * Deprecate TI_PDK_XDCARGS in favor of TI_PDK_LIMIT_SOCS as both are used to define a list of SOCs. Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Cc: Justin Sobota <jsobota@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/ti-pdk.bbclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/classes/ti-pdk.bbclass b/classes/ti-pdk.bbclass
index 981ec12e8..45024b10c 100644
--- a/classes/ti-pdk.bbclass
+++ b/classes/ti-pdk.bbclass
@@ -48,9 +48,11 @@ export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages"
export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl"
-XDCMAKE ?= "1"
-LIMSOCS ?= ""
-LIMBOARDS ?= ""
+TI_PDK_XDCMAKE ?= "1"
+TI_PDK_LIMIT_SOCS ?= ""
+TI_PDK_LIMIT_BOARDS ?= ""
+
+TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}"
PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}"
@@ -60,7 +62,7 @@ do_configure() {
mkdir -p ${BUILD_DIR}
cp -r ${S}/* ${BUILD_DIR}
- if [ "${XDCMAKE}" == "1" ]
+ if [ "${TI_PDK_XDCMAKE}" == "1" ]
then
cd ${BUILD_DIR}
@@ -74,16 +76,16 @@ do_configure() {
do_compile() {
- if [ "${XDCMAKE}" == "1" ]
+ if [ "${TI_PDK_XDCMAKE}" == "1" ]
then
${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR .
- ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${XDCARGS}" ROOTDIR="${ROOTDIR}" -PR .
- ${XDC_INSTALL_DIR}/xdc release XDCARGS="${XDCARGS}" -PR .
+ ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
+ ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}" -PR .
else
BUILD_DIR=${B}/`get_build_dir_bash`
cd ${BUILD_DIR}
- make release LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+ make release LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}"
fi
}