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 ## 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 ### 2024-04-19
- Ajustements de la configuration RCU - Ajustements de la configuration RCU

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
UPDATED="2024-04-25" UPDATED="2024-04-26"
DISABLE=1 # disable some options DISABLE=1 # disable some options
ENABLE=1 # enable some options ENABLE=1 # enable some options
@ -461,11 +461,16 @@ doDefaults() {
doApplyPatches doApplyPatches
SEC="-unsecure"
if [ "$SECURED" == "1" ]; then
SEC="-secure"
fi
doEchoStep "Define options" doEchoStep "Define options"
if [ "$CLANG" == "1" ]; then if [ "$CLANG" == "1" ]; then
./scripts/config --set-str CONFIG_LOCALVERSION '-clang' ./scripts/config --set-str CONFIG_LOCALVERSION '${SEC}-clang'
else else
./scripts/config --set-str CONFIG_LOCALVERSION '-gcc' ./scripts/config --set-str CONFIG_LOCALVERSION '${SEC}-gcc'
fi fi
doDefaultsDisable doDefaultsDisable
@ -577,6 +582,13 @@ doEnding() {
doCompile() { doCompile() {
cd $WORKDIR cd $WORKDIR
REVISION=1
if [ -f revision.log ]; then
REVISION="`head -1 revision.log`"
REVISION=$((REVISION+1))
else
echo $REVISION > revision.log
doStripSig doStripSig
doStripDebug doStripDebug
@ -619,14 +631,14 @@ doCompile() {
HOSTCC='ccache clang' \ HOSTCC='ccache clang' \
bindeb-pkg \ bindeb-pkg \
LOCALVERSION=-"$(dpkg --print-architecture)" \ LOCALVERSION=-"$(dpkg --print-architecture)" \
KDEB_PKGVERSION="$(make kernelversion)" KDEB_PKGVERSION="$(make kernelversion)-${REVISION}"
else else
make \ make \
-j${NPROC} \ -j${NPROC} \
CC='ccache gcc' \ CC='ccache gcc' \
bindeb-pkg \ bindeb-pkg \
LOCALVERSION=-"$(dpkg --print-architecture)" \ LOCALVERSION=-"$(dpkg --print-architecture)" \
KDEB_PKGVERSION="$(make kernelversion)" KDEB_PKGVERSION="$(make kernelversion)-${REVISION}"
fi fi
result=$? result=$?