summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-16 17:20:08 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-16 17:20:30 +0200
commit6b5db7355812e845fdf04a11fa83609a0698c279 (patch)
tree5b5a0f8d989468658215fdc859ae5058ddf7e4ac
parent2e8b6218a736d5789a26b556e89afc93785302ec (diff)
check if threads variable is empty
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
-rwxr-xr-xembedded-test.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/embedded-test.sh b/embedded-test.sh
index e5c7aa0..f2931aa 100755
--- a/embedded-test.sh
+++ b/embedded-test.sh
@@ -120,7 +120,6 @@ create=0
static=0
ssp=0
debug=0
-threads=""
ntp=""
libc=""
test="toolchain"
@@ -1298,14 +1297,16 @@ build() {
if [ $debug -eq 1 ]; then
printf "ADK_DEBUG=y" >> .config
fi
- if [ $threads = "none" ]; then
- printf "ADK_TARGET_WITHOUT_THREADS=y" >> .config
- fi
- if [ $threads = "lt" ]; then
- printf "ADK_TARGET_WITH_LT=y" >> .config
- fi
- if [ $threads = "nptl" ]; then
- printf "ADK_TARGET_WITH_NPTL=y" >> .config
+ if [ ! -z $threads ]; then
+ if [ $threads = "none" ]; then
+ printf "ADK_TARGET_WITHOUT_THREADS=y" >> .config
+ fi
+ if [ $threads = "lt" ]; then
+ printf "ADK_TARGET_WITH_LT=y" >> .config
+ fi
+ if [ $threads = "nptl" ]; then
+ printf "ADK_TARGET_WITH_NPTL=y" >> .config
+ fi
fi
for pkg in $packages; do