Simplify mpong build

This commit is contained in:
Thomas Farstrike
2026-03-09 12:50:06 +01:00
parent 0f6ee86d71
commit 5d4744e623
6 changed files with 35 additions and 50 deletions
+22
View File
@@ -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
-13
View File
@@ -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
-13
View File
@@ -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
+13
View File
@@ -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/
-11
View File
@@ -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
-13
View File
@@ -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