diff options
author | Jacob Stiffler <j-stiffler@ti.com> | 2017-06-01 21:27:52 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-06-11 18:36:14 -0400 |
commit | cda2ad72402e0701ab38a2c1b62689951a83ed17 (patch) | |
tree | 1fb41bbb292375255c1cb2e09129ee79c2cddb9f | |
parent | adcaa50740e0e9dca17314de2c173472f20d48bc (diff) | |
download | meta-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.bbclass | 18 | ||||
-rw-r--r-- | recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 16 | ||||
-rw-r--r-- | recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb | 8 | ||||
-rw-r--r-- | recipes-bsp/pktlib/pktlib-rtos_git.bb | 6 | ||||
-rw-r--r-- | recipes-bsp/qmss-lld/qmss-lld-rtos_git.bb | 8 | ||||
-rw-r--r-- | recipes-bsp/rm-lld/rm-lld-rtos_git.bb | 8 | ||||
-rw-r--r-- | recipes-ti/ipc/ipc-transport-qmss-rtos_git.bb | 6 | ||||
-rw-r--r-- | recipes-ti/ipc/ipc-transport-srio-rtos_git.bb | 2 |
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" | |||
48 | export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages" | 48 | export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages" |
49 | export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" | 49 | export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" |
50 | 50 | ||
51 | XDCMAKE ?= "1" | 51 | TI_PDK_XDCMAKE ?= "1" |
52 | LIMSOCS ?= "" | 52 | TI_PDK_LIMIT_SOCS ?= "" |
53 | LIMBOARDS ?= "" | 53 | TI_PDK_LIMIT_BOARDS ?= "" |
54 | |||
55 | TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" | ||
54 | 56 | ||
55 | PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" | 57 | PARALLEL_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 | ||
75 | do_compile() { | 77 | do_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 | |||
8 | DEPENDS_remove = "${PN}" | 8 | DEPENDS_remove = "${PN}" |
9 | 9 | ||
10 | # Build with make instead of XDC | 10 | # Build with make instead of XDC |
11 | XDCMAKE = "0" | 11 | TI_PDK_XDCMAKE = "0" |
12 | 12 | ||
13 | LIMSOCS_ti33x = "am335x" | 13 | TI_PDK_LIMIT_SOCS_ti33x = "am335x" |
14 | LIMSOCS_ti43x = "am437x" | 14 | TI_PDK_LIMIT_SOCS_ti43x = "am437x" |
15 | LIMSOCS_omap-a15 = "am571x am572x" | 15 | TI_PDK_LIMIT_SOCS_omap-a15 = "am571x am572x" |
16 | LIMSOCS_k2hk = "k2h k2k" | 16 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
17 | LIMSOCS_k2l-evm = "k2l" | 17 | TI_PDK_LIMIT_SOCS_k2l-evm = "k2l" |
18 | LIMSOCS_k2e = "k2e" | 18 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
19 | LIMSOCS_k2g = "k2g" | 19 | TI_PDK_LIMIT_SOCS_k2g = "k2g" |
20 | 20 | ||
21 | export PDK_CSL_ROOT_PATH ="${WORKDIR}/build" | 21 | export PDK_CSL_ROOT_PATH ="${WORKDIR}/build" |
22 | export DEST_ROOT="${S}" | 22 | export 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 | ||
10 | XDCARGS_k2hk = "k2h k2k" | 10 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
11 | XDCARGS_k2e = "k2e" | 11 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
12 | XDCARGS_k2l-evm = "k2l" | 12 | TI_PDK_LIMIT_SOCS_k2l-evm = "k2l" |
13 | XDCARGS_k2g = "k2g" | 13 | TI_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 | ||
11 | XDCARGS_k2hk = "k2h k2k" | 11 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
12 | XDCARGS_k2e = "k2e" | 12 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
13 | XDCARGS_k2l-evm = "k2l" | 13 | TI_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 | ||
7 | DEPENDS_append = " rm-lld-rtos" | 7 | DEPENDS_append = " rm-lld-rtos" |
8 | 8 | ||
9 | XDCARGS_k2hk = "k2h k2k" | 9 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
10 | XDCARGS_k2l-evm = "k2l" | 10 | TI_PDK_LIMIT_SOCS_k2l-evm = "k2l" |
11 | XDCARGS_k2e = "k2e" | 11 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
12 | XDCARGS_k2g = "k2g" | 12 | TI_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 | ||
7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
8 | 8 | ||
9 | XDCARGS_k2hk = "k2h k2k" | 9 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
10 | XDCARGS_k2e = "k2e" | 10 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
11 | XDCARGS_k2l-evm = "k2l" | 11 | TI_PDK_LIMIT_SOCS_k2l-evm = "k2l" |
12 | XDCARGS_k2g = "k2g" | 12 | TI_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 | ||
18 | S = "${WORKDIR}/${IPC_TRANSPORT_QMSS_DESTSUFFIX}" | 18 | S = "${WORKDIR}/${IPC_TRANSPORT_QMSS_DESTSUFFIX}" |
19 | 19 | ||
20 | XDCARGS_k2hk = "k2h k2k" | 20 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
21 | XDCARGS_k2e = "k2e" | 21 | TI_PDK_LIMIT_SOCS_k2e = "k2e" |
22 | XDCARGS_k2l-evm = "k2l" | 22 | TI_PDK_LIMIT_SOCS_k2l-evm = "k2l" |
23 | 23 | ||
24 | export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" | 24 | export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" |
25 | XDCPATH_append = ";${IPC_INSTALL_DIR}/packages" | 25 | XDCPATH_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 | ||
19 | S = "${WORKDIR}/${IPC_TRANSPORT_SRIO_DESTSUFFIX}" | 19 | S = "${WORKDIR}/${IPC_TRANSPORT_SRIO_DESTSUFFIX}" |
20 | 20 | ||
21 | XDCARGS_k2hk = "k2h k2k" | 21 | TI_PDK_LIMIT_SOCS_k2hk = "k2h k2k" |
22 | 22 | ||
23 | export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" | 23 | export IPC_INSTALL_PATH = "${IPC_INSTALL_DIR}" |
24 | XDCPATH_append = ";${IPC_INSTALL_DIR}/packages" | 24 | XDCPATH_append = ";${IPC_INSTALL_DIR}/packages" |