mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-05-07 03:49:20 +00:00
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>
This commit is contained in:
@@ -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}" \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user