浏览代码

no need to set GLUON_RELEASE and GLUON_BRANCH for each target

Karsten Böddeker 6 年之前
父节点
当前提交
f3fa32d4bd
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      build.sh

+ 3 - 2
build.sh

@@ -219,11 +219,12 @@ fi
 progress "Building the firmware - please stand by!"
 pushd ${CODE_DIR} > /dev/null
 
+export GLUON_RELEASE="${VERSION}"
+[ "${AUTOUPDATER}" != "off" ] && export GLUON_BRANCH="${AUTOUPDATER}"
+
 for target in ${TARGETS} ; do
 	# configure build environment for our current target
 	export GLUON_TARGET="${target}"
-	export GLUON_RELEASE="${VERSION}"
-	[ "${AUTOUPDATER}" != "off" ] && export GLUON_BRANCH="${AUTOUPDATER}"
 
 	# prepare build environment for our current target
 	progress "${target}: Preparing build environment."