21 lines
507 B
Bash
Executable File
21 lines
507 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. script_env
|
|
|
|
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
|
|
|