summaryrefslogtreecommitdiffstats
path: root/classes/ti-pdk.bbclass
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/ti-pdk.bbclass
parentadcaa50740e0e9dca17314de2c173472f20d48bc (diff)
downloadmeta-ti-cda2ad72402e0701ab38a2c1b62689951a83ed17.tar.gz
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/ti-pdk.bbclass')
-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 981ec12e..45024b10 100644
--- a/classes/ti-pdk.bbclass
+++ b/classes/ti-pdk.bbclass
@@ -48,9 +48,11 @@ export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
48export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages" 48export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages"
49export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" 49export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl"
50 50
51XDCMAKE ?= "1" 51TI_PDK_XDCMAKE ?= "1"
52LIMSOCS ?= "" 52TI_PDK_LIMIT_SOCS ?= ""
53LIMBOARDS ?= "" 53TI_PDK_LIMIT_BOARDS ?= ""
54
55TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}"
54 56
55PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" 57PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}"
56 58
@@ -60,7 +62,7 @@ do_configure() {
60 mkdir -p ${BUILD_DIR} 62 mkdir -p ${BUILD_DIR}
61 cp -r ${S}/* ${BUILD_DIR} 63 cp -r ${S}/* ${BUILD_DIR}
62 64
63 if [ "${XDCMAKE}" == "1" ] 65 if [ "${TI_PDK_XDCMAKE}" == "1" ]
64 then 66 then
65 cd ${BUILD_DIR} 67 cd ${BUILD_DIR}
66 68
@@ -74,16 +76,16 @@ do_configure() {
74 76
75do_compile() { 77do_compile() {
76 78
77 if [ "${XDCMAKE}" == "1" ] 79 if [ "${TI_PDK_XDCMAKE}" == "1" ]
78 then 80 then
79 ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . 81 ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR .
80 ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${XDCARGS}" ROOTDIR="${ROOTDIR}" -PR . 82 ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
81 ${XDC_INSTALL_DIR}/xdc release XDCARGS="${XDCARGS}" -PR . 83 ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}" -PR .
82 else 84 else
83 BUILD_DIR=${B}/`get_build_dir_bash` 85 BUILD_DIR=${B}/`get_build_dir_bash`
84 cd ${BUILD_DIR} 86 cd ${BUILD_DIR}
85 87
86 make release LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}" 88 make release LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}"
87 fi 89 fi
88} 90}
89 91