Build the Unix port of MicroPython so we can sanity-check layouts using the actual target Python, rather than CPython with all its niceties

This commit is contained in:
Josh Klar 2018-09-23 00:45:55 -07:00
parent 97091ff4fd
commit 91c6a2128e
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E
2 changed files with 17 additions and 0 deletions

View File

@ -41,10 +41,22 @@ circuitpy-deps: .circuitpy-deps
micropython-deps: .micropython-deps
vendor/micropython/ports/unix/micropython: vendor/micropython/ports/unix/modules/.kmk_frozen
@make -j4 -C vendor/micropython/ports/unix
micropython-build-unix: vendor/micropython/ports/unix/micropython
freeze-nrf-vendor-deps: vendor/circuitpython/ports/nrf/freeze/.kmk_frozen
freeze-teensy3.1-vendor-deps: vendor/micropython/ports/teensy/freeze/.kmk_frozen
freeze-stm32-vendor-deps: vendor/micropython/ports/stm32/freeze/.kmk_frozen
vendor/micropython/ports/unix/modules/.kmk_frozen: upy-freeze.txt
@echo "===> Preparing vendored dependencies for local development"
@rm -rf vendored_libs
@mkdir -p vendored_libs
@cat $< | xargs -I '{}' cp -a {} vendor/micropython/ports/unix/modules/
@touch $@
vendor/circuitpython/ports/nrf/freeze/.kmk_frozen: upy-freeze.txt
@echo "===> Preparing vendored dependencies for bundling"
@rm -rf vendor/circuitpython/ports/nrf/freeze/*

5
micropython.sh Executable file
View File

@ -0,0 +1,5 @@
if [ ! -f vendor/micropython/ports/unix/micropython ]; then
make micropython-build-unix
fi
vendor/micropython/ports/unix/micropython $@