|
|
|
@ -51,9 +51,13 @@ rm -f panda/board/obj/panda.bin.signed |
|
|
|
|
|
|
|
|
|
# include source commit hash and build date in commit |
|
|
|
|
GIT_HASH=$(git --git-dir=$SOURCE_DIR/.git rev-parse HEAD) |
|
|
|
|
GIT_COMMIT_DATE=$(git --git-dir=$SOURCE_DIR/.git show --no-patch --format='%ct %ci' HEAD) |
|
|
|
|
DATETIME=$(date '+%Y-%m-%dT%H:%M:%S') |
|
|
|
|
VERSION=$(cat $SOURCE_DIR/common/version.h | awk -F\" '{print $2}') |
|
|
|
|
|
|
|
|
|
echo -n "$GIT_HASH" > git_src_commit |
|
|
|
|
echo -n "$GIT_COMMIT_DATE" > git_src_commit_date |
|
|
|
|
|
|
|
|
|
echo "[-] committing version $VERSION T=$SECONDS" |
|
|
|
|
git add -f . |
|
|
|
|
git status |
|
|
|
|