mb/dell/snb_ivb_latitude/*/hda_verb.c: Use AZALIA_PIN_DESC macro
[coreboot.git] / util / docker / build.sh
blob8a26c2a268ee0c422dd5d69be4f4d86e2335c200
1 #!/usr/bin/env sh
3 IMAGE_DIR="$1"
4 IMAGE_TYPE="$2"
6 if [ -z "${IMAGE_DIR}" ] || [ -z "${IMAGE_TYPE}" ]; then
7 echo "Usage: $0 <directory> <type>"
8 echo "Missing parameters. Exit."
9 exit 1
12 case "${IMAGE_TYPE}" in
13 base)
15 toolchain)
17 jenkins)
20 echo "No valid image type given. Exit."
21 exit 1
23 esac
25 docker build \
26 --no-cache \
27 --tag coreboot/coreboot-sdk-${IMAGE_DIR}-${IMAGE_TYPE}:latest \
28 -f ${IMAGE_DIR}/Dockerfile.${IMAGE_TYPE} \
29 ./${IMAGE_DIR}