You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Simplify mpong build
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
MPY_DIR = ../../lvgl_micropython/lib/micropython/
|
||||
|
||||
# Name of module
|
||||
MOD = mpong
|
||||
|
||||
# Source files (.c or .py)
|
||||
SRC = mpong.c
|
||||
|
||||
# Architectures to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc, rv64imc)
|
||||
ARCHES = x64 xtensawin
|
||||
|
||||
ifeq ($(ARCH),)
|
||||
.PHONY: all $(ARCHES)
|
||||
|
||||
all: $(ARCHES)
|
||||
|
||||
$(ARCHES):
|
||||
$(MAKE) -f $(lastword $(MAKEFILE_LIST)) ARCH=$@ MOD=$(MOD)_$@
|
||||
else
|
||||
# Include to get the rules for compiling and linking the module
|
||||
include $(MPY_DIR)/py/dynruntime.mk
|
||||
endif
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
MPY_DIR = ../../lvgl_micropython/lib/micropython/
|
||||
|
||||
# Name of module
|
||||
MOD = mpong
|
||||
|
||||
# Source files (.c or .py)
|
||||
SRC = mpong.c
|
||||
|
||||
# Architecture to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc, rv64imc)
|
||||
ARCH = x64
|
||||
|
||||
# Include to get the rules for compiling and linking the module
|
||||
include $(MPY_DIR)/py/dynruntime.mk
|
||||
@@ -1,13 +0,0 @@
|
||||
MPY_DIR = ../../lvgl_micropython/lib/micropython/
|
||||
|
||||
# Name of module
|
||||
MOD = mpong
|
||||
|
||||
# Source files (.c or .py)
|
||||
SRC = mpong.c
|
||||
|
||||
# Architecture to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc, rv64imc)
|
||||
ARCH = xtensawin
|
||||
|
||||
# Include to get the rules for compiling and linking the module
|
||||
include $(MPY_DIR)/py/dynruntime.mk
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#. /home/user/projects/MicroPythonOS/claude/.espressif/python_env/idf5.4_py3.11_env/bin/activate
|
||||
|
||||
mydir=$(readlink -f "$0")
|
||||
mydir=$(dirname "$mydir")
|
||||
|
||||
cd "$mydir"
|
||||
|
||||
rm -rf build
|
||||
rm *.mpy
|
||||
|
||||
PATH=~/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/:$PATH make </dev/null
|
||||
|
||||
mv mpong*.mpy ../../internal_filesystem/apps/com.micropythonos.mpong/assets/
|
||||
@@ -1,11 +0,0 @@
|
||||
mydir=$(readlink -f "$0")
|
||||
mydir=$(dirname "$mydir")
|
||||
|
||||
cd "$mydir"
|
||||
rm -rf build
|
||||
|
||||
make -f Makefile_amd64 </dev/null
|
||||
result=$?
|
||||
[ $result -ne 0 ] && exit $result
|
||||
|
||||
mv mpong.mpy "$mydir"/../../internal_filesystem/apps/com.micropythonos.mpong/assets/mpong_amd64.mpy
|
||||
@@ -1,13 +0,0 @@
|
||||
#. /home/user/projects/MicroPythonOS/claude/.espressif/python_env/idf5.4_py3.11_env/bin/activate
|
||||
|
||||
mydir=$(readlink -f "$0")
|
||||
mydir=$(dirname "$mydir")
|
||||
|
||||
cd "$mydir"
|
||||
|
||||
rm -rf build
|
||||
|
||||
|
||||
PATH=/home/user/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/:$PATH make -f Makefile_esp32 </dev/null
|
||||
|
||||
mv mpong.mpy ../../internal_filesystem/mpong_esp32.mpy
|
||||
Reference in New Issue
Block a user