aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2022-02-09 18:36:18 -0600
committerMichael Roth <michael.roth@amd.com>2022-02-09 18:41:32 -0600
commit80ae9f428aa83eb9ba8ac38c533301ff2b71e2b2 (patch)
tree38065a51f7f57afaa884a565915a6f5982f91c61
parent7257c56a81c81020513925721a97fa8731730e53 (diff)
downloadcachepc-amdsev-80ae9f428aa83eb9ba8ac38c533301ff2b71e2b2.tar.gz
cachepc-amdsev-80ae9f428aa83eb9ba8ac38c533301ff2b71e2b2.zip
common.sh: include specific git commit in kernel's LOCALVERSION
-rwxr-xr-xcommon.sh3
1 files changed, 2 insertions, 1 deletions
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