2019-09-12 13:42:04 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-11-11 15:53:42 +00:00
|
|
|
set -e -o pipefail
|
2019-09-08 15:16:53 +00:00
|
|
|
|
2020-11-11 15:53:42 +00:00
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
############## Select the right Alpine architecture ##############
|
|
|
|
|
2021-02-22 16:15:27 +00:00
|
|
|
if [ -z "$ALPINE_ARCH" ]; then
|
|
|
|
arch="$(uname -m)"
|
|
|
|
case "$arch" in
|
|
|
|
aarch64|arm64)
|
|
|
|
ALPINE_ARCH="aarch64"
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
ALPINE_ARCH="x86_64"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unsupported arch"
|
|
|
|
exit
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2021-07-20 09:07:03 +00:00
|
|
|
if [ -z "$ALPINE_CHECKSUM" ]; then
|
|
|
|
case "$ALPINE_ARCH" in
|
|
|
|
aarch64)
|
2021-12-07 16:13:02 +00:00
|
|
|
ALPINE_CHECKSUM="1be50ae27c8463d005c4de16558d239e11a88ac6b2f8721c47e660fbeead69bf"
|
2021-07-20 09:07:03 +00:00
|
|
|
;;
|
|
|
|
x86_64)
|
2021-12-07 16:13:02 +00:00
|
|
|
ALPINE_CHECKSUM="ec7ec80a96500f13c189a6125f2dbe8600ef593b87fc4670fe959dc02db727a2"
|
2021-07-20 09:07:03 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2023-01-03 22:46:15 +00:00
|
|
|
DOCKER=${DOCKER:-docker}
|
2020-11-11 15:53:42 +00:00
|
|
|
CONTAINER_NAME=${CONTAINER_NAME:-trezor-firmware-env.nix}
|
2021-07-20 09:07:03 +00:00
|
|
|
ALPINE_CDN=${ALPINE_CDN:-https://dl-cdn.alpinelinux.org/alpine}
|
2021-12-07 16:13:02 +00:00
|
|
|
ALPINE_RELEASE=${ALPINE_RELEASE:-3.15}
|
|
|
|
ALPINE_VERSION=${ALPINE_VERSION:-3.15.0}
|
2021-02-22 16:15:27 +00:00
|
|
|
ALPINE_TARBALL=${ALPINE_FILE:-alpine-minirootfs-$ALPINE_VERSION-$ALPINE_ARCH.tar.gz}
|
2021-12-07 16:13:02 +00:00
|
|
|
NIX_VERSION=${NIX_VERSION:-2.4}
|
2021-02-22 16:15:27 +00:00
|
|
|
CONTAINER_FS_URL=${CONTAINER_FS_URL:-"$ALPINE_CDN/v$ALPINE_RELEASE/releases/$ALPINE_ARCH/$ALPINE_TARBALL"}
|
2019-09-08 15:16:53 +00:00
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
############## Options parsing ##############
|
|
|
|
|
2023-02-06 09:52:14 +00:00
|
|
|
function help_and_die() {
|
|
|
|
echo "Usage: $0 [options] tag"
|
|
|
|
echo "Options:"
|
2023-04-05 07:08:37 +00:00
|
|
|
echo " --skip-bitcoinonly - do not build bitcoin-only firmwares"
|
|
|
|
echo " --skip-normal - do not build regular firmwares"
|
|
|
|
echo " --skip-core - do not build core"
|
|
|
|
echo " --skip-legacy - do not build legacy"
|
|
|
|
echo " --repository path/to/repo - checkout the repository from the given path/url"
|
|
|
|
echo " --no-init - do not recreate docker environments"
|
2023-06-12 08:45:49 +00:00
|
|
|
echo " --models - comma-separated list of models. default: --models R,T"
|
2024-04-17 10:42:35 +00:00
|
|
|
echo " --targets - comma-separated list of targets for core build. default: --targets boardloader,bootloader,firmware"
|
2023-02-06 09:52:14 +00:00
|
|
|
echo " --help"
|
|
|
|
echo
|
2024-04-17 10:42:35 +00:00
|
|
|
echo "Option --prodtest is deprecated. Use "--targets prodtest" to build prodtest."
|
2023-02-06 09:52:14 +00:00
|
|
|
echo "Set PRODUCTION=0 to run non-production builds."
|
2024-04-16 14:59:04 +00:00
|
|
|
echo "Set VENDOR_HEADER=vendorheader_prodtest_unsigned.bin to use the specified vendor header for prodtest."
|
2023-02-06 09:52:14 +00:00
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
OPT_BUILD_CORE=1
|
|
|
|
OPT_BUILD_LEGACY=1
|
|
|
|
OPT_BUILD_NORMAL=1
|
|
|
|
OPT_BUILD_BITCOINONLY=1
|
2023-04-05 07:08:37 +00:00
|
|
|
INIT=1
|
2024-06-06 20:45:14 +00:00
|
|
|
MODELS=(R T T3T1)
|
2024-04-17 10:42:35 +00:00
|
|
|
CORE_TARGETS=(boardloader bootloader firmware)
|
2023-02-06 09:52:14 +00:00
|
|
|
|
|
|
|
REPOSITORY="/local"
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
case "$1" in
|
|
|
|
-h|--help)
|
|
|
|
help_and_die
|
|
|
|
;;
|
|
|
|
--skip-bitcoinonly)
|
|
|
|
OPT_BUILD_BITCOINONLY=0
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
--skip-normal)
|
|
|
|
OPT_BUILD_NORMAL=0
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
--skip-core)
|
|
|
|
OPT_BUILD_CORE=0
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
--skip-legacy)
|
|
|
|
OPT_BUILD_LEGACY=0
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
--repository)
|
|
|
|
REPOSITORY="$2"
|
|
|
|
shift 2
|
|
|
|
;;
|
2023-04-05 07:08:37 +00:00
|
|
|
--no-init)
|
|
|
|
INIT=0
|
|
|
|
shift
|
|
|
|
;;
|
2023-06-12 08:45:49 +00:00
|
|
|
--models)
|
|
|
|
# take comma-separated next argument and turn it into an array
|
|
|
|
IFS=',' read -r -a MODELS <<< "$2"
|
|
|
|
shift 2
|
|
|
|
;;
|
2024-04-17 10:42:35 +00:00
|
|
|
--targets)
|
|
|
|
# take comma-separated next argument and turn it into an array
|
|
|
|
IFS=',' read -r -a CORE_TARGETS <<< "$2"
|
|
|
|
shift 2
|
|
|
|
;;
|
2023-02-06 09:52:14 +00:00
|
|
|
*)
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2021-04-29 15:11:34 +00:00
|
|
|
|
2023-02-06 09:52:14 +00:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
help_and_die
|
2022-11-10 15:55:03 +00:00
|
|
|
fi
|
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
################## Variant selection ##################
|
|
|
|
|
2023-02-06 09:52:14 +00:00
|
|
|
variants=()
|
|
|
|
if [ "$OPT_BUILD_NORMAL" -eq 1 ]; then
|
|
|
|
variants+=(0)
|
2021-04-29 15:11:34 +00:00
|
|
|
fi
|
2023-02-06 09:52:14 +00:00
|
|
|
if [ "$OPT_BUILD_BITCOINONLY" -eq 1 ]; then
|
|
|
|
variants+=(1)
|
|
|
|
fi
|
|
|
|
|
|
|
|
VARIANTS_core=()
|
|
|
|
VARIANTS_legacy=()
|
2021-04-29 15:11:34 +00:00
|
|
|
|
2023-02-06 09:52:14 +00:00
|
|
|
if [ "$OPT_BUILD_CORE" -eq 1 ]; then
|
|
|
|
VARIANTS_core=("${variants[@]}")
|
|
|
|
fi
|
|
|
|
if [ "$OPT_BUILD_LEGACY" -eq 1 ]; then
|
|
|
|
VARIANTS_legacy=("${variants[@]}")
|
2021-04-29 15:11:34 +00:00
|
|
|
fi
|
|
|
|
|
2023-02-06 09:52:14 +00:00
|
|
|
TAG="$1"
|
2023-04-05 21:38:41 +00:00
|
|
|
COMMIT_HASH="$(git rev-parse "$TAG")"
|
2019-09-08 15:16:53 +00:00
|
|
|
PRODUCTION=${PRODUCTION:-1}
|
|
|
|
|
2021-02-22 16:15:27 +00:00
|
|
|
if which wget > /dev/null ; then
|
|
|
|
wget --no-config -nc -P ci/ "$CONTAINER_FS_URL"
|
|
|
|
else
|
|
|
|
if ! [ -f "ci/$ALPINE_TARBALL" ]; then
|
|
|
|
curl -L -o "ci/$ALPINE_TARBALL" "$CONTAINER_FS_URL"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2021-07-20 09:07:03 +00:00
|
|
|
# check alpine checksum
|
2021-07-20 15:29:16 +00:00
|
|
|
if command -v sha256sum &> /dev/null ; then
|
|
|
|
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | sha256sum -c
|
|
|
|
else
|
|
|
|
echo "${ALPINE_CHECKSUM} ci/${ALPINE_TARBALL}" | shasum -a 256 -c
|
|
|
|
fi
|
2021-07-20 09:07:03 +00:00
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
tag_clean="${TAG//[^a-zA-Z0-9]/_}"
|
|
|
|
SNAPSHOT_NAME="${CONTAINER_NAME}__${tag_clean}"
|
|
|
|
|
|
|
|
mkdir -p build/core build/legacy
|
|
|
|
mkdir -p build/core-bitcoinonly build/legacy-bitcoinonly
|
|
|
|
|
|
|
|
# if not initializing, does the image exist?
|
|
|
|
if [ $INIT -eq 0 ] && ! $DOCKER image inspect $SNAPSHOT_NAME > /dev/null; then
|
|
|
|
echo "Image $SNAPSHOT_NAME does not exist."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
GIT_CLEAN_REPO="git clean -dfx -e .venv"
|
|
|
|
SCRIPT_NAME="._setup_script"
|
|
|
|
|
|
|
|
if [ $INIT -eq 1 ]; then
|
|
|
|
|
|
|
|
SELECTED_CONTAINER="$CONTAINER_NAME"
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo ">>> DOCKER BUILD ALPINE_VERSION=$ALPINE_VERSION ALPINE_ARCH=$ALPINE_ARCH NIX_VERSION=$NIX_VERSION -t $CONTAINER_NAME"
|
|
|
|
echo
|
|
|
|
|
|
|
|
$DOCKER build \
|
|
|
|
--network=host \
|
|
|
|
--build-arg ALPINE_VERSION="$ALPINE_VERSION" \
|
|
|
|
--build-arg ALPINE_ARCH="$ALPINE_ARCH" \
|
|
|
|
--build-arg NIX_VERSION="$NIX_VERSION" \
|
|
|
|
-t "$CONTAINER_NAME" \
|
|
|
|
ci/
|
|
|
|
|
|
|
|
cat <<EOF > "$SCRIPT_NAME"
|
|
|
|
#!/bin/bash
|
|
|
|
set -e -o pipefail
|
|
|
|
|
|
|
|
mkdir -p /reproducible-build
|
|
|
|
cd /reproducible-build
|
|
|
|
git clone "$REPOSITORY" trezor-firmware
|
|
|
|
cd trezor-firmware
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else # init == 0
|
|
|
|
|
|
|
|
SELECTED_CONTAINER="$SNAPSHOT_NAME"
|
|
|
|
|
|
|
|
cat <<EOF > "$SCRIPT_NAME"
|
|
|
|
#!/bin/bash
|
|
|
|
set -e -o pipefail
|
|
|
|
|
|
|
|
cd /reproducible-build/trezor-firmware
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi # init
|
|
|
|
|
|
|
|
# append common part to script
|
|
|
|
cat <<EOF >> "$SCRIPT_NAME"
|
|
|
|
$GIT_CLEAN_REPO
|
2023-04-05 21:38:41 +00:00
|
|
|
git fetch origin "$COMMIT_HASH"
|
|
|
|
git checkout "$COMMIT_HASH"
|
2023-04-05 07:08:37 +00:00
|
|
|
git submodule update --init --recursive
|
|
|
|
poetry install
|
|
|
|
cd core/embed/rust
|
|
|
|
cargo fetch
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo ">>> AT COMMIT \$(git rev-parse HEAD)"
|
|
|
|
echo
|
|
|
|
EOF
|
|
|
|
|
2022-01-09 09:16:34 +00:00
|
|
|
echo
|
2023-04-05 07:08:37 +00:00
|
|
|
echo ">>> DOCKER REFRESH $SNAPSHOT_NAME"
|
2022-01-09 09:16:34 +00:00
|
|
|
echo
|
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
$DOCKER run \
|
2023-01-02 17:24:24 +00:00
|
|
|
--network=host \
|
2023-04-05 07:08:37 +00:00
|
|
|
-t \
|
|
|
|
-v "$PWD:/local" \
|
|
|
|
-v "$PWD/build:/build" \
|
|
|
|
--name "$SNAPSHOT_NAME" \
|
|
|
|
"$SELECTED_CONTAINER" \
|
|
|
|
/nix/var/nix/profiles/default/bin/nix-shell --run "bash /local/$SCRIPT_NAME" \
|
|
|
|
|| ($DOCKER rm "$SNAPSHOT_NAME"; exit 1)
|
|
|
|
|
|
|
|
rm $SCRIPT_NAME
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo ">>> DOCKER COMMIT $SNAPSHOT_NAME"
|
|
|
|
echo
|
|
|
|
|
|
|
|
$DOCKER commit "$SNAPSHOT_NAME" "$SNAPSHOT_NAME"
|
|
|
|
$DOCKER rm "$SNAPSHOT_NAME"
|
2019-09-08 15:16:53 +00:00
|
|
|
|
2020-11-11 15:53:42 +00:00
|
|
|
# stat under macOS has slightly different cli interface
|
|
|
|
USER=$(stat -c "%u" . 2>/dev/null || stat -f "%u" .)
|
|
|
|
GROUP=$(stat -c "%g" . 2>/dev/null || stat -f "%g" .)
|
|
|
|
|
|
|
|
DIR=$(pwd)
|
2019-09-08 15:16:53 +00:00
|
|
|
|
|
|
|
# build core
|
|
|
|
|
2023-06-12 08:45:49 +00:00
|
|
|
for TREZOR_MODEL in ${MODELS[@]}; do
|
|
|
|
for BITCOIN_ONLY in ${VARIANTS_core[@]}; do
|
|
|
|
|
|
|
|
DIRSUFFIX=${BITCOIN_ONLY/1/-bitcoinonly}
|
|
|
|
DIRSUFFIX=${DIRSUFFIX/0/}
|
|
|
|
DIRSUFFIX="-${TREZOR_MODEL}${DIRSUFFIX}"
|
|
|
|
|
2024-04-17 10:42:35 +00:00
|
|
|
MAKE_TARGETS=""
|
|
|
|
for TARGET in ${CORE_TARGETS[@]}; do
|
|
|
|
MAKE_TARGETS="$MAKE_TARGETS build_$TARGET"
|
|
|
|
done
|
|
|
|
|
2023-06-12 08:45:49 +00:00
|
|
|
SCRIPT_NAME=".build_core_${TREZOR_MODEL}_${BITCOIN_ONLY}.sh"
|
|
|
|
cat <<EOF > "build/$SCRIPT_NAME"
|
|
|
|
# DO NOT MODIFY!
|
|
|
|
# this file was generated by ${BASH_SOURCE[0]}
|
|
|
|
# variant: core build BITCOIN_ONLY=$BITCOIN_ONLY TREZOR_MODEL=$TREZOR_MODEL
|
|
|
|
set -e -o pipefail
|
|
|
|
cd /reproducible-build/trezor-firmware/core
|
|
|
|
$GIT_CLEAN_REPO
|
2024-04-17 10:42:35 +00:00
|
|
|
poetry run make clean vendor $MAKE_TARGETS
|
|
|
|
for item in bootloader firmware prodtest; do
|
|
|
|
if [ -f build/\$item/\$item.bin ]; then
|
|
|
|
poetry run ../python/tools/firmware-fingerprint.py \
|
|
|
|
-o build/\$item/\$item.bin.fingerprint \
|
|
|
|
build/\$item/\$item.bin
|
|
|
|
fi
|
2023-06-12 08:45:49 +00:00
|
|
|
done
|
|
|
|
rm -rf /build/*
|
|
|
|
cp -r build/* /build
|
|
|
|
chown -R $USER:$GROUP /build
|
2020-11-11 15:53:42 +00:00
|
|
|
EOF
|
|
|
|
|
2023-06-12 08:45:49 +00:00
|
|
|
echo
|
|
|
|
echo ">>> DOCKER RUN core BITCOIN_ONLY=$BITCOIN_ONLY TREZOR_MODEL=$TREZOR_MODEL PRODUCTION=$PRODUCTION"
|
2024-04-17 10:42:35 +00:00
|
|
|
echo " (targets: ${CORE_TARGETS[@]})"
|
2023-06-12 08:45:49 +00:00
|
|
|
echo
|
|
|
|
|
|
|
|
$DOCKER run \
|
|
|
|
--network=host \
|
|
|
|
-it \
|
|
|
|
--rm \
|
|
|
|
-v "$DIR:/local" \
|
|
|
|
-v "$DIR/build/core$DIRSUFFIX":/build:z \
|
|
|
|
--env BITCOIN_ONLY="$BITCOIN_ONLY" \
|
|
|
|
--env TREZOR_MODEL="$TREZOR_MODEL" \
|
|
|
|
--env PRODUCTION="$PRODUCTION" \
|
2024-04-17 10:42:35 +00:00
|
|
|
--env VENDOR_HEADER="$VENDOR_HEADER" \
|
2023-06-12 08:45:49 +00:00
|
|
|
--init \
|
|
|
|
"$SNAPSHOT_NAME" \
|
|
|
|
/nix/var/nix/profiles/default/bin/nix-shell --run "bash /local/build/$SCRIPT_NAME"
|
|
|
|
done
|
2019-09-08 15:16:53 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# build legacy
|
|
|
|
|
2021-04-29 15:11:34 +00:00
|
|
|
for BITCOIN_ONLY in ${VARIANTS_legacy[@]}; do
|
2019-09-08 15:16:53 +00:00
|
|
|
|
|
|
|
DIRSUFFIX=${BITCOIN_ONLY/1/-bitcoinonly}
|
|
|
|
DIRSUFFIX=${DIRSUFFIX/0/}
|
|
|
|
|
2020-11-11 15:53:42 +00:00
|
|
|
SCRIPT_NAME=".build_legacy_$BITCOIN_ONLY.sh"
|
|
|
|
cat <<EOF > "build/$SCRIPT_NAME"
|
|
|
|
# DO NOT MODIFY!
|
|
|
|
# this file was generated by ${BASH_SOURCE[0]}
|
|
|
|
# variant: legacy build BITCOIN_ONLY=$BITCOIN_ONLY
|
|
|
|
set -e -o pipefail
|
2023-04-05 07:08:37 +00:00
|
|
|
cd /reproducible-build/trezor-firmware/legacy
|
|
|
|
$GIT_CLEAN_REPO
|
2020-11-11 15:53:42 +00:00
|
|
|
ln -s /build build
|
|
|
|
poetry run script/cibuild
|
2021-04-20 19:36:48 +00:00
|
|
|
mkdir -p build/bootloader build/firmware build/intermediate_fw
|
|
|
|
cp bootloader/bootloader.bin build/bootloader/bootloader.bin
|
|
|
|
cp intermediate_fw/trezor.bin build/intermediate_fw/inter.bin
|
2020-11-11 15:53:42 +00:00
|
|
|
cp firmware/trezor.bin build/firmware/firmware.bin
|
2023-03-21 14:05:18 +00:00
|
|
|
cp firmware/firmware*.bin build/firmware/ || true # ignore missing file as it will not be present in old tags
|
2020-11-11 15:53:42 +00:00
|
|
|
cp firmware/trezor.elf build/firmware/firmware.elf
|
|
|
|
poetry run ../python/tools/firmware-fingerprint.py \
|
|
|
|
-o build/firmware/firmware.bin.fingerprint \
|
|
|
|
build/firmware/firmware.bin
|
|
|
|
chown -R $USER:$GROUP /build
|
|
|
|
EOF
|
|
|
|
|
2022-01-09 09:16:34 +00:00
|
|
|
echo
|
|
|
|
echo ">>> DOCKER RUN legacy BITCOIN_ONLY=$BITCOIN_ONLY PRODUCTION=$PRODUCTION"
|
|
|
|
echo
|
|
|
|
|
2023-01-03 22:46:15 +00:00
|
|
|
$DOCKER run \
|
2023-01-02 17:24:24 +00:00
|
|
|
--network=host \
|
|
|
|
-it \
|
|
|
|
--rm \
|
2020-11-11 15:53:42 +00:00
|
|
|
-v "$DIR:/local" \
|
|
|
|
-v "$DIR/build/legacy$DIRSUFFIX":/build:z \
|
2019-09-08 15:16:53 +00:00
|
|
|
--env BITCOIN_ONLY="$BITCOIN_ONLY" \
|
2021-12-12 14:45:10 +00:00
|
|
|
--env PRODUCTION="$PRODUCTION" \
|
2020-11-11 15:53:42 +00:00
|
|
|
--init \
|
2023-04-05 07:08:37 +00:00
|
|
|
"$SNAPSHOT_NAME" \
|
2020-11-11 15:53:42 +00:00
|
|
|
/nix/var/nix/profiles/default/bin/nix-shell --run "bash /local/build/$SCRIPT_NAME"
|
2019-09-08 15:16:53 +00:00
|
|
|
done
|
2020-08-21 12:09:21 +00:00
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
echo
|
|
|
|
echo "Docker image retained as $SNAPSHOT_NAME"
|
|
|
|
echo "To remove it, run:"
|
|
|
|
echo " docker rmi $SNAPSHOT_NAME"
|
|
|
|
|
2020-08-21 12:09:21 +00:00
|
|
|
# all built, show fingerprints
|
|
|
|
|
2023-04-05 07:08:37 +00:00
|
|
|
echo
|
2023-04-05 21:38:41 +00:00
|
|
|
echo "Built from commit $COMMIT_HASH"
|
2023-04-05 07:08:37 +00:00
|
|
|
echo
|
2020-08-21 12:09:21 +00:00
|
|
|
echo "Fingerprints:"
|
|
|
|
for VARIANT in core legacy; do
|
2024-04-17 10:42:35 +00:00
|
|
|
for MODEL in ${MODELS[@]}; do
|
|
|
|
for DIRSUFFIX in "" "-bitcoinonly"; do
|
2023-06-12 08:45:49 +00:00
|
|
|
BUILD_DIR=build/${VARIANT}-${MODEL}${DIRSUFFIX}
|
|
|
|
for file in $BUILD_DIR/*/*.fingerprint; do
|
|
|
|
if [ -f "$file" ]; then
|
|
|
|
origfile="${file%.fingerprint}"
|
|
|
|
fingerprint=$(tr -d '\n' < $file)
|
|
|
|
echo "$fingerprint $origfile"
|
|
|
|
fi
|
|
|
|
done
|
2023-04-05 07:08:37 +00:00
|
|
|
done
|
2020-08-21 12:09:21 +00:00
|
|
|
done
|
|
|
|
done
|