kopia lustrzana https://github.com/peterhinch/micropython-samples
Fix fastbuild to work on all Pyboard types.
rodzic
1e88ebd417
commit
3608a86bb1
|
@ -18,14 +18,18 @@ and `pyb_check` to determine the type of attached board. These use the
|
||||||
`pyboard.py` module in the source tree to execute scripts on the attached
|
`pyboard.py` module in the source tree to execute scripts on the attached
|
||||||
board.
|
board.
|
||||||
|
|
||||||
|
21st Oct 2019
|
||||||
|
Script modified to ignore the new FROZEN_MANIFEST system. It continues to work
|
||||||
|
without needing any change to the file layout. When some docs for the manifest
|
||||||
|
appear I will amend the script and this doc.
|
||||||
|
|
||||||
###### [Main README](../README.md)
|
###### [Main README](../README.md)
|
||||||
|
|
||||||
### Optional Edits
|
### Optional Edits
|
||||||
|
|
||||||
In the `buildpyb` script you may wish to edit the `-j 8` argument to `make`.
|
In the `buildpyb` script you may wish to edit the `-j 8` argument to `make`.
|
||||||
This radically speeds build on a multi core PC. Empirically 8 gave the fastest
|
This radically speeds build on a multi core PC. Empirically 8 gave the fastest
|
||||||
build on my Core i7 4/8 core laptop: adjust to suit your PC. You may also want
|
build on my Core i7 4/8 core laptop: adjust to suit your PC.
|
||||||
to remove the call to `rshell` if you don't plan on using it.
|
|
||||||
|
|
||||||
This script defaults to a frozen modules directory `stmhal/modules`. This may
|
This script defaults to a frozen modules directory `stmhal/modules`. This may
|
||||||
be overridden by creating an environment variable FROZEN_DIR: a recent update
|
be overridden by creating an environment variable FROZEN_DIR: a recent update
|
||||||
|
|
|
@ -28,7 +28,7 @@ then
|
||||||
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= && pyb_boot $MPDEVICE
|
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= && pyb_boot $MPDEVICE
|
||||||
then
|
then
|
||||||
sleep 1
|
sleep 1
|
||||||
make PYTHON=python3 BOARD=$BOARD deploy
|
make PYTHON=python3 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= deploy
|
||||||
else
|
else
|
||||||
echo Build failure
|
echo Build failure
|
||||||
fi
|
fi
|
||||||
|
|
Ładowanie…
Reference in New Issue