Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
# SPDX-FileCopyrightText: © 2018 Jaro Habiger <jarohabiger@googlemail.com>
# SPDX-License-Identifier: GPL-3.0-only
# build the whole image inside a docker image, but with mounted files
cd $(dirname $(realpath $0))/../
set -eo pipefail
# initialize submodules if nescessary
# TODO(robin): breaks updating submodules without commiting the update
# (git submodule status --recursive | grep "^-") && git submodule update --init --recursive
# check for the right privileges
docker ps > /dev/null
# do the real exec
mkdir -p build
echo -e "\n\n\nstarting build at $(date) for commit $(git describe --always --abbrev=8 --dirty)" >> build/build.log
docker run --privileged \
-t \
-h "axiom-build" \
-v /dev:/dev \
-v $(pwd):/root/axiom-firmware/ \
-w /root/axiom-firmware/ \
-l axiom-build \
--env COLUMNS=$COLUMNS --env LINES=$LINES --env CI \
$([ -z "$CI" ] && echo "-i" ) \
apertushq/axiom_build:latest \
./makefiles/host/docker_entry.sh $* \
| tee -a build/build.log
d442579a6This file is pinned to the selected release. Download the original to open it in your design tool.