- 15 Mar, 2017 5 commits
-
-
Damien George authored
When make is passed "-B" it seems that everything is considered out-of-date and so $? expands to all prerequisites. Thus there is no need for a special check to see if $? is emtpy.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 14 Mar, 2017 27 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Assertions are used to check expressions that should always be true, and mp_not_implemented is used for code that can be reached.
-
Rami Ali authored
-
Damien George authored
This is so the test can run successfully on targets that already have something mounted.
-
Damien George authored
-
Damien George authored
-
Damien George authored
The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped.
-
Rami Ali authored
-
Rami Ali authored
-
Damien George authored
-
Damien George authored
Some stack is allocated to format ints, and when the int implementation uses long-long there should be additional stack allocated compared with the other cases. This patch uses the existing "fmt_int_t" type to determine the amount of stack to allocate.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
The lexer constructor may now raise an exception and it needs to be caught.
-
Damien George authored
-
Damien George authored
And raise an exception when mp_lexer_new_from_file is called.
-
Damien George authored
And raise an exception when mp_lexer_new_from_file is called.
-
Damien George authored
And raise an exception when mp_lexer_new_from_file is called.
-
Damien George authored
And raise an exception when mp_lexer_new_from_file is called.
-
Damien George authored
The lexer can now raise an exception on construction so it must go within an nlr handler block.
-
Damien George authored
The lexer can now raise an exception on construction so it must go within an nlr handler block.
-
Damien George authored
This patch refactors the error handling in the lexer, to simplify it (ie reduce code size). A long time ago, when the lexer/parser/compiler were first written, the lexer and parser were designed so they didn't use exceptions (ie nlr) to report errors but rather returned an error code. Over time that has gradually changed, the parser in particular has more and more ways of raising exceptions. Also, the lexer never really handled all errors without raising, eg there were some memory errors which could raise an exception (and in these rare cases one would get a fatal nlr-not-handled fault). This patch accepts the fact that the lexer can raise exceptions in some cases and allows it to raise exceptions to handle all its errors, which are for the most part just out-of-memory errors during construction of the lexer. This makes the lexer a bit simpler, and also the persistent code stuff is simplified. What this means for users of the lexer is that calls to it must be wrapped in a nlr handler. But all uses of the lexer already have such an nlr handler for the parser (and compiler) so that doesn't put any extra burden on the callers.
-
Damien George authored
-
- 13 Mar, 2017 5 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
For example, if the current directory is the root dir then this patch allows one to do uos.listdir('mnt'), where 'mnt' is a valid mount point. Previous to this patch such a thing would not work, on needed to do uos.listdir('/mnt') instead.
-
Damien George authored
-
Damien George authored
Some ports may want to compile with generic MICROPY_VFS support but without the VfsFat class. This patch allows such a thing.
-
- 12 Mar, 2017 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Minimal config can be now build with: ./make-minimal BOARD=... This is required because of Makefile.exports magic, which in its turn depends on PROJ_CONF to be set correctly at the beginning of Makefile parsing at all times. Instead of adding more and more workarounds for that, it's better to just move minimal support to a separate wrapper. Also, remove Zephyr 1.5 era cruft from Makefile, and add support for Zephyr's "run" target which supercedes older "qemu" target in upstream.
-
Paul Sokolovsky authored
This is a typical problem with make: we want to trigger rebuilds only if file actually changed, not if its timestamp changed. In this case, it's aggravated by the fact that prj.conf depends on the value of BOARD variable, so we need to do some tricks anyway. We still don't try to detect if just BOARD changed, just try to generate new prj.conf.tmp every time (quick), but do actual replacement of prj.conf only if its content changed.
-