Bare metal coding on a Raspberry Pi 4 B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
635 B

#!/bin/sh
CAKELISP_DIR=Dependencies/cakelisp
# Build Cakelisp itself
echo "\n\nCakelisp\n\n"
cd $CAKELISP_DIR
./Build.sh || exit $?
cd ../..
echo "\n\nKernel and OS\n\n"
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
OBJCOPY=toolchain/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf/bin/aarch64-none-elf-objcopy
$CAKELISP --verbose-processes \
src/Config_RaspberryPi.cake src/OS.cake || exit $?
# Strip the elf
$OBJCOPY --output binary kernel8.elf kernel8.img || exit $?
# We don't check for failure because it's okay if it isn't mounted
cp kernel8.img /media/macoy/7D1D-6DAB/kernel8.img
echo "\nBuilt successfully\n"