From 24a661e4cca1e6dcc20c9dc727aab8d95bcd7cd6 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Mon, 17 Jun 2024 22:21:14 +0200 Subject: [PATCH] Add more tools to build info --- scripts/001-binutils.sh | 7 +++++++ scripts/003-newlib.sh | 7 +++++++ scripts/004-pthread-embedded.sh | 7 +++++++ scripts/005-gcc-stage2.sh | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/scripts/001-binutils.sh b/scripts/001-binutils.sh index fd5fa58..6b982ec 100755 --- a/scripts/001-binutils.sh +++ b/scripts/001-binutils.sh @@ -79,3 +79,10 @@ make --quiet -j $PROC_NR clean make --quiet -j $PROC_NR all make --quiet -j $PROC_NR install-strip make --quiet -j $PROC_NR clean + +## Store build information +BUILD_FILE="${PSPDEV}/build.txt" +if [[ -f "${BUILD_FILE}" ]]; then + sed -i'' '/^binutils /d' "${BUILD_FILE}" +fi +git log -1 --format="binutils %H %cs %s" >> "${BUILD_FILE}" diff --git a/scripts/003-newlib.sh b/scripts/003-newlib.sh index f15b421..6baff82 100755 --- a/scripts/003-newlib.sh +++ b/scripts/003-newlib.sh @@ -57,3 +57,10 @@ make --quiet -j $PROC_NR clean make --quiet -j $PROC_NR all make --quiet -j $PROC_NR install-strip make --quiet -j $PROC_NR clean + +## Store build information +BUILD_FILE="${PSPDEV}/build.txt" +if [[ -f "${BUILD_FILE}" ]]; then + sed -i'' '/^newlib /d' "${BUILD_FILE}" +fi +git log -1 --format="newlib %H %cs %s" >> "${BUILD_FILE}" diff --git a/scripts/004-pthread-embedded.sh b/scripts/004-pthread-embedded.sh index 5e8e36d..dc7e9da 100755 --- a/scripts/004-pthread-embedded.sh +++ b/scripts/004-pthread-embedded.sh @@ -44,3 +44,10 @@ make --quiet -j $PROC_NR clean make --quiet -j $PROC_NR all make --quiet -j $PROC_NR install make --quiet -j $PROC_NR clean + +## Store build information +BUILD_FILE="${PSPDEV}/build.txt" +if [[ -f "${BUILD_FILE}" ]]; then + sed -i'' '/^pthread-embedded /d' "${BUILD_FILE}" +fi +git log -1 --format="pthread-embedded %H %cs %s" >> "${BUILD_FILE}" \ No newline at end of file diff --git a/scripts/005-gcc-stage2.sh b/scripts/005-gcc-stage2.sh index deed457..07bf487 100755 --- a/scripts/005-gcc-stage2.sh +++ b/scripts/005-gcc-stage2.sh @@ -75,3 +75,10 @@ make --quiet -j $PROC_NR clean make --quiet -j $PROC_NR all make --quiet -j $PROC_NR install-strip make --quiet -j $PROC_NR clean + +## Store build information +BUILD_FILE="${PSPDEV}/build.txt" +if [[ -f "${BUILD_FILE}" ]]; then + sed -i'' '/^gcc /d' "${BUILD_FILE}" +fi +git log -1 --format="gcc %H %cs %s" >> "${BUILD_FILE}"