29 lines · bash
1#!/usr/bin/env bash2# ===----------------------------------------------------------------------===##3#4# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5# See https://llvm.org/LICENSE.txt for license information.6# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7#8# ===----------------------------------------------------------------------===##9 10set -e11 12THIS_DIR="$(cd "$(dirname "$0")" && pwd)"13. "${THIS_DIR}/emulator-functions.sh"14 15build_image() {16 local EMU_IMG="$1"17 validate_emu_img_syntax "${EMU_IMG}"18 docker build -t $(docker_image_of_emu_img ${EMU_IMG}) \19 -f Dockerfile.emulator . \20 --build-arg API=$(api_of_emu_img ${EMU_IMG}) \21 --build-arg TYPE=$(type_of_emu_img ${EMU_IMG}) \22 --build-arg ABI=$(abi_of_arch $(arch_of_emu_img ${EMU_IMG}))23}24 25cd "${THIS_DIR}"26 27build_image 21-def-x8628build_image 33-goog-x86_6429