summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-01-26 16:31:29 -0800
committerKoen Kooi <koen@dominion.thruhere.net>2012-01-27 09:04:17 +0100
commitfa3014ad441476ced7abe745ca49c0242ec4545d (patch)
tree26f24d82062d68ce62838952eb271f0575a87957
parentec465d19cb4458e34f76011465e10406bdb101d6 (diff)
downloadmeta-ti-fa3014ad441476ced7abe745ca49c0242ec4545d.tar.gz
meta-ti: Guard use of SOC_FAMILY to account for it being empty
Right now SOC_FAMILY is set to 'Unknown' by default by angstrom distro but others might not set it as all so it will be empty hence we take care of the case if this is empty Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--recipes-ti/linuxutils/ti-linuxutils.inc10
-rw-r--r--recipes-ti/syslink/ti-syslink.inc2
2 files changed, 6 insertions, 6 deletions
diff --git a/recipes-ti/linuxutils/ti-linuxutils.inc b/recipes-ti/linuxutils/ti-linuxutils.inc
index d6cd18c6..06b254dd 100644
--- a/recipes-ti/linuxutils/ti-linuxutils.inc
+++ b/recipes-ti/linuxutils/ti-linuxutils.inc
@@ -23,12 +23,12 @@ do_compile() {
23 do_make_scripts 23 do_make_scripts
24 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 24 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
25 25
26 case ${SOC_FAMILY} in 26 case "${SOC_FAMILY}" in
27 dm365) 27 "dm365")
28 modules="cmem edma irq";; 28 modules="cmem edma irq";;
29 omap3) 29 "omap3")
30 modules="cmem sdma";; 30 modules="cmem sdma";;
31 dm355) 31 "dm355")
32 modules="cmem edma irq";; 32 modules="cmem edma irq";;
33 *) 33 *)
34 modules="cmem" 34 modules="cmem"
@@ -58,7 +58,7 @@ do_install () {
58 EXEC_DIR="${D}${installdir}/ti-linuxutils-app/cmem-app" \ 58 EXEC_DIR="${D}${installdir}/ti-linuxutils-app/cmem-app" \
59 install 59 install
60 # Install EDMA 60 # Install EDMA
61 if [ ${SOC_FAMILY} = "dm365" ] ; then 61 if [ "${SOC_FAMILY}" = "dm365" ] ; then
62 cd ${S}/packages/ti/sdo/linuxutils/edma/apps 62 cd ${S}/packages/ti/sdo/linuxutils/edma/apps
63 make \ 63 make \
64 LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \ 64 LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
diff --git a/recipes-ti/syslink/ti-syslink.inc b/recipes-ti/syslink/ti-syslink.inc
index 8cc57751..d7df8c19 100644
--- a/recipes-ti/syslink/ti-syslink.inc
+++ b/recipes-ti/syslink/ti-syslink.inc
@@ -196,7 +196,7 @@ do_install () {
196 # Install the rtos example apps 196 # Install the rtos example apps
197 install -d ${D}/${installdir}/ti-syslink-examples/dsp 197 install -d ${D}/${installdir}/ti-syslink-examples/dsp
198 cd ${SYSLINK_ROOT}/ti/syslink/samples/rtos 198 cd ${SYSLINK_ROOT}/ti/syslink/samples/rtos
199 for i in $(find . -name "*.${SYSLINKSUFFIX}" | grep ${SOC_FAMILY}); do 199 for i in $(find . -name "*.${SYSLINKSUFFIX}" | grep "${SOC_FAMILY}"); do
200 install ${i} ${D}/${installdir}/ti-syslink-examples/dsp/ 200 install ${i} ${D}/${installdir}/ti-syslink-examples/dsp/
201 done 201 done
202 202