summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2017-02-10tools/upip: Update to 1.1.5. Better and more user-friendly error handling.Paul Sokolovsky
2017-01-27qemu-arm: Don't compile tests in "REPL" mode.Damien George
Previous to this patch the qemu-arm tests were compiled with is_relp=true meaning that the __repl_print__ function was called for all lines of code in the outer scope. This is not the right behaviour for scripts that are executed as though they were a file (eg tests). With this fix the micropython/heapalloc_str.py test now works so it is removed from the test blacklist.
2017-01-27tools/tinytest-codegen.py: Blacklist heapalloc_str.py test for qemu-arm.Paul Sokolovsky
2017-01-05tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.Damien George
With caching of map lookups in the bytecode, frozen bytecode can still work but must be stored in RAM, not ROM. This patch allows mpy-tool.py to generate code that works with this optimisation, but it's not recommended to use it on embedded targets (because of lack of RAM).
2016-12-15tools/pyboard.py: Refactor so target is not reset between scripts/cmd.Damien George
Previous to this patch pyboard.py would open a new serial connection to the target for each script that was run, and for any command that was run. Apart from being inefficient, this meant that the board was soft-reset between scripts/commands, which precludes scripts from accessing variables set in a previous one. This patch changes the behaviour of pyboard.py so that the connection to the target is created only once, and it's not reset between scripts or any command that is sent with the -c option.
2016-11-12tools/tinytest-codegen: Blacklist recently added uheapq_timeq test (qemu-arm).Paul Sokolovsky
2016-11-07tools, unix: Replace upip tarball with just source files.Paul Sokolovsky
To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
2016-11-03qemu-arm: Enable software floating point support, and float tests.Damien George
This helps to test floating point code on Cortex-M hardware. As part of this patch the link-time-optimisation was disabled because it wasn't compatible with software FP support. In particular, the linker could not find the __aeabi_f2d, __aeabi_d2f etc functions even though they were provided by lib/libm/math.c.
2016-10-30tools/tinytest-codegen: Exclude ticks_diff test for qemu-arm port.Paul Sokolovsky
2016-10-27qemu-arm: Exclude new vfs_fat tests.Alex March
2016-10-25tools/check_code_size.sh: Code size validation script for CI.Paul Sokolovsky
2016-10-24tools/pip-micropython: Remove deprecated wrapper tool.Paul Sokolovsky
Deprecated for long time, pip-micropython now can't install packages optimized for low-heap ports (like whole of micropython-lib).
2016-10-24qemu-arm: Exclude extmod/vfs_fat_fileio.py test.Alex March
2016-10-22tools: Upgrade upip to 1.1.4.Paul Sokolovsky
Fix error on unix when installing to non-existing absolute path.
2016-10-14qemu-arm: Enable lots of extmods and enable tests for them.Damien George
The qemu-arm port is used for testing of ARM Thumb architecture on a desktop so should have many features enabled.
2016-10-12tools: Upgrade upip to 1.1.3.Paul Sokolovsky
Initial support for running on a baremetal, low-heap systems (like esp8266), using Python module interface.
2016-10-05tools: Upgrade upip to 1.0.Paul Sokolovsky
Fully self-hosted release (without fallbacks), and uses stream gzip decompression (step towards support for limited-heap baremetal systems).
2016-09-23tools: Update upip to 0.8. Fixes IPv6 support.Paul Sokolovsky
2016-09-23py: Update opcode format table because 3 opcodes were removed, 1 added.Damien George
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has been added in adaf0d865cd6c81fb352751566460506392ed55f.
2016-09-03tools/mpy-tool.py: Support freezing of complex numbers.Damien George
2016-09-02tools/mpy-tool.py: Compute the hash value for str/bytes objects.Damien George
This makes it more efficient at runtime to hash str/bytes objects.
2016-09-02tools/mpy-tool.py: Store qstr config values in global config object.Damien George
Makes it easier to access them without passing around another dict of the config values.
2016-08-10tools/mpy-tool.py: Support freezing float literals with obj-repr C.Damien George
The tool now generates code for freezing floats in obj-repr A, B or C, with the specific representation detected at compile time using macros.
2016-05-28tools: Upgrade upip to 0.7.Paul Sokolovsky
SSL certificate warning, switch to uerrno, and better usage message.
2016-05-23tools/mpy-tool.py: Don't strip directories from the frozen source name.Damien George
Directories are now supported by the frozen import system (to implement frozen packages) so we should keep them.
2016-05-23tools/mpy-tool.py: Include .py extension in frozen filename.Damien George
So that it can be correctly stat'd when looking for frozen files.
2016-05-21tools/make-frozen: Update for latest changes in frozen modules support.Paul Sokolovsky
Frozen modules are now stored with extensions and with '/' as path separator. In other words, frozen modules paths stored as they are in normal filesystem.
2016-05-16tools/mpy-tool.py: Add checks for critical configuration vars.Damien George
When an mpy file is frozen it must know the values of certain configuration variables. This patch provides an explicit check in the generated C file that the configuration variables are what they are supposed to be.
2016-05-14tools/make-frozen.py: Quick fix to support package-modules.Paul Sokolovsky
It allows to "import foo.bar", but not "from foo import bar".
2016-05-13tools/make-frozen.py: Properly escape hex chars when making C strings.Damien George
2016-05-03tools/mpy-tool: Make sure that all C-level variables are unique.Damien George
Fixes issue #2023.
2016-04-15tools/mpy-tool.py: Add support for Python 2.7.Damien George
2016-04-13py: Add ability to have frozen persistent bytecode from .mpy files.Damien George
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
2016-04-13tools: Add mpy-tool.py, to work with .mpy files.Damien George
Currently it can freeze .mpy files.
2016-03-15qemu-arm: Enable builtin override feature, and enable more tests.Damien George
Hopefully these tests run reliably on Travis.
2016-01-03py/frozenmod: Store frozen module names together, to quickly scan them.Paul Sokolovsky
2016-01-01py/frozenmod: Make frozen module content be 0-terminated.Paul Sokolovsky
To allow simple zero-terminated lexers.
2015-12-31tools: Add C middle-processor to make builtin tables proper hash tables.Damien George
2015-12-12tools: Upgrade upip to 0.6.3.Paul Sokolovsky
Updated for _os -> uos builtin module rename.
2015-12-08tools: Fix pyboard.py to work under Python 3.Damien George
2015-12-08tools: Add option to pyboard.py to wait for serial device to be ready.Peter Hinch
Also prints a nicer error message if the serial connection could not be established.
2015-12-06tools: Allow pyboard.py to work when boot.py prints things.Dave Hylands
2015-11-15tools: Update to upip 0.6.2. Fixes issue due to MacOSX undocumented behavior.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.1. Fixes normal installs without -p switch.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.Paul Sokolovsky
Removes FFI dependency, instead uses builtin os module. Thus can work on systems where dynamic library loading is not available.
2015-11-07tools/pyboard.py: Don't add terminating \x04 character to stdout output.Paul Sokolovsky
2015-11-07tools/pyboard.py: Make -c (inline Python code) option compatible with python2.Paul Sokolovsky
2015-10-19tools/pyboard: Add -c argument to run a program passed as a string.Tom Soulanille
2015-10-17tools/upip: Update to 0.5.9.Paul Sokolovsky
MICROPYPATH environment variable is now honored, package are installed to first path specified in it.
2015-10-12Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.Damien George