Commit c4cc5d2
committed
ports/stm32: Fix build with Zephyr threading disabled.
When MICROPY_ZEPHYR_THREADING=0 is passed on the command line, the build
would fail because the preprocessor symbol was not defined. The board
config header unconditionally defined it as 1, which then tried to
include Zephyr headers that weren't available.
Fix by:
- Making the board config define conditional (#ifndef guard)
- Adding an else clause in the Makefile to define the symbol as 0 when
the feature is disabled1 parent e1f9b17 commit c4cc5d2
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments