Fix fastbuild to work on all Pyboard types.

pull/12/head
Peter Hinch 2019-10-21 17:42:15 +01:00
rodzic 1e88ebd417
commit 3608a86bb1
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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
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)
### Optional Edits
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
build on my Core i7 4/8 core laptop: adjust to suit your PC. You may also want
to remove the call to `rshell` if you don't plan on using it.
build on my Core i7 4/8 core laptop: adjust to suit your PC.
This script defaults to a frozen modules directory `stmhal/modules`. This may
be overridden by creating an environment variable FROZEN_DIR: a recent update

Wyświetl plik

@ -28,7 +28,7 @@ then
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= && pyb_boot $MPDEVICE
then
sleep 1
make PYTHON=python3 BOARD=$BOARD deploy
make PYTHON=python3 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= deploy
else
echo Build failure
fi