瀏覽代碼

support BROKEN flag

Helge Jung 9 年之前
父節點
當前提交
08250f33f2
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      build.sh

+ 4 - 2
build.sh

@@ -9,6 +9,7 @@
 # SITE      = specific site repository commit-id (leave blank to use HEAD)
 # VERSION   = the version tag (can only be empty if BRANCH=experimental)
 # BUILD_TS  = build timestamp (format: %Y-%m-%d %H:%M:%S)
+# BROKEN    = 0 (default) or 1, build the untested hardware model firmwares, too
 #
 
 if [ "_$BRANCH" == "_" ]; then
@@ -90,10 +91,11 @@ faketime "$BUILD_TS" make toolchain -j 1
 
 ### BUILD FIRMWARE
 progress "Building the firmware - please stand by!"
+[ "_$BROKEN" == "_" ] && export BROKEN=0
 if [ "$BRANCH" != "experimental" ]; then
-	GLUON_BRANCH=$BRANCH GLUON_RELEASE=$VERSION faketime "$BUILD_TS" make -j 4
+	GLUON_BRANCH=$BRANCH GLUON_RELEASE=$VERSION BROKEN=$BROKEN faketime "$BUILD_TS" make -j 4
 else
-	GLUON_BRANCH=experimental faketime "$BUILD_TS" make -j 4
+	GLUON_BRANCH=experimental BROKEN=$BROKEN faketime "$BUILD_TS" make -j 4
 fi
 
 [ "$?" -eq "0" ] || abort "Failed to build the firmware, mimimi."