summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--classes/ti-pdk.bbclass18
-rw-r--r--recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb16
-rw-r--r--recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb8
-rw-r--r--recipes-bsp/pktlib/pktlib-rtos_git.bb6
-rw-r--r--recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb8
-rw-r--r--recipes-bsp/rm-lld/rm-lld-rtos_git.bb8
-rw-r--r--recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb6
-rw-r--r--recipes-ti/ipc/ipc-transport-srio-rtos_git.bb2
8 files changed, 37 insertions, 35 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
diff --git a/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb b/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
index ab848bdd..6892daa5 100644
--- a/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
+++ b/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
@@ -8,15 +8,15 @@ inherit ti-pdk
8DEPENDS_remove = "${PN}" 8DEPENDS_remove = "${PN}"
9 9
10# Build with make instead of XDC 10# Build with make instead of XDC
11XDCMAKE = "0" 11TI_PDK_XDCMAKE = "0"
12 12
13LIMSOCS_ti33x = "am335x" 13TI_PDK_LIMIT_SOCS_ti33x = "am335x"
14LIMSOCS_ti43x = "am437x" 14TI_PDK_LIMIT_SOCS_ti43x = "am437x"
15LIMSOCS_omap-a15 = "am571x am572x" 15TI_PDK_LIMIT_SOCS_omap-a15 = "am571x am572x"
16LIMSOCS_k2hk = "k2h k2k" 16TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
17LIMSOCS_k2l-evm = "k2l" 17TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
18LIMSOCS_k2e = "k2e" 18TI_PDK_LIMIT_SOCS_k2e = "k2e"
19LIMSOCS_k2g = "k2g" 19TI_PDK_LIMIT_SOCS_k2g = "k2g"
20 20
21export PDK_CSL_ROOT_PATH ="${WORKDIR}/build" 21export PDK_CSL_ROOT_PATH ="${WORKDIR}/build"
22export DEST_ROOT="${S}" 22export DEST_ROOT="${S}"
diff --git a/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb b/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb
index ef1d959d..f27f5e06 100644
--- a/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb
+++ b/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb
@@ -7,7 +7,7 @@ DEPENDS_append = " rm-lld-rtos \
7 qmss-lld-rtos \ 7 qmss-lld-rtos \
8" 8"
9 9
10XDCARGS_k2hk = "k2h k2k" 10TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
11XDCARGS_k2e = "k2e" 11TI_PDK_LIMIT_SOCS_k2e = "k2e"
12XDCARGS_k2l-evm = "k2l" 12TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
13XDCARGS_k2g = "k2g" 13TI_PDK_LIMIT_SOCS_k2g = "k2g"
diff --git a/recipes-bsp/pktlib/pktlib-rtos_git.bb b/recipes-bsp/pktlib/pktlib-rtos_git.bb
index e76b445f..2cca3ea5 100644
--- a/recipes-bsp/pktlib/pktlib-rtos_git.bb
+++ b/recipes-bsp/pktlib/pktlib-rtos_git.bb
@@ -8,6 +8,6 @@ DEPENDS_append = " rm-lld-rtos \
8 cppi-lld-rtos \ 8 cppi-lld-rtos \
9" 9"
10 10
11XDCARGS_k2hk = "k2h k2k" 11TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
12XDCARGS_k2e = "k2e" 12TI_PDK_LIMIT_SOCS_k2e = "k2e"
13XDCARGS_k2l-evm = "k2l" 13TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
diff --git a/recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb b/recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb
index dcfacfd8..adb091af 100644
--- a/recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb
+++ b/recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb
@@ -6,7 +6,7 @@ PR = "${INC_PR}.0"
6 6
7DEPENDS_append = " rm-lld-rtos" 7DEPENDS_append = " rm-lld-rtos"
8 8
9XDCARGS_k2hk = "k2h k2k" 9TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
10XDCARGS_k2l-evm = "k2l" 10TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
11XDCARGS_k2e = "k2e" 11TI_PDK_LIMIT_SOCS_k2e = "k2e"
12XDCARGS_k2g = "k2g" 12TI_PDK_LIMIT_SOCS_k2g = "k2g"
diff --git a/recipes-bsp/rm-lld/rm-lld-rtos_git.bb b/recipes-bsp/rm-lld/rm-lld-rtos_git.bb
index c9364a3f..b5f2fd19 100644
--- a/recipes-bsp/rm-lld/rm-lld-rtos_git.bb
+++ b/recipes-bsp/rm-lld/rm-lld-rtos_git.bb
@@ -6,7 +6,7 @@ PR = "${INC_PR}.0"
6 6
7PACKAGE_ARCH = "${MACHINE_ARCH}" 7PACKAGE_ARCH = "${MACHINE_ARCH}"
8 8
9XDCARGS_k2hk = "k2h k2k" 9TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
10XDCARGS_k2e = "k2e" 10TI_PDK_LIMIT_SOCS_k2e = "k2e"
11XDCARGS_k2l-evm = "k2l" 11TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
12XDCARGS_k2g = "k2g" 12TI_PDK_LIMIT_SOCS_k2g = "k2g"
diff --git a/recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb b/recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb
index 2607a140..b34cdd4c 100644
--- a/recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb
+++ b/recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb
@@ -17,9 +17,9 @@ IPC_TRANSPORT_QMSS_DESTSUFFIX = "git/c66/qmss"
17 17
18S = "${WORKDIR}/${IPC_TRANSPORT_QMSS_DESTSUFFIX}" 18S = "${WORKDIR}/${IPC_TRANSPORT_QMSS_DESTSUFFIX}"
19 19
20XDCARGS_k2hk = "k2h k2k" 20TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
21XDCARGS_k2e = "k2e" 21TI_PDK_LIMIT_SOCS_k2e = "k2e"
22XDCARGS_k2l-evm = "k2l" 22TI_PDK_LIMIT_SOCS_k2l-evm = "k2l"
23 23
24export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" 24export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}"
25XDCPATH_append = ";${IPC_INSTALL_DIR}/packages" 25XDCPATH_append = ";${IPC_INSTALL_DIR}/packages"
diff --git a/recipes-ti/ipc/ipc-transport-srio-rtos_git.bb b/recipes-ti/ipc/ipc-transport-srio-rtos_git.bb
index b95d646f..19ee5c5a 100644
--- a/recipes-ti/ipc/ipc-transport-srio-rtos_git.bb
+++ b/recipes-ti/ipc/ipc-transport-srio-rtos_git.bb
@@ -18,7 +18,7 @@ IPC_TRANSPORT_SRIO_DESTSUFFIX = "git/c66/srio"
18 18
19S = "${WORKDIR}/${IPC_TRANSPORT_SRIO_DESTSUFFIX}" 19S = "${WORKDIR}/${IPC_TRANSPORT_SRIO_DESTSUFFIX}"
20 20
21XDCARGS_k2hk = "k2h k2k" 21TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k"
22 22
23export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" 23export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}"
24XDCPATH_append = ";${IPC_INSTALL_DIR}/packages" 24XDCPATH_append = ";${IPC_INSTALL_DIR}/packages"