File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,12 @@ firmware:
30
30
BOARD_DIR=$(BOARD_DIR ) \
31
31
BUILD=$(BUILD )
32
32
33
+ mboot :
34
+ $(Q )$(MAKE ) -C $(MICROPY_TOP ) /ports/stm32/mboot \
35
+ PROJECT_TOP=$(abspath ../..) \
36
+ BOARD=$(BOARD ) \
37
+ BOARD_DIR=$(BOARD_DIR ) \
38
+ BUILD=$(BUILD ) -mboot
39
+
33
40
deploy :
34
41
$(PYTHON ) $(MICROPY_TOP ) /tools/pydfu.py -u $(BUILD ) /firmware.dfu
Original file line number Diff line number Diff line change 4
4
// Use PYBD_SF2 implementation, but add extra initialisation.
5
5
#include "boards/PYBD_SF2/board_init.c"
6
6
7
+ #if !BUILDING_MBOOT
8
+
7
9
void board_early_init_custom (void ) {
8
10
// Call PYBD_SF2's board init function.
9
11
board_early_init ();
@@ -23,3 +25,5 @@ int board_run_boot_py(boardctrl_state_t *state) {
23
25
mp_printf (& mp_plat_print , "Starting custom board\n" );
24
26
return boardctrl_run_boot_py (state );
25
27
}
28
+
29
+ #endif
You can’t perform that action at this time.
0 commit comments