diff options
author | Marc Zyngier <maz@kernel.org> | 2023-10-04 12:38:42 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-10-04 12:38:42 +0100 |
commit | 270c2310ae99d1dda01daa454517559073fb7e22 (patch) | |
tree | a89cc53512b7d72458d1e00281586f90689c0700 | |
parent | c0df455b6afd86f9e0b37da809b0ccf1186871d7 (diff) | |
download | cs-sw-270c2310ae99d1dda01daa454517559073fb7e22.tar.gz |
Use a submodule for the SDK
Relying on whatever SDK people have at hand is no good to reproduce
issues. Instead, move over to a local copy of the SDK using a git
submodule.
Disk space is free, right?
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | README | 18 | ||||
m--------- | pico-sdk | 0 |
4 files changed, 9 insertions, 14 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7733770 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "pico-sdk"] + path = pico-sdk + url = https://github.com/raspberrypi/pico-sdk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0029ab0..19b367b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12) # Include build functions from Pico SDK -include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake) +include(pico-sdk/external/pico_sdk_import.cmake) # Set name of project (as PROJECT_NAME) and C/C++ standards project(m1_ubmc C CXX ASM) @@ -32,21 +32,9 @@ On a Debian system, this is what you need: I'm sure there is an equivalent for other OSs, but life is too short to use anything else. -** Install the pico-sdk: - -I've used versions 1.4 and 1.5 of the SDK. YMMV. - - git clone -b master https://github.com/raspberrypi/pico-sdk.git - - export PICO_SDK_PATH=/the/long/and/winding/road/to/pico-sdk - - cd pico-sdk - - git submodule update --init - ** Build the Pico firmware: -It builds just like any other pico-sdk project: +I'm now relying on git submodules for the Pico SDK, currently 1.5.1. git clone git://git.kernel.org/pub/scm/linux/kernel/git/maz/cs-sw @@ -54,6 +42,10 @@ It builds just like any other pico-sdk project: [optionally checkout the dev branch you want] + git submodule update --init --recursive + + [this will download a fsckload of useless things... oh well] + mkdir build cd build diff --git a/pico-sdk b/pico-sdk new file mode 160000 +Subproject 6a7db34ff63345a7badec79ebea3aaef1712f37 |