From 3608a86bb1a35de9adad2f079ef9792194d832d3 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Mon, 21 Oct 2019 17:42:15 +0100 Subject: [PATCH] Fix fastbuild to work on all Pyboard types. --- fastbuild/README.md | 8 ++++++-- fastbuild/buildpyb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fastbuild/README.md b/fastbuild/README.md index 438237a..da2e0a1 100644 --- a/fastbuild/README.md +++ b/fastbuild/README.md @@ -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 diff --git a/fastbuild/buildpyb b/fastbuild/buildpyb index 1b65113..3a5c1f5 100755 --- a/fastbuild/buildpyb +++ b/fastbuild/buildpyb @@ -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