summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* unix: Deprecate support for GNU Readline (MICROPY_USE_READLINE=2).Paul Sokolovsky2016-06-16
| | | | | | | | | | | | MicroPython own readline implementation is superior now by providing automatic indentation and completion (completion for GNU Readline was never implemented). MICROPY_USE_READLINE=2 also wasn't build for a long time and probably broken. If GNU Readline is still beneficial for some cases, it can be achieved with external wrappers like "rlwrap" (there will be the same level of functionality, as again, there never was deep integration, like completion support).
* unix/mpconfigport_minimal.h: Clearly mark where user-define config ends.Paul Sokolovsky2016-06-16
| | | | TODO: Do the same for other config files.
* unix: Unbreak "minimal" target by disabling FatFs.Paul Sokolovsky2016-06-16
| | | | Was broken since introduction of FatFs support.
* py/mpconfig.h: MP_NOINLINE is universally useful, move from unix port.Paul Sokolovsky2016-06-15
|
* extmod/vfs_fat.c: Add vfs.stat().Robert HH2016-05-31
| | | | | | The call to stat() returns a 10 element tuple consistent to the os.stat() call. At the moment, the only relevant information returned are file type and file size.
* unix/Makefile: "make axtls": Automatically fetch submodules if missing.Paul Sokolovsky2016-05-28
| | | | | Try to emulate "you can build without reading instructions" behavior as far as possible.
* unix/mpconfigport.mk: Document MICROPY_STANDALONE make-level option.Paul Sokolovsky2016-05-28
| | | | | | | Avoid using system libraries, use copies bundled with MicroPython as submodules (currently affects only libffi, other dependencies either already used as bundled-only (axtls), or can't be bundled (so far), like libjni).
* unix: Enable "ussl" module.Paul Sokolovsky2016-05-26
| | | | | ussl was in testing mode for 8 months, and now enabled in other ports (e.g. esp8266), so time for unix port to catch up.
* unix/Makefile: nanbox build is not compatible with modussl, disable.Paul Sokolovsky2016-05-26
|
* unix: Support frozen packages.Damien George2016-05-23
| | | | | | To use, put your directory structure with .py files in frozen/ and then: make FROZEN_MPY_DIR=frozen
* py/objstr: Implement str.center().Paul Sokolovsky2016-05-22
| | | | | | Disabled by default, enabled in unix port. Need for this method easily pops up when working with text UI/reporting, and coding workalike manually again and again counter-productive.
* unix/unix_mphal: Implement mp_hal_ticks_us().Paul Sokolovsky2016-05-21
| | | | Similar to existing mp_hal_ticks_ms().
* unix/mpconfigport_coverage.h: Add dedicated config file for coverage build.Paul Sokolovsky2016-05-18
| | | | | This allows to enable the options which aren't enabled in the normal unix config (as unix port is no longer an enable-all port).
* unix: Add ability to include frozen bytecode in the build.Damien George2016-05-16
| | | | | | | | | | To use frozen bytecode make a subdirectory under the unix/ directory (eg frozen/), put .py files there, then run: make FROZEN_MPY_DIR=frozen Be sure to build from scratch. The .py files will then be available for importing.
* unix: Enable uerrno module.Damien George2016-05-10
|
* unix/mphalport: Add mp_hal_delay_us() for consistency with other ports.Pavol Rusnak2016-05-07
|
* unix/Makefile: Make install more compatible (BSD, etc.).Martin Müller2016-04-28
| | | | | | | | The current install command uses the flag -D which is specific to the install command from GNU coreutils, but isn't available for the BSD version. This solution uses the -d flag which should be commonly available to create the target directory. Afterwards the target files are installed to this directory seperately.
* unix: Make sure build dir exists before accessing it for freezing upip.Paul Sokolovsky2016-04-19
|
* py: Add rules for automated extraction of qstrs from sources.Jan Čapek2016-04-16
| | | | | | | | | | | | | | | | | | | | | - 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)
* py: Declare help, input, open builtins in core.Paul Sokolovsky2016-04-15
| | | | These are *defined* per-port, but why redeclare them again and again.
* py: Add ability to have frozen persistent bytecode from .mpy files.Damien George2016-04-13
| | | | | | | 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).
* lib/utils/printf: Rework overriding printer of DEBUG_printf().Paul Sokolovsky2016-04-13
| | | | | By default it uses mp_plat_print, but a port may override it to another value with MICROPY_DEBUG_PRINTER_DEST.
* unix: Build with MICROPY_PY_UHASHLIB_SHA1 if already building with axTLS.Paul Sokolovsky2016-04-11
|
* unix: freedos strip and size names for binariespohmelie2016-04-08
| | | | After this you need only one path for build (path/to/djgpp/bin). Original patch made by @dhylands
* unix/modsocket: Use mp_const_empty_map instead of creating empty map.Paul Sokolovsky2016-04-04
|
* unix: djgpp errno.h have no ENOTSUP, so define it to Linux value.pohmelie2016-04-03
|
* unix/file: "encoding" arg to open() isn't kw-only.Paul Sokolovsky2016-04-02
| | | | | And with "buffering" arg introduced, it's non possible to make it non-kwonly.
* unix/file: Parse "buffering" argument of open() builtin.Paul Sokolovsky2016-04-02
| | | | | It's ignored (unbuffered, raw I/O is used), but least makes it compatible with CPython.
* unix: implement -i option (inspect - start REPL after script is finished)Pavol Rusnak2016-04-01
|
* unix/unix_mphal: Hack to make uos.dupterm() actually work.Paul Sokolovsky2016-03-27
| | | | | | | See https://github.com/micropython/micropython/issues/1736 for the list of complications. This workaround instead of duplicating REPL to another stream, switches to it, because read(STDIN) we use otherwise is blocking call, so it and custom REPL stream can't be used together.
* unix/modsocket: Add comment regarding close() error checking (which is none).Paul Sokolovsky2016-03-02
|
* unix: Enabled importing of persistent bytecode (.mpy files).Damien George2016-02-25
|
* extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf.Paul Sokolovsky2016-02-15
| | | | TODO: Probably merge into vfs_fat_diskio.
* extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.Paul Sokolovsky2016-02-15
|
* extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.Paul Sokolovsky2016-02-15
|
* py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.Paul Sokolovsky2016-02-15
|
* unix: Enable VfsFat support.Paul Sokolovsky2016-02-14
|
* unix/file: Stop assuming that O_RDWR == O_RDONLY | O_WRONLY.Paul Sokolovsky2016-02-06
| | | | That's not true e.g. on Linux.
* py/mpprint: Fix sign extension when printf'ing %u, %x and %X.Damien George2016-02-01
|
* py/runtime: mp_stack_ctrl_init() should be called immediately on startup.Paul Sokolovsky2016-01-29
| | | | | | | | | 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)).
* unix/main: Remove debug code left from MP_OBJ_TO_PTR refactor.Paul Sokolovsky2016-01-29
|
* lib/utils/printf: Fix printf on release buildsDave Hylands2016-01-28
| | | | | | | When using newer glibc's the compiler automatically sets _FORTIFY_SOURCE when building with -O1 and this causes a special inlined version of printf to be declared which then bypasses our version of printf.
* unix/modsocket: sockaddr(): Handle AF_INET6 addresses.Paul Sokolovsky2016-01-27
|
* extmod/modurandom: Add some extra random functions.Damien George2016-01-26
| | | | | | | | | | | | | Functions added are: - randint - randrange - choice - random - uniform They are enabled with configuration variable MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default. It is enabled for unix coverage build and stmhal.
* unix/modsocket: accept(): Make IPv6-clean.Paul Sokolovsky2016-01-21
| | | | By reserving enough space for peer address.
* extmod/modurandom: Add "urandom" module.Paul Sokolovsky2016-01-17
| | | | | | | | Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang
* unix/modffi: Allow to compile modffi in OBJ_REPR_D mode.Damien George2016-01-15
|
* unix/.gitignore: Add nanbox build output to ignore list.Damien George2016-01-15
|
* unix: Add option to build 64-bit NaN-boxing interpreter.Damien George2016-01-15
| | | | Build using: make nanbox
* unix: Allow to build coverage build with OBJ_REPR_D.Damien George2016-01-11
|