mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-06 04:27:45 +08:00
Add micropython recipe
This commit is contained in:
parent
459bdca6c9
commit
e85148cc02
21
recipes/wip/dev/lang/micropython/recipe.toml
Normal file
21
recipes/wip/dev/lang/micropython/recipe.toml
Normal file
@ -0,0 +1,21 @@
|
||||
#TODO compile and test
|
||||
# probably wrong gnu make command
|
||||
# build instructions:
|
||||
# https://github.com/micropython/micropython#the-micropython-cross-compiler-mpy-cross
|
||||
# https://github.com/micropython/micropython/blob/master/ports/unix/README.md
|
||||
[source]
|
||||
tar = "https://micropython.org/resources/source/micropython-1.28.0.tar.xz"
|
||||
[build]
|
||||
template = "custom"
|
||||
#dependencies = [
|
||||
# "libffi",
|
||||
#]
|
||||
script = """
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
cd ports/unix
|
||||
make -C ../../mpy-cross
|
||||
MAKEFLAGS=(
|
||||
VARIANT=minimal
|
||||
)
|
||||
"${COOKBOOK_MAKE}" install -j"$COOKBOOK_MAKE_JOBS" "${MAKEFLAGS[@]}" DESTDIR="$COOKBOOK_STAGE/usr"
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user