- 16 Apr, 2016 2 commits
-
-
stijn authored
Note this still needs some work: currently all source files are always preprocessed no matter which one actually changed, moreover that happens file by file without any parallellism so builds are painstakingly slow.
-
Jan Čapek authored
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform makefiles (SRC_QSTR)
-
- 14 Apr, 2016 1 commit
-
-
Paul Sokolovsky authored
These are *defined* per-port, but why redeclare them again and again.
-
- 13 Apr, 2016 1 commit
-
-
Damien George authored
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).
-
- 29 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
Calling it from mp_init() is too late for some ports (like Unix), and leads to incomplete stack frame being captured, with following GC issues. So, now each port should call mp_stack_ctrl_init() on its own, ASAP after startup, and taking special precautions so it really was called before stack variables get allocated (because if such variable with a pointer is missed, it may lead to over-collecting (typical symptom is segfaulting)).
-
- 26 Jan, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 27 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 26 Dec, 2015 1 commit
-
-
stijn authored
The default bahaviour for debug builds is to show dialog boxes for asserts and invalid parameter handling. This is not so nice in general and causes the Appveyor debug builds to hang because the io\file_seek.py test passes a closed file descriptor to lseek. Disable this behaviour by printing assert messages to the output instead of showing the dialog, and by disabling 'invalid' parameter handling which causes the affected functions to just return an error and set errno appropriately.
-
- 21 Dec, 2015 1 commit
-
-
stijn authored
This builds upon the changes made in 21950463. Using signal() does not produce reliable results so SetConsoleCtrlHandler is used, and the handler is installed only once during initialization instead of removing it in mp_hal_set_interrupt_char when it is not strictly needed anymore, since removing it might lead to Ctrl-C events being missed because they are fired on a seperate thread which might only become alive after the handler was removed.
-
- 18 Dec, 2015 2 commits
-
-
stijn authored
Appveyor is like Travis, but for Windows builds. The appveyor.yml configuration will build the msvc port in all configuration/platform conbinations, and run the tests for each of those.
-
- 17 Dec, 2015 2 commits
-
-
Paul Sokolovsky authored
Compiles with mingw32, tested to work erratically under Wine due to not fully implemented emulation in it.
-
Paul Sokolovsky authored
-
- 14 Dec, 2015 1 commit
-
-
stijn authored
-
- 12 Dec, 2015 1 commit
-
-
Dave Hylands authored
This leaves behind the common functionality in extmod/machine_mem.c which can be used by all ports.
-
- 11 Dec, 2015 2 commits
-
-
Paul Sokolovsky authored
-
stijn authored
This allows multiple versions (e.g. Debug/Release, x86/x64) of micropython.exe to co-exist instead and also solves potential problems where msbuild does not completely rebuild the output and/or pdb files when switching between builds, which in turn can cause linker errors in dependent projects. By default exe/map/... files go in windows/build/$(Configuration)$(Platform) After each build micropython.exe is still copied from the above directory to the windows directory though, as that is consistent with the other ports and the test runner by default uses that location as well. Also rename env.props -> path.props which is a clearer name, and add ample documentation in the affected build files. (also see discussion in #1538)
-
- 24 Nov, 2015 2 commits
-
-
stijn authored
- add mp_int_t/mp_uint_t typedefs in mpconfigport.h - fix integer suffixes/formatting in mpconfig.h and mpz.h - use MICROPY_NLR_SETJMP=1 in Makefile since the current nlrx64.S implementation causes segfaults in gc_free() - update README
-
stijn authored
The BSD stuff is a copy from the unix makefile but at least there it makes some sense, a windows makefile on BSD doesn't. The -lmman flag is probably for mmap functions but there is no other build support for it on windows so just that flag won't cut it anyway.
-
- 14 Nov, 2015 1 commit
-
- 10 Nov, 2015 2 commits
- 02 Nov, 2015 1 commit
-
-
stijn authored
- use correct 'mingw-w64' package name - small grammar fixes - modify Cygwin build instructions to use that same compiler as well: the original mingw is stuck at gcc v4.7 and does not seem to be updated anymore - make it clear thet uPy also builds using Visual Studio versions > 2013
-
- 31 Oct, 2015 3 commits
-
-
Paul Sokolovsky authored
Ubuntu's mingw32 has gcc 4.2.1, which is rather old and has incorrect non-initialized variable analysis which produces warnings, which per MicroPython default settings get turned into errors.
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
- 30 Oct, 2015 1 commit
-
-
omtinez authored
Since VS2015, float formatting is C standard compliant by default: https://msdn.microsoft.com/en-us/library/bb531344(v=vs.140).aspx
-
- 26 Oct, 2015 2 commits
- 25 Oct, 2015 2 commits
- 20 Oct, 2015 1 commit
-
-
Damien George authored
If VT100 support is not available then a given implementation of mp_hal_erase_line_from_cursor might need to know the number of characters to erase. This patch does not change generated code when VT100 is supported, since compiler can optimise away the argument.
-
- 19 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
-
- 23 Sep, 2015 1 commit
-
-
stijn authored
-
- 22 Sep, 2015 1 commit
-
-
stijn authored
-
- 14 Aug, 2015 1 commit
-
-
stijn authored
- add SEEK_XXX definitions, this fixes missing definition in py/stream.c - move R_OK from realpath.c and add W_OK/F_OK defintions - move STDXXX_FILENO definitions from mpconfigport for consistency
-
- 04 Jun, 2015 2 commits
-
-
Paul Sokolovsky authored
After enabling line editing support on Windows console, this is no longer trivial.
-
stijn authored
-
- 27 May, 2015 1 commit
-
-
Damien George authored
-