path fixes

This commit is contained in:
Olivier 2024-03-20 12:48:35 +01:00
parent b4d0aac0eb
commit 4c532763b9

View File

@ -5,7 +5,6 @@ DISABLE=1 # disable some options
ENABLE=1 # enable some options
SECURED=1 # enable/disable security
UARCH=1 # apply more uarch patch
FKH=0 # apply fast kernel headers patch
CLANG=1 # use Clang compiler (if not, use GCC)
O3=1 # use -O3 vs -O2 (optimisation)
ARCH="x86-64-v4" # target architecture (uarch patch)
@ -336,17 +335,19 @@ doMoreUarch() {
if [ $UARCH == 1 ]; then
cd $WORKDIR
doEchoStep "Apply 'uarches' patch"
if [ -f .config ]; then
cp .config .config.uarches.before
if [ -f $CURRENT/more-uarches-for-kernel.patch ]; then
doEchoStep "Apply 'uarches' patch"
if [ -f .config ]; then
cp .config .config.uarches.before
fi
patch -p1 <$CURRENT/more-uarches-for-kernel.patch
result=$?
if [ ! result==0 ]; then
echo ">>> Error in 'uarches' !"
exit 1
fi
cp .config .config.uarches.after
fi
patch -p1 <../../../more-uarches-for-kernel.patch
result=$?
if [ ! result==0 ]; then
echo ">>> Error in 'uarches' !"
exit 1
fi
cp .config .config.uarches.after
fi
}