summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2021-06-23tools: Remove obsolete build-stm-latest.sh script.Damien George
The tools/autobuild/ scripts replace this. Signed-off-by: Damien George <damien@micropython.org>
2021-06-23tools/autobuild: Add scripts to build release firmware.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-06-15tools/mpremote: Use signal to capture and handle ctrl-C on Windows.Damien George
Now a ctrl-C will not stop mpremote, rather this character will be passed through to the attached device. The mpremote version is also increased to 0.0.5. Signed-off-by: Damien George <damien@micropython.org>
2021-06-15tools/mpremote: Use available ports instead of auto-connect list.Damien George
Using just the list of available ports, instead of a hard-coded list of possible ports, means that all ports will be available for auto connection. And the order that they will be attempted in will match what's printed by "mpremote connect list" (and will be the same as before, trying ACMx before USBx). Auto-connect will also now work on Mac, and will allow all COM ports on Windows. Signed-off-by: Damien George <damien@micropython.org>
2021-06-06tests/unix: Add ffi test for integer types.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-06-06zephyr: Update to Zephyr v2.6.0.Maureen Helm
Updates the zephyr port build instructions and CI to use the latest zephyr release tag. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-06-05github/workflows: Add workflow to build and run unix port on ARM.Damien George
Following on from ef16834887de02cbddf414b560e5a2af9cae4b16, this adds a coverage build and running of the test suite on an ARM 32-bit Linux-based architecture. Signed-off-by: Damien George <damien@micropython.org>
2021-06-02tools/ci.sh: Build mpy-cross as part of ci_mimxrt_build.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-29tools/mpremote: Add new CLI utility to interact with remote device.Damien George
This has been under development since April 2017. See #3034 and #6375. Signed-off-by: Damien George <damien@micropython.org>
2021-05-29tools/pyboard.py: Add "soft_reset" option to Pyboard.enter_raw_repl().Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-29tools/pyboard.py: Track raw REPL state via in_raw_repl variable.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26github/workflows: Add workflow to build and run unix port on MIPS.Damien George
This adds a coverage build and running of the test suite on a MIPS 32-bit big endian architecture. It uses the feature of qemu to execute foreign code as though it were native to the system (using qemu user mode). The code compiled for MIPS will run under the qemu VM, but all syscalls made by this code go to the host (Linux) system. See related #7268 and #7273. Signed-off-by: Damien George <damien@micropython.org>
2021-05-26tools/ci.sh: Build Cortex-A9 sabrelite board as part of qemu-arm CI.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26tools/tinytest-codegen.py: Add command-line option to exclude tests.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26tools/mpy-tool.py: Support relocating ARMv6 arch.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26github/workflows: Add CI workflow for mimxrt port.Philipp Ebensberger
2021-05-23tools/ci.sh: Use FROZEN_MANIFEST in an esp32 build to test feature.Damien George
This tests that FROZEN_MANIFEST works with cmake (on esp32 at least). Signed-off-by: Damien George <damien@micropython.org>
2021-05-21tools/ci.sh: Update zephyr docker image to v0.17.3.Maureen Helm
Updates the zephyr docker image and SDK to the latest versions. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-05-21tools/pydfu.py: Remove default VID/PID values.Tobias Thyrrestrup
As the new default behaviour, this allows PyDFU to be used with all devices, not just the ones matching a specific set of VID/PID values. But it's still possible to specify VID/PID if needed to narrow down the selection of the USB device. Signed-off-by: Tobias Thyrrestrup <tt@LEGO.com>
2021-05-20tools/mpy_ld.py: Support R_X86_64_GOTPCREL reloc for x86-64 arch.Damien George
This can be treated by the linker the same as R_X86_64_REX_GOTPCRELX, according to https://reviews.llvm.org/D18301. Signed-off-by: Damien George <damien@micropython.org>
2021-04-29tools/makemanifest.py: Show directory name if there is a FreezeError.Steve App
2021-04-27tools/gen-cpydiff.py: Fix formatting of doc strings for new Black.iabdalkader
Since version 21.4b0, Black now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """"; see https://github.com/psf/black/pull/1740 This commit makes the Python code in this repository conform to this rule.
2021-04-23tools/pyboard.py: Support opening serial port in exclusive mode.Damien George
This is now the default, but can be overridden with CLI `--no-exclusive`, or constructing `Pyboard(..., exclusive=False)`. Signed-off-by: Damien George <damien@micropython.org>
2021-04-23tools/upip.py: Use .errno instead of .args[0] for OSError exceptions.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-04-23stm32/mboot: Allow unpacking dfu without secret key.David Michieli
- unpack-dfu command no longer requies a secret key to be present - pack-dfu command raises an exception if no secret key is found
2021-04-20tools/metrics.py: Add rp2 port to table of ports that can be built.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-04-15tools/ci.sh: Build esp32 using IDF v4.0.2 and v4.3.Damien George
To test different IDF's, and also test building the GENERIC_S2 board. Signed-off-by: Damien George <damien@micropython.org>
2021-04-06tools/metrics.py: Fix esp32 output filename due to move to CMake.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-04-01examples/usercmodules: Simplify user C module enabling.Damien George
It's a bit of a pitfall with user C modules that including them in the build does not automatically enable them. This commit changes the docs and examples for user C modules to encourage writers of user C modules to enable them unconditionally. This makes things simpler and covers most use cases. See discussion in issue #6960, and also #7086. Signed-off-by: Damien George <damien@micropython.org>
2021-04-01tools/ci.sh: Build user C modules for esp32.Michael O'Cleirigh
Builds the esp32 port against the example C and CXX modules. Signed-off-by: Michael O'Cleirigh <michael.ocleirigh@rivulet.ca>
2021-03-31tools/ci.sh: Add CI for CMake USER_C_MODULE support.Phil Howard
Builds the rp2 port against the example C and CXX modules. Signed-off-by: Phil Howard <phil@pimoroni.com>
2021-03-12tests: Rename run-tests to run-tests.py for consistency.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-02-23tools/pydfu.py: Support DFU files with elements of zero size.Damien George
Instead of raising a ZeroDivisionError, this tool now just skips any elements in the DFU file that have zero size. Signed-off-by: Damien George <damien@micropython.org>
2021-02-21tools/verifygitlog.py: Show required format regexp in error message.iTitou
Signed-off-by: iTitou <moiandme@gmail.com>
2021-02-17stm32/mboot: Add unpack-dfu command to mboot_pack_dfu.py tool.David Michieli
This command unpacks a previously packed DFU file, writing out a DFU which should be the same as the original (before packing).
2021-02-16tools/ci.sh: Update zephyr docker image to v0.11.13.Maureen Helm
Updates the zephyr docker image to the latest, v0.11.13. This updates CI to use zephyr SDK v0.12.2 and GCC v10.2.0 for the zephyr port. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-02-16zephyr: Build MicroPython as a cmake target.Maureen Helm
Refactors the zephyr build infrastructure to build MicroPython as a cmake target, using the recently introduced core cmake rules. This change makes it possible to build the zephyr port like most other zephyr applications using west or cmake directly. It simplifies building with extra cmake arguments, such as specifying an alternate conf file or adding an Arduino shield. It also enables building the zephyr port anywhere in the host file system, which will allow regressing across multiple boards with the zephyr twister script. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-02-16zephyr: Update to zephyr v2.5.0.Maureen Helm
Updates the zephyr port build instructions and CI to use the latest zephyr release tag. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2021-02-16tools/makemanifest.py: Allow passing option args to include().Jim Mussared
This allows customising which features can be enabled in a frozen library. e.g. `include("path.py", extra_features=True)` in path.py: options.defaults(standard_features=True) if options.standard_features: # freeze standard modules. if options.extra_features: # freeze extra modules. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-02-15tools/ci.sh: Change esp32 CI to work with idf.py and IDF v4.0.2.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-02-13tools: Add filesystem action examples to pyboard.py help.Brianna Laugher
Signed-off-by: Brianna Laugher <brianna.laugher@gmail.com>
2021-02-12rp2: Use local tinyusb instead of the one in pico-sdk.Damien George
So that all MicroPython ports that use tinyusb use the same version. Also requires fewer submodule checkouts when building rp2 along with other ports that use tinyusb. Signed-off-by: Damien George <damien@micropython.org>
2021-01-30tools: Remove obsolete upip bootstrap script.stijn
The upip module is frozen into ports supporting it, and it is included in the source tree, so there is no need to get it from PyPi. Moreover the PyPi package referred to is an out-of-date version of upip which is basically unrelated to our upip.py because the source is taken from a fork of micropython-lib instead of this repository.
2021-01-30tools/makemanifest.py: Add check that freeze path is a directory.Jim Mussared
Avoids accidentally writing freeze("path/to/file.py") and getting unexpected results.
2021-01-30github/workflows: Add workflow to verify commit message format.stijn
Using the new tools/verifygitlog.py script.
2021-01-30tools/verifygitlog.py: Add script for verifying commit message format.stijn
The main rules enforced are: - At most 72 characters in the subject line, with a ": " in it. - At most 75 characters per line in the body. - No "noreply" email addresses.
2021-01-30github/workflows: Add CI workflow for rp2 port.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-01-29tools/mpy-tool.py: List frozen modules in MICROPY_FROZEN_LIST_ITEM.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-01-29tools/ci.sh: For ci_code_size_setup, update apt to install gcc-multilib.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-01-24tools/ci.sh: For code size build, fetch history of master branch only.Damien George
It's not necessary to fetch all branches. Signed-off-by: Damien George <damien@micropython.org>