From cea1de6fb01b64c60fdc5b226f57e912861b2210 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Wed, 15 Feb 2023 02:35:19 -0800 Subject: [PATCH] remove tree state and add version to bootup prompt --- config/buildroot/board/x86_64/post-build.sh | 1 + config/buildroot/rootfs_overlay/etc/profile | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/buildroot/board/x86_64/post-build.sh b/config/buildroot/board/x86_64/post-build.sh index 36bfc81..50d5658 100755 --- a/config/buildroot/board/x86_64/post-build.sh +++ b/config/buildroot/board/x86_64/post-build.sh @@ -8,6 +8,7 @@ BOARD_DIR="$(dirname $0)" cp -f ${BOARD_DIR}/grub.cfg ${TARGET_DIR}/boot/grub/grub.cfg +echo "export VERSION=\"${VERSION}\"" > ${TARGET_DIR}/etc/environment echo "export GIT_REF=\"${GIT_REF}\"" > ${TARGET_DIR}/etc/environment echo "export GIT_AUTHOR=\"${GIT_AUTHOR}\"" >> ${TARGET_DIR}/etc/environment echo "export GIT_KEY=\"${GIT_KEY}\"" >> ${TARGET_DIR}/etc/environment diff --git a/config/buildroot/rootfs_overlay/etc/profile b/config/buildroot/rootfs_overlay/etc/profile index 30a829e..998b188 100644 --- a/config/buildroot/rootfs_overlay/etc/profile +++ b/config/buildroot/rootfs_overlay/etc/profile @@ -17,7 +17,6 @@ EOF echo " Build Details:" echo " - Version: $VERSION" echo " - Date: $GIT_TIMESTAMP" -echo " - Tree State: $GIT_STATE" echo " - Committer: $GIT_AUTHOR" echo " - Commit: $GIT_REF" echo " - Key: $GIT_KEY"