You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
unix build works
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
[submodule "freezeFS"]
|
||||
path = freezeFS
|
||||
url = https://github.com/MicroPythonOS/freezeFS
|
||||
[submodule "secp256k1-embedded-ecdh"]
|
||||
path = secp256k1-embedded-ecdh
|
||||
url = https://github.com/MicroPythonOS/secp256k1-embedded-ecdh
|
||||
branch = micropython_1.25.0
|
||||
[submodule "lvgl_micropython"]
|
||||
path = lvgl_micropython
|
||||
url = https://github.com/MicroPythonOS/lvgl_micropython
|
||||
[submodule "micropython-camera-API"]
|
||||
path = micropython-camera-API
|
||||
url = https://github.com/cnadler86/micropython-camera-API
|
||||
Submodule
+1
Submodule freezeFS added at 92f12eb1ae
Submodule
+1
Submodule lvgl_micropython added at bcfd8a96c7
Submodule
+1
Submodule micropython-camera-API added at 2dd9711735
@@ -55,8 +55,8 @@ if [ "$target" == "esp32" ]; then
|
||||
# CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
|
||||
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
|
||||
[ ! -z "$manifest" ] && frozenmanifest="FROZEN_MANIFEST="$(readlink -f "$manifest")
|
||||
pushd "$twoup"/lvgl_micropython
|
||||
python3 make.py --ota --partition-size=4194304 --flash-size=16 esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=st7789 INDEV=cst816s USER_C_MODULE="$twoup"/micropython-camera-API/src/micropython.cmake USER_C_MODULE="$twoup"/secp256k1-embedded-ecdh/micropython.cmake USER_C_MODULE="$oneup"/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$frozenmanifest"
|
||||
pushd lvgl_micropython
|
||||
python3 make.py --ota --partition-size=4194304 --flash-size=16 esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=st7789 INDEV=cst816s USER_C_MODULE="$mydir"/micropython-camera-API/src/micropython.cmake USER_C_MODULE="$mydir"/secp256k1-embedded-ecdh/micropython.cmake USER_C_MODULE="$mydir"/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$frozenmanifest"
|
||||
popd
|
||||
elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
|
||||
if [ "$buildtype" == "prod" ]; then
|
||||
@@ -67,7 +67,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
|
||||
# LV_CFLAGS are passed to USER_C_MODULES
|
||||
# STRIP= makes it so that debug symbols are kept
|
||||
[ ! -z "$manifest" ] && frozenmanifest="FROZEN_MANIFEST="$(readlink -f "$manifest")
|
||||
pushd "$twoup"/lvgl_micropython
|
||||
pushd lvgl_micropython/
|
||||
# USER_C_MODULE doesn't seem to work properly so there are symlinks in lvgl_micropython/extmod/
|
||||
python3 make.py "$target" LV_CFLAGS="-g -O0 -ggdb -ljpeg" STRIP= DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"
|
||||
popd
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#!/bin/bash
|
||||
scriptdir=$(readlink -f "$0")
|
||||
scriptdir=$(dirname "$mydir")
|
||||
script="$1"
|
||||
if [ -f "$script" ]; then
|
||||
script=$(readlink -f "$script")
|
||||
@@ -40,13 +43,13 @@ export HEAPSIZE=128M # for 1280x720 images in the image viewer
|
||||
|
||||
# print os and set binary
|
||||
os_name=$(uname -s)
|
||||
if [ "$os_name" == "Darwin" ]; then
|
||||
if [ "$os_name" = "Darwin" ]; then
|
||||
echo "Running on macOS"
|
||||
binary=../lvgl_micropython/build/lvgl_micropy_macOS
|
||||
binary="$scriptdir"/../lvgl_micropython/build/lvgl_micropy_macOS
|
||||
else
|
||||
# other cases can be added here
|
||||
echo "Running on $os_name"
|
||||
binary=../lvgl_micropython/build/lvgl_micropy_unix
|
||||
binary="$scriptdir"/../lvgl_micropython/build/lvgl_micropy_unix
|
||||
fi
|
||||
|
||||
binary=$(readlink -f "$binary")
|
||||
|
||||
Submodule
+1
Submodule secp256k1-embedded-ecdh added at 34a3ea189c
Reference in New Issue
Block a user