Skip to content

Commit c17f2d5

Browse files
committed
add maixcam2 compile support
1 parent c0110c1 commit c17f2d5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ tools/os/tmp2/
179179
tools/os/img_root/
180180
tools/os/img_boot/
181181
projects/apps/
182+
183+
184+
.vscode*

configs/config_platform_maixcam2.mk

Whitespace-only changes.

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66

77
####################################################################
88
# supported platforms
9-
board_names = ["linux", "maixcam"]
9+
board_names = ["linux", "maixcam", "maixcam2"]
1010
platform_names = {
1111
# use correspond docker to compile https://github.com/pypa/manylinux
1212
"linux": "manylinux2014_{}".format(platform.machine().replace("-", "_").replace(".", "_").lower()),
1313
"m2dock": "linux_armv7l",
1414
"maixcam": "linux_riscv64",
15+
"maixcam2": "manylinux2014_aarch64",
16+
}
17+
python_version = {
18+
"maixcam": [3, 11],
19+
"maixcam2": [3, 13]
1520
}
1621
platform_toolchain_id = {
1722
"maixcam": "musl_t-hread"
@@ -68,8 +73,8 @@ def print_py_version_err(build_py_version):
6873

6974
# specially check for maixcam
7075
py_version = get_python_version()
71-
if board == "maixcam" and f"{py_version[0]}.{py_version[1]}" != "3.11":
72-
print_py_version_err([3, 11])
76+
if board in python_version and py_version[:2] != python_version[board]:
77+
print_py_version_err(python_version[board])
7378
sys.exit(1)
7479

7580
if board:

0 commit comments

Comments
 (0)