add script to install all fw build dependencies

This commit is contained in:
Lukas F. Hartmann 2024-05-31 12:28:19 +02:00
parent f16603ec44
commit 05a54e3579
No known key found for this signature in database
GPG Key ID: 376511EB67AD7BAF
5 changed files with 29 additions and 5 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
build
*-bak
*.kicad_prl
*.zip
picotool
pico-sdk
pico-extras
tinyusb

16
install-fw-dependencies.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
sudo apt install build-essential pkg-config libusb-1.0-0-dev cmake gcc-arm-none-eabi
git clone --depth 1 https://github.com/raspberrypi/pico-sdk
git clone --depth 1 https://github.com/raspberrypi/pico-extras
git clone --depth 1 https://github.com/hathach/tinyusb
export PICO_SDK_PATH="$(pwd)/pico-sdk"
git clone --depth 1 https://github.com/raspberrypi/picotool
cd picotool
mkdir build
cd build
cmake ..
make -j4
sudo make install

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.17)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../tinyusb/hw/bsp/family_support.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../tinyusb/hw/bsp/family_support.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})

View File

@ -1,10 +1,9 @@
#!/bin/bash
export PICO_SDK_PATH=$(pwd)/../../../pico-sdk
export PICO_SDK_PATH=$(pwd)/../../pico-sdk
mkdir -p build
cd build
cmake -DFAMILY=rp2040 ..
make

View File

@ -1,7 +1,7 @@
#!/bin/bash
export PICO_SDK_PATH=$PWD/../../pico-sdk
export PICO_EXTRAS_PATH=$PWD/../../pico-extras
export PICO_SDK_PATH=$PWD/../pico-sdk
export PICO_EXTRAS_PATH=$PWD/../pico-extras
mkdir -p build
cd build