diff --git a/scripts/buildKernel.sh b/scripts/buildKernel.sh index 68529f1..dcf205b 100755 --- a/scripts/buildKernel.sh +++ b/scripts/buildKernel.sh @@ -59,9 +59,9 @@ cd linux-$KVER make clean make mrproper #Apply the usb and mmc patches if unapplied -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done #copy in the initramfs and kernel config cp $ROOT_DIR/build/PrawnOS-initramfs.cpio.gz . diff --git a/scripts/crossmenuconfig.sh b/scripts/crossmenuconfig.sh index 087d91f..33eb62d 100755 --- a/scripts/crossmenuconfig.sh +++ b/scripts/crossmenuconfig.sh @@ -42,9 +42,9 @@ cd linux-$KVER make clean make mrproper #Apply the usb and mmc patches if unapplied -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done -[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done +[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done cp $RESOURCES/config .config make menuconfig ARCH=arm CROSS_COMPILE=arm-none-eabi- .config diff --git a/scripts/patchKernel.sh b/scripts/patchKernel.sh index eb21684..1ce09ce 100755 --- a/scripts/patchKernel.sh +++ b/scripts/patchKernel.sh @@ -20,8 +20,8 @@ cd build cd linux-$KVER make clean make mrproper -#Apply the usb and mmc patches if unapplie -for i in $RESOURCES/patches-tested/DTS/*.patch; do patch -p1 < $i; done -for i in $RESOURCES/patches-tested/kernel/*.patch; do patch -p1 < $i; done +#Apply the usb and mmc patches if unapplied +for i in "$RESOURCES"/patches-tested/DTS/*.patch; do patch -p1 < $i; done +for i in "$RESOURCES"/patches-tested/kernel/*.patch; do patch -p1 < $i; done cd $ROOT_DIR