versionning, secure tag name

This commit is contained in:
Olivier 2024-04-26 01:33:59 +02:00
parent d8206f0203
commit 8197a7e69a
2 changed files with 22 additions and 5 deletions

View File

@ -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

View File

@ -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=$?