redox/recipes/wip/dev/lang/micropython/recipe.toml
2026-10-12 11:01:56 -03:00

23 lines
649 B
TOML

#TODO compile and test
# 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
DYNAMIC_INIT
make -C ../../mpy-cross # build cross-compiler
MAKEFLAGS=(
VARIANT=minimal
)
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" "${MAKEFLAGS[@]}"
"${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}/usr"
"""