File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ This section tracks the u-boot revision within this repo.
1616 * **License:** GPLv2
1717 * **Source Code:** %%GIT_REPO%%
1818 * **Date:** %%GIT_DATE%%
19- * **GIT Hash :** %%GIT_HASH%%
19+ * **GIT Commit :** %%GIT_HASH%% %%GIT_DESC %%
2020* **Toolchain:** http://cgit.haiku-os.org/buildtools/
2121 * **Toolchain version:** %%CROSS_TOOL_VERSION%%
2222* **Build Commands:**
Original file line number Diff line number Diff line change 6969echo " Calculating dates..."
7070GIT_DATE=$( git -C $TMP log -1 --format=%cd)
7171GIT_HASH=$( git -C $TMP log -1 --format=%H)
72+ GIT_DESC=$( git -C $TMP describe)
7273
7374echo " Locating work..."
7475WORK_QUEUE=$( find $TARGET_ARCH / -mindepth 1 -type d)
@@ -143,6 +144,7 @@ for dir in $WORK_QUEUE; do
143144 sed -i " s^%%GIT_REPO%%^$GIT_REPO ^g" $dir /README.md
144145 sed -i " s^%%GIT_DATE%%^$GIT_DATE ^g" $dir /README.md
145146 sed -i " s^%%GIT_HASH%%^$GIT_HASH ^g" $dir /README.md
147+ sed -i " s^%%GIT_DESC%%^$GIT_DESC ^g" $dir /README.md
146148 sed -i " s^%%BOARD%%^$NAME ^g" $dir /README.md
147149 sed -i " s^%%FILES%%^$FILES ^g" $dir /README.md
148150 sed -i " s^%%CONFIG%%^$CONFIG ^g" $dir /README.md
You can’t perform that action at this time.
0 commit comments