From e85148cc02a922d3d4ae9d6820cb065db4a7838a Mon Sep 17 00:00:00 2001 From: Ribbon Date: Sun, 12 Jul 2026 11:18:56 -0300 Subject: [PATCH] Add micropython recipe --- recipes/wip/dev/lang/micropython/recipe.toml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/wip/dev/lang/micropython/recipe.toml diff --git a/recipes/wip/dev/lang/micropython/recipe.toml b/recipes/wip/dev/lang/micropython/recipe.toml new file mode 100644 index 000000000..c8c1e777e --- /dev/null +++ b/recipes/wip/dev/lang/micropython/recipe.toml @@ -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" +"""