meta-ti: Guard use of SOC_FAMILY to account for it being empty
[glsdk/meta-ti-glsdk.git] / recipes-ti / linuxutils / ti-linuxutils.inc
index 2492b5c657a4a63457e23f70152ea8f5bec5e1c6..06b254dda059e597e78282f7442a6c600ec73bf8 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "MFP Linux utils for TI ARM/DSP processors"
 SECTION = "devel"
-LICENSE = "GPLv2,BSD"
+LICENSE = "GPLv2 & BSD"
 
 BASE_SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/linuxutils/${PV}/exports"
 SRC_URI = "${BASE_SRC_URI}/linuxutils_${PV}.tar.gz "
@@ -12,20 +12,23 @@ S = "${WORKDIR}/linuxutils_${PV}"
 require recipes-ti/includes/ti-paths.inc
 require recipes-ti/includes/ti-staging.inc
 
+PR = "${MACHINE_KERNEL_PR}"
+
 #This is a kernel module, don't set PR directly
-MACHINE_KERNEL_PR_append = "d"
+MACHINE_KERNEL_PR_append = "e"
 
 inherit module
 
 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"
@@ -55,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}" \