ARG_PRETEND=false
ARG_NOPKG=false
ARG_AUTOTEST=false
+ARG_FACTORY=false
ARG_VERBOSE=false
ARG_TEST=false
while [[ $# -ne 0 ]] ; do
-t) ARG_TEST=true;;
--nousepkg) ARG_NOPKG=true;;
--autotest) ARG_AUTOTEST=true;;
+ --factory) ARG_FACTORY=true;;
-h) exec sed -n '/^while/,/^done/p' "$0";;
*) echo "unknown opt: $*"; exit 1;;
esac
--nowithdebug \
--skip_chroot_upgrade \
$(tfe ${ARG_AUTOTEST} --{,no}withautotest) \
+ $(tfe ${ARG_FACTORY} --{,no}withfactory) \
$(tfe ${ARG_NOPKG} --{no,}usepkg) \
$(tfe ${ARG_TEST} --{,no}withtest)
BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} test) dev"