| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
| |
Follow the same format as other ports using the macro to include
the HAL header.
|
|
|
|
| |
So far, no signature check is done (TODO).
|
|
|
|
| |
long).
|
| |
|
|
|
|
|
| |
Useful to load native method libraries not loaded by VM (as happens on
Android).
|
|
|
|
| |
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This includes Android Dalvik VM for example.
Example usage:
import jni
System = jni.cls("java/lang/System")
System.out.println("Hello, Java!")
|
| |
|
|
|
|
|
| |
This may be a bit confusing, as ENOENT is often rendered as "No such
file or directory", but any other code would be only more confusing.
|
|
|
|
|
|
| |
Linking against local libffi (and other libs in future) is triggered by
"make MICROPY_STANDALONE=1". Before that, dependent libs should be built
with "make deplibs".
|
|
|
|
|
|
| |
Indeed, this flag efectively selects architecture target, and must
consistently apply to all compiles and links, including 3rd-party
libraries, unlike CFLAGS, which have MicroPython-specific setting.
|
| |
|
|
|
|
| |
Saves 320 bytes on x86.
|
| |
|
|
|
|
| |
This change allows micropython to return the same value as CPython for sys.platform
|
|
|
|
| |
Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
|
|
|
|
|
|
|
|
| |
inet_pton supports both ipv4 and ipv6 addresses. Interface is also extensible
for other address families, but underlying libc inet_pton() function isn't
really extensible (e.g., it doesn't return length of binary address, i.e. it's
really hardcoded to AF_INET and AF_INET6). But anyway, on Python side, we could
extend it to support other addresses.
|
|
|
|
| |
Required to implement UDP servers.
|
|
|
|
|
|
|
|
|
| |
sendto() turns out to be mandatory function to work with UDP. It may seem
that connect(addr) + send() would achieve the same effect, but what connect()
appears to do is to set source address filter on a socket to its argument.
Then everything falls apart: socket sends to a broad-/multi-cast address,
but reply is sent from real peer address, which doesn't match filter set
by connect(), so local socket never sees a reply.
|
|
|
|
| |
Treating it as signed lead to buffer overflow for ports >= 32768.
|
|
|
|
| |
This usually allows to get just a single address entry.
|
|
|
|
|
|
|
|
|
|
| |
This requires root access. And on recent Linux kernels, with
CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in
/proc/iomem can be accessed. The above compiled-time option can be
however overriden with boot-time option "iomem=relaxed".
This also removed separate read/write paths - there unlikely would
be a case when they're different.
|
|
|
|
| |
To comply with Python semantics.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous to this patch a call such as list.append(1, 2) would lead to a
seg fault. This is because list.append is a builtin method and the first
argument to such methods is always assumed to have the correct type.
Now, when a builtin method is extracted like this it is wrapped in a
checker object which checks the the type of the first argument before
calling the builtin function.
This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
is enabled by default.
See issue #1216.
|
|
|
|
| |
See issue #1306.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
MicroPython doesn't come with standard library included, so it is important
to be able to easily install needed package in a seamless manner. Bundling
package manager (upip) inside an executable solves this issue.
upip is bundled only with standard executable, not "minimal" or "fast"
builds.
|
|
|
|
|
| |
This assures the terminal prints it's prompt on a fresh line instead of
appending it to the uPy prompt after exit.
|
|
|
|
|
| |
After switching to builtin readline support, "minimal" no longer builds, and
minimal doesn't really need readline support.
|
|
|
|
|
|
|
| |
Using MICROPY_PY_SYS_PATH_DEFAULT macro define. A usecase is building a
distribution package, which should not have user home path by default in
sys.path. In such case, MICROPY_PY_SYS_PATH_DEFAULT can be defined on
make command-line (using CFLAGS_EXTRA).
|
| |
|
|
|
|
|
|
| |
This gets uPy readline working with unix port, with tab completion and
history. GNU readline is still supported, configure using
MICROPY_USE_READLINE variable.
|
| |
|
|
|
|
|
| |
This reverts commit 8fbabab1a80efa8b9c0654f63b2157d8f8299955. Turned to
cause problems on MacOSX.
|
| |
|
| |
|
| |
|
|
|
|
| |
Make thumb2 have priority over arm.
|
|
|
|
|
| |
This allows the output of the extra-coverage tests to be checked using
the normal run-tests script.
|
|
|
|
|
|
| |
The function and corresponding command-line option are only enabled for
the coverage build. They are used to exercise uPy features that can't
be properly tested by Python scripts.
|