hack(build_library): support amd64-usr

Make special defaults for amd64-usr
This commit is contained in:
Brandon Philips 2014-03-12 19:28:46 -07:00
parent b8fe368087
commit 03c152a519

View File

@ -33,11 +33,18 @@ ROOT_FS_DIR="$FLAGS_root"
COREOS_VERSION_NAME="CoreOS" COREOS_VERSION_NAME="CoreOS"
if [[ -n "${FLAGS_production_track}" ]]; then if [[ -n "${FLAGS_production_track}" ]]; then
if [[ "${$FLAGS_board}" == "amd64-usr" ]]; then
FLAGS_production_track="alpha"
fi
COREOS_VERSION_TRACK="${FLAGS_production_track}" COREOS_VERSION_TRACK="${FLAGS_production_track}"
COREOS_VERSION_DESCRIPTION="${COREOS_VERSION_STRING} (Official Build) \ COREOS_VERSION_DESCRIPTION="${COREOS_VERSION_STRING} (Official Build) \
${COREOS_VERSION_TRACK} $FLAGS_board test" ${COREOS_VERSION_TRACK} $FLAGS_board test"
if [[ "${FLAGS_production_track}" != "sdk" ]]; then if [[ "${FLAGS_production_track}" != "sdk" ]]; then
COREOS_VERSION_AUSERVER="https://public.roller.core-os.net/v1/update/" if [[ "${$FLAGS_board}" == "amd64-usr" ]]; then
COREOS_VERSION_AUSERVER="https://public.roller.core-os.net/v1/update/"
else
COREOS_VERSION_AUSERVER="https://api.core-os.net/v1/update/"
fi
else else
COREOS_VERSION_AUSERVER="" COREOS_VERSION_AUSERVER=""
fi fi
@ -51,6 +58,7 @@ else
: ${COREOS_VERSION_DEVSERVER:="http://$(hostname --fqdn):8080"} : ${COREOS_VERSION_DEVSERVER:="http://$(hostname --fqdn):8080"}
fi fi
# TODO(marineam): come up with a way to support continous integration builds, # TODO(marineam): come up with a way to support continous integration builds,
# this would provide all the bells and whistles for 'master' branch images. # this would provide all the bells and whistles for 'master' branch images.
#elif [ "$USER" = "chrome-bot" ]; then #elif [ "$USER" = "chrome-bot" ]; then