Skip to content

Commit

Permalink
enrich build information
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonfix committed Dec 22, 2023
1 parent e675cf6 commit dd82b68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/milkvsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ function build_middleware()

# add sdk version
echo "SDK_VERSION=${SDK_VER}" > "$SYSTEM_OUT_DIR"/sdk-release
if [ ! -z "${MV_BOARD// }" ]; then
echo "board=${MV_BOARD}" >> "$SYSTEM_OUT_DIR"/sdk-release
echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> "$SYSTEM_OUT_DIR"/sdk-release
echo "commit=$(git rev-parse --short HEAD)" >> "$SYSTEM_OUT_DIR"/sdk-release
echo "time=$(date +"%Y-%m-%d-%H:%M:%S")" >> "$SYSTEM_OUT_DIR"/sdk-release
fi
)}


Expand Down

0 comments on commit dd82b68

Please sign in to comment.