diff --git a/README.md b/README.md index 36964d4..226835c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,11 @@ sudo bash kernel.sh 6.x 6.8.1 ## CHANGELOG +### 2024-04-26 + +- Gestion des versions du kernel +- Tag dans le nom du kernel définissant sécurisé/non sécurisé + ### 2024-04-19 - Ajustements de la configuration RCU diff --git a/kernel.sh b/kernel.sh index 6c14dd2..60482b4 100644 --- a/kernel.sh +++ b/kernel.sh @@ -1,5 +1,5 @@ #!/bin/bash -UPDATED="2024-04-25" +UPDATED="2024-04-26" DISABLE=1 # disable some options ENABLE=1 # enable some options @@ -461,11 +461,16 @@ doDefaults() { doApplyPatches + SEC="-unsecure" + if [ "$SECURED" == "1" ]; then + SEC="-secure" + fi + doEchoStep "Define options" if [ "$CLANG" == "1" ]; then - ./scripts/config --set-str CONFIG_LOCALVERSION '-clang' + ./scripts/config --set-str CONFIG_LOCALVERSION '${SEC}-clang' else - ./scripts/config --set-str CONFIG_LOCALVERSION '-gcc' + ./scripts/config --set-str CONFIG_LOCALVERSION '${SEC}-gcc' fi doDefaultsDisable @@ -577,6 +582,13 @@ doEnding() { doCompile() { cd $WORKDIR + REVISION=1 + if [ -f revision.log ]; then + REVISION="`head -1 revision.log`" + REVISION=$((REVISION+1)) + else + echo $REVISION > revision.log + doStripSig doStripDebug @@ -619,14 +631,14 @@ doCompile() { HOSTCC='ccache clang' \ bindeb-pkg \ LOCALVERSION=-"$(dpkg --print-architecture)" \ - KDEB_PKGVERSION="$(make kernelversion)" + KDEB_PKGVERSION="$(make kernelversion)-${REVISION}" else make \ -j${NPROC} \ CC='ccache gcc' \ bindeb-pkg \ LOCALVERSION=-"$(dpkg --print-architecture)" \ - KDEB_PKGVERSION="$(make kernelversion)" + KDEB_PKGVERSION="$(make kernelversion)-${REVISION}" fi result=$?