diff options
| author | Jacob Stiffler <j-stiffler@ti.com> | 2017-06-01 21:27:53 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2017-06-11 18:36:19 -0400 |
| commit | 5375c16c9149554ce445b9029a2cc63269b82272 (patch) | |
| tree | 59716308a77f197a6002a43733606e9d25582a94 /classes | |
| parent | cda2ad72402e0701ab38a2c1b62689951a83ed17 (diff) | |
| download | meta-ti-5375c16c9149554ce445b9029a2cc63269b82272.tar.gz | |
ti-pdk: limit the set of cores to build
* Use LIMIT_CORES to enable only the cores with available toolchains.
* Add new variables which will allow recipes to fully configure the
options provided to make.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/ti-pdk.bbclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/classes/ti-pdk.bbclass b/classes/ti-pdk.bbclass index 45024b10..91f28441 100644 --- a/classes/ti-pdk.bbclass +++ b/classes/ti-pdk.bbclass | |||
| @@ -49,8 +49,13 @@ export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_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 | TI_PDK_XDCMAKE ?= "1" | 51 | TI_PDK_XDCMAKE ?= "1" |
| 52 | |||
| 53 | # By default, only build the cores with available toolchains | ||
| 54 | TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x c66xdsp_1 c66xdsp_2 arm9_0 c674x" | ||
| 52 | TI_PDK_LIMIT_SOCS ?= "" | 55 | TI_PDK_LIMIT_SOCS ?= "" |
| 53 | TI_PDK_LIMIT_BOARDS ?= "" | 56 | TI_PDK_LIMIT_BOARDS ?= "" |
| 57 | TI_PDK_MAKE_TARGET ?= "release" | ||
| 58 | TI_PDK_EXTRA_MAKE ?= "" | ||
| 54 | 59 | ||
| 55 | TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" | 60 | TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" |
| 56 | 61 | ||
| @@ -85,7 +90,11 @@ do_compile() { | |||
| 85 | BUILD_DIR=${B}/`get_build_dir_bash` | 90 | BUILD_DIR=${B}/`get_build_dir_bash` |
| 86 | cd ${BUILD_DIR} | 91 | cd ${BUILD_DIR} |
| 87 | 92 | ||
| 88 | make release LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" | 93 | make ${TI_PDK_MAKE_TARGET} \ |
| 94 | LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ | ||
| 95 | LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ | ||
| 96 | LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ | ||
| 97 | ${TI_PDK_EXTRA_MAKE} | ||
| 89 | fi | 98 | fi |
| 90 | } | 99 | } |
| 91 | 100 | ||
