diff options
author | Marc Zyngier <maz@kernel.org> | 2023-10-04 17:15:33 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-10-04 17:15:33 +0100 |
commit | 30b4ec23fe7ba7eb64416a08d58dd87bfc537670 (patch) | |
tree | 0a9fc74f1b3481a384742a1814e675f433cbfb88 | |
parent | 270c2310ae99d1dda01daa454517559073fb7e22 (diff) | |
download | cs-sw-30b4ec23fe7ba7eb64416a08d58dd87bfc537670.tar.gz |
Tell cmake where to find the SDK
cmake needs a hint to find the SDK. Let's tell it.
Also keep track of the SDK version in the resulting binary.
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | vdmtool.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 19b367b..f281060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # Set minimum required version of CMake cmake_minimum_required(VERSION 3.12) +set (PICO_SDK_PATH "../pico-sdk") + # Include build functions from Pico SDK include(pico-sdk/external/pico_sdk_import.cmake) @@ -475,6 +475,8 @@ static void help(struct vdm_context *cxt) tmp->verbose ? ",debug" : ""); cprintf_cont(cxt, "\n"); } + + cprintf_cont(cxt, "pico-sdk " PICO_SDK_VERSION_STRING "\n"); } /* Break is handled as sideband data via the CDC layer */ |