DRYRUN=""
YP_ARGS="-s"
+YOCTO_ONLY="No"
+CENTOS_ONLY="No"
+DEBIAN_ONLY="Yes"
-while getopts "w:b:e:r:unh" OPTION; do
+while getopts "w:ycdnh" OPTION; do
case ${OPTION} in
w)
WORKSPACE=`readlink -f ${OPTARG}`
DRYRUN="-n"
YP_ARGS=""
;;
+ y)
+ YOCTO_ONLY="Yes"
+ ;;
+ c)
+ CENTOS_ONLY="Yes"
+ ;;
+ d)
+ DEBIAN_ONLY="Yes"
+ ;;
h)
help_info
exit
run_cmd "Prepare for Debian builds"
fi
- RUN_CMD="${SCRIPT_DEB} -w ${WORKSPACE_DEB} ${DRYRUN}"
+ RUN_CMD="${SCRIPT_DEB} -w ${WORKSPACE_DEB} -m ${DRYRUN}"
run_cmd "Start Yocto builds"
echo_step_end
get_debug_info
fi
-#build_yocto
-#build_centos
-build_debian
+if [ "${YOCTO_ONLY}" == "Yes" ]; then
+ build_yocto
+elif [ "${CENTOS_ONLY}" == "Yes" ]; then
+ build_centos
+elif [ "${DEBIAN_ONLY}" == "Yes" ]; then
+ build_debian
+else
+ build_centos
+ build_yocto
+ build_debian
+fi