File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ set(DMBOOT_EXTRA_SDCARD_DMD_FILES "" CACHE STRING "Additional sdcard.dmd files t
1717set (DMBOOT_MANIFEST_URL "" CACHE STRING "Manifest path/URL to use with dmf-get -m flag for all module downloads" )
1818option (DMBOOT_EMULATION "Enable Renode emulation mode" OFF )
1919
20+ # Convert relative manifest path to absolute so it remains valid when the
21+ # working directory changes during the build (e.g. dmf-get is invoked from a
22+ # different directory than where cmake was originally run).
23+ if (DMBOOT_MANIFEST_URL AND NOT DMBOOT_MANIFEST_URL MATCHES "^https?://" )
24+ get_filename_component (DMBOOT_MANIFEST_URL "${DMBOOT_MANIFEST_URL} " ABSOLUTE BASE_DIR "${CMAKE_BINARY_DIR} " )
25+ message (STATUS "Resolved manifest path to absolute: ${DMBOOT_MANIFEST_URL} " )
26+ endif ()
27+
2028# ======================================================================
2129# Early DMOD Configuration (before project())
2230# ======================================================================
You can’t perform that action at this time.
0 commit comments