add script to install all fw build dependencies
This commit is contained in:
parent
f16603ec44
commit
05a54e3579
|
@ -0,0 +1,9 @@
|
|||
build
|
||||
*-bak
|
||||
*.kicad_prl
|
||||
*.zip
|
||||
picotool
|
||||
pico-sdk
|
||||
pico-extras
|
||||
tinyusb
|
||||
|
|
@ -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
|
|
@ -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})
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue