diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-12 08:27:25 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-12 08:27:25 -0600 |
commit | a34a20837d27138c34e48c58c58499e5286963ab (patch) | |
tree | 75b5acb4d9d98bd596fd2d87c1ec5275ae966a45 /apps/interpreters | |
parent | bc3b81bf1ce53ed141e9734598dbeb227009a605 (diff) | |
download | px4-nuttx-a34a20837d27138c34e48c58c58499e5286963ab.tar.gz px4-nuttx-a34a20837d27138c34e48c58c58499e5286963ab.tar.bz2 px4-nuttx-a34a20837d27138c34e48c58c58499e5286963ab.zip |
Micro Python: Fix a typo in the port configuration file
Diffstat (limited to 'apps/interpreters')
-rw-r--r-- | apps/interpreters/README.txt | 24 | ||||
-rw-r--r-- | apps/interpreters/micropython/mpconfigport.h | 2 |
2 files changed, 21 insertions, 5 deletions
diff --git a/apps/interpreters/README.txt b/apps/interpreters/README.txt index 8379ddafd..c207f594a 100644 --- a/apps/interpreters/README.txt +++ b/apps/interpreters/README.txt @@ -60,10 +60,26 @@ micropython This port was contributed by Dave Marples using Micro Python circa 1.3.8. It may not be compatible with other versions. - NOTE: Right now, Micro Python will not build on Windows with a Windows - native toolchain due to usage of POSIX paths in the Micro Python build - system. It should build correctly on Linux or under Cygwin with the - NuttX buildroot tools. + NOTES: + + 1. Micro Python will not build on Windows with a Windows native toolchain + due to use of POSIX paths in the Micro Python build system. It should build + correctly on Linux or under Cygwin with the NuttX buildroot tools. + + 2. Micro Python will not run correctly on a 64-bit target (such as the NuttX + simulation on a 64-bit platfform). In that case it generates assertions + like: + + OverflowError: long int not supported in this build + + This change to mpconfigport.h is a partial work-around but does not solve + all issues: + + -#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPL) + +#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG) + + Someday it will probably be necessary to autogenerate the mpconfigport.h + header file with the correct properties for the target system.\ pcode ----- diff --git a/apps/interpreters/micropython/mpconfigport.h b/apps/interpreters/micropython/mpconfigport.h index 1ee040565..5dc60bc7d 100644 --- a/apps/interpreters/micropython/mpconfigport.h +++ b/apps/interpreters/micropython/mpconfigport.h @@ -80,7 +80,7 @@ #define MICROPY_PY_STRUCT (0) #define MICROPY_PY_SYS (0) #define MICROPY_CPYTHON_COMPAT (0) -#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPL) +#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) /* type definitions for the specific machine */ |