File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ cmake_minimum_required(VERSION 3.16)
66
77project (so3-usr LANGUAGES C ASM )
88
9+ option (MICROPYTHON "Support for micro-python apps" OFF )
10+
11+
912# Detect the correct compiler runtime library and add it
1013# to 'LIBCXX_LIBRARIES'. back to gcc_s if available.
1114
Original file line number Diff line number Diff line change 9595fi
9696cd -
9797
98- if [ " $PLATFORM " == " virt64" ]; then
99- echo " Compiling microPython"
100- cd src/micropython/ports/soo
101- make
102- cp build/firmware.elf ../../../../build/src/uPython.elf
103- cd -
104- fi
105-
106-
10798mkdir -p build/deploy/
10899
109100# SO3 shell
Original file line number Diff line number Diff line change 1+
2+ add_custom_command (OUTPUT firmware.elf
3+ DEPENDS c
4+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} /src/micropython
5+ COMMAND /bin/sh ${PROJECT_SOURCE_DIR} /src/micropython/build.sh ${PROJECT_BINARY_DIR} /src/micropython
6+ )
7+
8+ add_custom_target (uPython.elf ALL
9+ DEPENDS firmware.elf
10+ COMMAND mv ${PROJECT_BINARY_DIR} /src/micropython/firmware.elf ${PROJECT_BINARY_DIR} /src/micropython/uPython.elf
11+ )
12+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " Compiling microPython"
4+
5+ cd ports/soo
6+
7+ make BUILD=$1
8+
9+
10+
You can’t perform that action at this time.
0 commit comments