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:
parent
97091ff4fd
commit
91c6a2128e
12
Makefile
12
Makefile
@ -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
5
micropython.sh
Executable file
@ -0,0 +1,5 @@
|
||||
if [ ! -f vendor/micropython/ports/unix/micropython ]; then
|
||||
make micropython-build-unix
|
||||
fi
|
||||
|
||||
vendor/micropython/ports/unix/micropython $@
|
Loading…
Reference in New Issue
Block a user