Browse Source

support BROKEN flag

Helge Jung 9 years ago
parent
commit
08250f33f2
1 changed files with 4 additions and 2 deletions
  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."