* Adds RISC-V compilation option to the IDE and Platform.IO. * Build RP2350-RISCV libpico, libbearssl * Fix RP2350 BearSSL library (was copied from RP2040, now built for M33) * New GCC 14.2 toolchain is required (12.4 RISC-V support is borked) * Newlib locking fixed prototypes * Manually force all runtime init code into RP2350 binaries * Add RISC-V to CI * Remove RP2350 BOOT2.S files, binaries (not used) * Clean up minor GCC 14.x warnings * Add RP2350-RISCV OTA build, link * Add RISC-V FreeRTOS files (configuration still not running, but builds) * Add basic documentation
28 lines
648 B
Bash
Executable file
28 lines
648 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e # Exit on error
|
|
|
|
export PICO_SDK_PATH="$(cd ../pico-sdk/; pwd)"
|
|
export PATH="$(cd ../system/arm-none-eabi/bin; pwd):$PATH"
|
|
export PATH="$(cd ../system/riscv32-unknown-elf/bin; pwd):$PATH"
|
|
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
CPU=rp2040 cmake ..
|
|
CPU=rp2040 make -j # VERBOSE=1
|
|
cd ..
|
|
|
|
rm -rf build-rp2350
|
|
mkdir build-rp2350
|
|
cd build-rp2350
|
|
CPU=rp2350 cmake .. -DPICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL=1
|
|
CPU=rp2350 make -j # VERBOSE=1
|
|
cd ..
|
|
|
|
rm -rf build-rp2350-riscv
|
|
mkdir build-rp2350-riscv
|
|
cd build-rp2350-riscv
|
|
CPU=rp2350-riscv cmake .. -DPICO_RUNTIME_SKIP_INIT_DEFAULT_ALARM_POOL=1
|
|
CPU=rp2350-riscv make -j # VERBOSE=1
|
|
cd ..
|