Skip to content

Commit 23531bc

Browse files
iabdalkaderdpgeorge
authored andcommitted
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.
1 parent 3835f5f commit 23531bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ports/rp2/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ set(PICO_SDK_COMPONENTS
163163

164164
# Define mpy-cross flags and frozen manifest
165165
set(MICROPY_CROSS_FLAGS -march=armv7m)
166-
set(MICROPY_FROZEN_MANIFEST ${PROJECT_SOURCE_DIR}/boards/manifest.py)
166+
if (NOT MICROPY_FROZEN_MANIFEST)
167+
set(MICROPY_FROZEN_MANIFEST ${PROJECT_SOURCE_DIR}/boards/manifest.py)
168+
endif()
167169

168170
target_sources(${MICROPY_TARGET} PRIVATE
169171
${MICROPY_SOURCE_PY}

0 commit comments

Comments
 (0)