Commit dd82b681 authored by carbon's avatar carbon

enrich build information

parent e675cf64
...@@ -279,6 +279,12 @@ function build_middleware() ...@@ -279,6 +279,12 @@ function build_middleware()
# add sdk version # add sdk version
echo "SDK_VERSION=${SDK_VER}" > "$SYSTEM_OUT_DIR"/sdk-release 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
)} )}
......
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