versionning, secure tag name
This commit is contained in:
parent
d8206f0203
commit
8197a7e69a
@ -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
|
||||
|
22
kernel.sh
22
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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user