redpitaya-puzzlefw/os/13_build_kernel.sh

23 lines
593 B
Bash
Raw Normal View History

2024-01-07 00:51:38 +01:00
#!/bin/bash
set -e
. script_env
2024-08-02 20:57:50 +02:00
setup_toolchain
2024-01-07 00:51:38 +01:00
2024-08-02 20:57:50 +02:00
#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"
2024-01-07 00:51:38 +01:00
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
2024-08-02 20:57:50 +02:00
make -C "$LINUX_DIR" ARCH=arm CROSS_COMPILE=arm-linux- modules
2024-01-07 00:51:38 +01:00