From 27e744e05f4123365c57d5ff5513eb8bb0a0b09c Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 27 Aug 2021 17:45:08 -0500 Subject: [PATCH] Wine: improve kernel compile experience and install deps --- apps/Wine (x86)/install-32 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/Wine (x86)/install-32 b/apps/Wine (x86)/install-32 index 584b5ed..557675e 100755 --- a/apps/Wine (x86)/install-32 +++ b/apps/Wine (x86)/install-32 @@ -70,10 +70,13 @@ elif echo "$vmsplit_output" | grep -q "^CONFIG_VMSPLIT_2G=y" || echo "$vmsplit_o #download kernel source code git clone --depth=1 https://github.com/raspberrypi/linux || error "Failed to git clone the raspberry pi kernel repo!" + echo "Installing necessary build packages..." + "${DIRECTORY}/pkg-install" "raspberrypi-kernel-headers build-essential bc git wget bison flex libssl-dev make libncurses-dev" "$(dirname "$0")" || error "Failed to install necessary packages to build kernel." + #build for pi3 - cd linux + cd ~/linux || error "Failed to enter the ~/linux folder!" KERNEL=kernel7 - make -j8 bcm2709_defconfig + make -j8 bcm2709_defconfig || error "The make command exited with failure. Full command: 'make -j8 bcm2709_defconfig'" #change memory split config echo "Setting memory split to 3G/1G" @@ -83,6 +86,7 @@ elif echo "$vmsplit_output" | grep -q "^CONFIG_VMSPLIT_2G=y" || echo "$vmsplit_o echo '' | make -j8 zImage modules dtbs || error "Failed to make bcm2709_defconfig zImage modules dtbs!" #install + echo "Copying new files to /boot/..." sudo make modules_install || error "sudo make modules_install failed!" sudo cp arch/arm/boot/dts/*.dtb /boot/ || error "Failed to copy dtb files to /boot!" sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/ || error "Failed to copy overlays to /boot/overlays!" @@ -91,6 +95,9 @@ elif echo "$vmsplit_output" | grep -q "^CONFIG_VMSPLIT_2G=y" || echo "$vmsplit_o cd rm -rf ~/linux + echo "Removing the utilities that were used to compile the kernel..." + "${DIRECTORY}/purge-installed" "$(dirname "$0")" + #message echo -e "It appears the 3G/1G kernel has been built and installed successfully.\nPlease reboot and install the Wine app again." sleep infinity