From f39f12f7553fbe3169686eec5f718d2d1c765e8e Mon Sep 17 00:00:00 2001 From: SolidHal Date: Wed, 23 Jan 2019 13:42:48 -0600 Subject: [PATCH] Ensure that the kernel gets patched If the kernel was downloaded with crossmenuconfig, patches would not be properly applied when make kernel was ran. --- scripts/crossmenuconfig.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/crossmenuconfig.sh b/scripts/crossmenuconfig.sh index 99762c2..8d618e9 100755 --- a/scripts/crossmenuconfig.sh +++ b/scripts/crossmenuconfig.sh @@ -28,6 +28,11 @@ cd build [ ! -f linux-libre-$KVER-gnu.tar.lz ] && wget https://www.linux-libre.fsfla.org/pub/linux-libre/releases/$KVER-gnu/linux-libre-$KVER-gnu.tar.lz [ ! -d linux-$KVER ] && tar --lzip -xvf linux-libre-$KVER-gnu.tar.lz cd linux-$KVER +make clean +make mrproper +#Apply the usb and mmc patches if unapplied +[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/DTS/*.patch; do patch -p1 < $i; done +[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/*.patch; do patch -p1 < $i; done cp $RESOURCES/config .config make menuconfig ARCH=arm CROSS_COMPILE=arm-none-eabi- .config cp .config $RESOURCES/config