Skip to content

Commit 327a3ba

Browse files
committed
ports/stm32: Add Zephyr source to qstr extraction for root pointers.
Include ZEPHYR_MP_SRC_C in SRC_QSTR when MICROPY_ZEPHYR_THREADING=1 to ensure MP_REGISTER_ROOT_POINTER declarations in mpthread_zephyr.c are extracted and included in genhdr/root_pointers.h. Without this, the build system doesn't preprocess the Zephyr threading files and misses the mp_thread_list_head root pointer registration. Signed-off-by: Andrew Leech <[email protected]>
1 parent 6be01e8 commit 327a3ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/stm32/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ $(BUILD)/firmware.elf: $(OBJ)
680680

681681
# List of sources for qstr extraction
682682
SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SHARED_SRC_C) $(GEN_PINS_SRC)
683+
# Add MicroPython-Zephyr integration files for root pointer extraction
684+
ifeq ($(MICROPY_ZEPHYR_THREADING),1)
685+
SRC_QSTR += $(ZEPHYR_MP_SRC_C)
686+
endif
683687

684688
# Making OBJ use an order-only dependency on the generated pins.h file
685689
# has the side effect of making the pins.h file before we actually compile

0 commit comments

Comments
 (0)