Skip to content

Commit 5d4744e

Browse files
Simplify mpong build
1 parent 0f6ee86 commit 5d4744e

6 files changed

Lines changed: 35 additions & 50 deletions

File tree

c_mpos/mpong/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MPY_DIR = ../../lvgl_micropython/lib/micropython/
2+
3+
# Name of module
4+
MOD = mpong
5+
6+
# Source files (.c or .py)
7+
SRC = mpong.c
8+
9+
# Architectures to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin, rv32imc, rv64imc)
10+
ARCHES = x64 xtensawin
11+
12+
ifeq ($(ARCH),)
13+
.PHONY: all $(ARCHES)
14+
15+
all: $(ARCHES)
16+
17+
$(ARCHES):
18+
$(MAKE) -f $(lastword $(MAKEFILE_LIST)) ARCH=$@ MOD=$(MOD)_$@
19+
else
20+
# Include to get the rules for compiling and linking the module
21+
include $(MPY_DIR)/py/dynruntime.mk
22+
endif

c_mpos/mpong/Makefile_amd64

Lines changed: 0 additions & 13 deletions
This file was deleted.

c_mpos/mpong/Makefile_esp32

Lines changed: 0 additions & 13 deletions
This file was deleted.

c_mpos/mpong/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#. /home/user/projects/MicroPythonOS/claude/.espressif/python_env/idf5.4_py3.11_env/bin/activate
2+
3+
mydir=$(readlink -f "$0")
4+
mydir=$(dirname "$mydir")
5+
6+
cd "$mydir"
7+
8+
rm -rf build
9+
rm *.mpy
10+
11+
PATH=~/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/:$PATH make </dev/null
12+
13+
mv mpong*.mpy ../../internal_filesystem/apps/com.micropythonos.mpong/assets/

c_mpos/mpong/build_amd64.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

c_mpos/mpong/build_esp32.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)