changeset 367:eeac13549d78

Allow build w/o profiles list, in that case board default profiles list used
author ray@terran.dlink.ua
date Mon, 06 Feb 2012 20:19:21 +0200
parents 462445ce9207
children 93deaf049ac7
files menu.sh
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/menu.sh	Mon Feb 06 20:18:00 2012 +0200
+++ b/menu.sh	Mon Feb 06 20:19:21 2012 +0200
@@ -495,5 +495,13 @@
 done
 
 echo "==> building zrouter !!!"
-make -C "${ZROUTER_ROOT}" TARGET_PAIR=${TARGET_PAIR} \
-	FREEBSD_SRC_TREE=${FREEBSD_SRC_TREE} OBJ_DIR=${OBJ_DIR} TARGET_PROFILES="${TARGET_BASE_PROFILE} ${TARGET_PROFILES}"
+# If at least one of base profiles selected
+if [ "${TARGET_BASE_PROFILE}" != "" ]; then
+	make -C "${ZROUTER_ROOT}" TARGET_PAIR=${TARGET_PAIR} \
+		FREEBSD_SRC_TREE=${FREEBSD_SRC_TREE} OBJ_DIR=${OBJ_DIR} \
+		TARGET_PROFILES="${TARGET_BASE_PROFILE} ${TARGET_PROFILES}";
+else
+	make -C "${ZROUTER_ROOT}" TARGET_PAIR=${TARGET_PAIR} \
+		FREEBSD_SRC_TREE=${FREEBSD_SRC_TREE} OBJ_DIR=${OBJ_DIR}
+fi
+