Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ COMMIT_HASH="$(git rev-parse "$TAG")"
PRODUCTION=${PRODUCTION:-1}

if which wget > /dev/null ; then
wget --no-config -nc -P ci/ "$CONTAINER_FS_URL"
wget --no-verbose --no-config -nc -P ci/ "$CONTAINER_FS_URL"
else
if ! [ -f "ci/$ALPINE_TARBALL" ]; then
curl -L -o "ci/$ALPINE_TARBALL" "$CONTAINER_FS_URL"
curl --no-progress-meter -L -o "ci/$ALPINE_TARBALL" "$CONTAINER_FS_URL"
fi
fi

Expand Down Expand Up @@ -228,7 +228,6 @@ echo

$DOCKER run \
--network=host \
-t \
-v "$PWD:/local" \
-v "$PWD/build:/build" \
--name "$SNAPSHOT_NAME" \
Expand Down Expand Up @@ -276,16 +275,19 @@ for TREZOR_MODEL in ${MODELS[@]}; do
set -e -o pipefail
cd /reproducible-build/trezor-firmware/core
$GIT_CLEAN_REPO
rm -rf /build/*
uv run make clean vendor $MAKE_TARGETS QUIET_MODE=1
for item in bootloader firmware prodtest; do
if [ -f build/\$item/\$item.bin ]; then
for item in bootloader secmon firmware prodtest; do
if [ -s build/\$item/\$item.bin ]; then
uv run ../python/tools/firmware-fingerprint.py \
-o build/\$item/\$item.bin.fingerprint \
build/\$item/\$item.bin

# copy only the artifacts to the build output directory
mkdir /build/\$item/
cp -v build/\$item/\$item* /build/\$item/
fi
done
rm -rf /build/*
cp -r build/* /build
chown -R $USER:$GROUP /build
EOF

Expand Down