summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2021-08-07 13:24:14 +0200
committerDamien George <damien@micropython.org>2021-08-10 11:05:33 +1000
commit23531bca74b593890e0a3049eb08f8db043f8dc1 (patch)
tree8099a049ae7402264be3b28c7dfe2e6342f0a8e3
parent3835f5f597a002149d85423dcc72371e8d8bbcc5 (diff)
rp2/CMakeLists.txt: Allow a board's cmake to set the manifest path.
This allows boards to add frozen modules, or bypass the port manifest entirely.
-rw-r--r--ports/rp2/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt
index 3dea793ef..34fabbc8b 100644
--- a/ports/rp2/CMakeLists.txt
+++ b/ports/rp2/CMakeLists.txt
@@ -163,7 +163,9 @@ set(PICO_SDK_COMPONENTS
# Define mpy-cross flags and frozen manifest
set(MICROPY_CROSS_FLAGS -march=armv7m)
-set(MICROPY_FROZEN_MANIFEST ${PROJECT_SOURCE_DIR}/boards/manifest.py)
+if (NOT MICROPY_FROZEN_MANIFEST)
+ set(MICROPY_FROZEN_MANIFEST ${PROJECT_SOURCE_DIR}/boards/manifest.py)
+endif()
target_sources(${MICROPY_TARGET} PRIVATE
${MICROPY_SOURCE_PY}