Skip to contentSkip to conversation

meta-ti: Guard use of SOC_FAMILY to account for it being empty

PATCH New Khem Raj 1 participant 1 message Jan 27, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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

---
 recipes-ti/linuxutils/ti-linuxutils.inc |   10 +++++-----
 recipes-ti/syslink/ti-syslink.inc       |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
recipes-ti/linuxutils/ti-linuxutils.inc +5 -5
index d6cd18c..06b254d 100644
@@ -23,12 +23,12 @@ do_compile() {
     do_make_scripts
     unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
 
-    case ${SOC_FAMILY} in 
-    dm365)
+    case "${SOC_FAMILY}" in
+    "dm365")
             modules="cmem edma irq";;
-    omap3)
+    "omap3")
             modules="cmem sdma";;
-	dm355)
+    "dm355")
             modules="cmem edma irq";;
     *)
             modules="cmem"
@@ -58,7 +58,7 @@ do_install () {
       EXEC_DIR="${D}${installdir}/ti-linuxutils-app/cmem-app" \
       install
     # Install EDMA
-    if [ ${SOC_FAMILY} = "dm365" ] ; then
+    if [ "${SOC_FAMILY}" = "dm365" ] ; then
         cd ${S}/packages/ti/sdo/linuxutils/edma/apps
         make \
          LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
recipes-ti/syslink/ti-syslink.inc +1 -1
index 8cc5775..d7df8c1 100644
@@ -196,7 +196,7 @@ do_install () {
     # Install the rtos example apps 
     install -d ${D}/${installdir}/ti-syslink-examples/dsp
     cd ${SYSLINK_ROOT}/ti/syslink/samples/rtos
-    for i in $(find . -name "*.${SYSLINKSUFFIX}" | grep ${SOC_FAMILY}); do
+    for i in $(find . -name "*.${SYSLINKSUFFIX}" | grep "${SOC_FAMILY}"); do
         install ${i} ${D}/${installdir}/ti-syslink-examples/dsp/
     done
 
Signature · 1 line
1.7.5.4