mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-05 04:06:38 +08:00
23 lines
649 B
TOML
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"
|
|
"""
|