Verified Commit 25d6b7bc authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

compile_fw: Make medkit non-mandatory

parent 779069c3
......@@ -165,18 +165,24 @@ if [ -n "$BUILD_ALL" ]; then
MED_TAR="$TARGET_BOARD-medkit-$(date -d "$COMMIT_DATE" +%Y%m%d%H%M).tar.gz"
mkdir -p "$MED_PATH"
MED_BIN_SOURCE="bin-nand/${MED_ARCH}"
fakeroot ./scripts/updater-medkit.sh --model "$TARGET_BOARD" $MED_ARGS $MED_BIN_SOURCE "$MED_PATH/$MED_TAR"
pushd "$MED_PATH"
ln -s "$MED_TAR" "$TARGET_BOARD"-medkit-latest.tar.gz
if [ -f "$HOME"/mime.key ]; then
"$BASE_PATH"/staging_dir/host/bin/usign -S -m "$MED_TAR" -s "$HOME"/mime.key
ln -s "$MED_TAR".sig "$TARGET_BOARD"-medkit-latest.tar.gz.sig
ERR_CMD="false"
if fakeroot ./scripts/updater-medkit.sh --model "$TARGET_BOARD" $MED_ARGS $MED_BIN_SOURCE "$MED_PATH/$MED_TAR"; then
pushd "$MED_PATH"
ln -s "$MED_TAR" "$TARGET_BOARD"-medkit-latest.tar.gz ||
if [ -f "$HOME"/mime.key ]; then
"$BASE_PATH"/staging_dir/host/bin/usign -S -m "$MED_TAR" -s "$HOME"/mime.key
ln -s "$MED_TAR".sig "$TARGET_BOARD"-medkit-latest.tar.gz.sig
fi
md5sum "$MED_TAR" > "$MED_TAR".md5
ln -s "$MED_TAR".md5 "$TARGET_BOARD"-medkit-latest.tar.gz.md5
sha256sum "$MED_TAR" > "$MED_TAR".sha256
ln -s "$MED_TAR".sha256 "$TARGET_BOARD"-medkit-latest.tar.gz.sha256
popd
elif [ -n "`echo "$@" | grep 'IGNORE_ERRORS="m"'`" ]; then
true
else
false
fi
md5sum "$MED_TAR" > "$MED_TAR".md5
ln -s "$MED_TAR".md5 "$TARGET_BOARD"-medkit-latest.tar.gz.md5
sha256sum "$MED_TAR" > "$MED_TAR".sha256
ln -s "$MED_TAR".sha256 "$TARGET_BOARD"-medkit-latest.tar.gz.sha256
popd
fi
if [ "$TARGET_BOARD" = omnia ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment