[Sound-open-firmware] [PATCH 1/2] scripts: xtensa-build-all.sh. Fix bash error.

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Jun 14 17:34:41 CEST 2018


make[1]: Leaving directory '/home/lrg/source/reef/sof.git'
./scripts/xtensa-build-all.sh: line 123: [: ==: unary operator expected

Fix, set variable to "none" if xcc not found.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 scripts/xtensa-build-all.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/xtensa-build-all.sh b/scripts/xtensa-build-all.sh
index c1147d8..d873d7e 100755
--- a/scripts/xtensa-build-all.sh
+++ b/scripts/xtensa-build-all.sh
@@ -116,6 +116,8 @@ do
 		if [ -d $XTENSA_TOOLS_DIR ]
 			then
 				XCC="xt-xcc"
+			else
+				XCC="none"
 		fi
 	fi
 
-- 
2.17.1



More information about the Sound-open-firmware mailing list