meta-ti: Guard use of SOC_FAMILY to account for it being empty
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
Signed-off-by Khem Raj <[email protected]>
--- 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
@@ -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
@@ -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