From 4c532763b9e09a0333974af06a10bdd6bd1d5656 Mon Sep 17 00:00:00 2001 From: kraoc Date: Wed, 20 Mar 2024 12:48:35 +0100 Subject: [PATCH] path fixes --- kernel.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/kernel.sh b/kernel.sh index e405b76..1773bd1 100644 --- a/kernel.sh +++ b/kernel.sh @@ -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 }