From 699fa63a759f4bab54884618d4f1732e2221bc54 Mon Sep 17 00:00:00 2001 From: Joris van Rantwijk Date: Fri, 2 Aug 2024 20:57:50 +0200 Subject: [PATCH] Fix kernel build script --- os/13_build_kernel.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/os/13_build_kernel.sh b/os/13_build_kernel.sh index f5462ca..86673a8 100755 --- a/os/13_build_kernel.sh +++ b/os/13_build_kernel.sh @@ -3,18 +3,20 @@ set -e . script_env +setup_toolchain -if [ ! -x "$TOOLCHAIN_DIR/arm-linux-gcc" ]; then - echo "ERROR: Missing $TOOLCHAIN_DIR/arm-linux-gcc" >&2 - echo " Build buildroot to prepare the arm-linux toolchain" >&2 - exit 1 -fi - -export PATH="$TOOLCHAIN_DIR:$PATH" +#if [ ! -x "$TOOLCHAIN_DIR/arm-linux-gcc" ]; then +# echo "ERROR: Missing $TOOLCHAIN_DIR/arm-linux-gcc" >&2 +# echo " Build buildroot to prepare the arm-linux toolchain" >&2 +# exit 1 +#fi +# +#export PATH="$TOOLCHAIN_DIR:$PATH" make -C "$LINUX_DIR" ARCH=arm mrproper cp -a config/linux_redpitaya_puzzlefw_defconfig "$LINUX_DIR/.config" make -C "$LINUX_DIR" ARCH=arm CROSS_COMPILE=arm-linux- olddefconfig make -C "$LINUX_DIR" ARCH=arm CROSS_COMPILE=arm-linux- zImage +make -C "$LINUX_DIR" ARCH=arm CROSS_COMPILE=arm-linux- modules