Skip to content

Commit add0ce5

Browse files
committed
Added scripts
1 parent e7942f3 commit add0ce5

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

build-gcc.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
export PICO_PLATFORM=rp2040
3+
export PICO_COMPILER=pico_arm_gcc
4+
export PICO_SDK_PATH=/workspaces/pico-projects/pico-sdk
5+
mkdir build
6+
cmake -S . -B build -DPICO_COMPILER=$PICO_COMPILER
7+
cmake --build build
8+
9+

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
export PICO_PLATFORM=rp2040
3+
export PICO_COMPILER=pico_etool_clang
4+
export PICO_SDK_PATH=/workspaces/pico-projects/pico-sdk
5+
export PICO_TOOLCHAIN_PATH=/opt/LLVM-ETOOL
6+
mkdir build
7+
cmake -S . -B build -DPICO_COMPILER=$PICO_COMPILER -DCMAKE_SYSROOT=$PICO_TOOLCHAIN_PATH/lib/clang-runtimes/arm-none-eabi/armv6m_soft_nofp
8+
cmake --build build
9+
10+

checkout.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
git clone https://github.com/PicoNexus/pico-sdk.git
3+
cd pico-sdk
4+
git submodule update --init
5+

clean.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
rm -fr build
3+
4+

0 commit comments

Comments
 (0)