From 80ae9f428aa83eb9ba8ac38c533301ff2b71e2b2 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Wed, 9 Feb 2022 18:36:18 -0600 Subject: common.sh: include specific git commit in kernel's LOCALVERSION --- common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.sh') diff --git a/common.sh b/common.sh index 9583710..83b3e82 100755 --- a/common.sh +++ b/common.sh @@ -43,8 +43,9 @@ build_kernel() run_cmd $MAKE distclean pushd ${V} >/dev/null + COMMIT=$(git log --format="%h" HEAD~1..HEAD) run_cmd "cp /boot/config-$(uname -r) .config" - run_cmd ./scripts/config --set-str LOCALVERSION "$VER" + run_cmd ./scripts/config --set-str LOCALVERSION "$VER-$COMMIT" run_cmd ./scripts/config --disable LOCALVERSION_AUTO run_cmd ./scripts/config --disable CONFIG_DEBUG_INFO run_cmd ./scripts/config --enable CONFIG_AMD_MEM_ENCRYPT -- cgit v1.2.3-71-gd317