diff options
-rw-r--r-- | ports/rp2/micropy_rules.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/rp2/micropy_rules.cmake b/ports/rp2/micropy_rules.cmake index ade9b8c92..9eee4ac14 100644 --- a/ports/rp2/micropy_rules.cmake +++ b/ports/rp2/micropy_rules.cmake @@ -24,11 +24,10 @@ add_custom_command( ) # Generate moduledefs.h -# This is currently hard-coded to support modarray.c only, because makemoduledefs.py doesn't support absolute paths add_custom_command( OUTPUT ${MPY_MODULEDEFS} - COMMAND python3 ${MPY_PY_DIR}/makemoduledefs.py --vpath="." ../../../py/modarray.c > ${MPY_MODULEDEFS} + COMMAND python3 ${MPY_PY_DIR}/makemoduledefs.py --vpath="/" ${SOURCE_QSTR} > ${MPY_MODULEDEFS} DEPENDS ${MPY_MPVERSION} ${SOURCE_QSTR} ) |