Commit Graph

237 Commits

Author SHA1 Message Date
Xiang Xiao
45af16099b interpreters/duktape: Remove v from tar command
to avoid the verbose unzip message

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 15:53:27 +01:00
Fotis Panagiotopoulos
bc5d8034f1 Typo fixes. 2022-01-06 10:30:41 +08:00
Petro Karashchenko
5ac15130db apps: remove space befone newline in logs
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
Cocoacrumbs
a846e55a0e Fixes BAS list 'Error: Break at: end of program' error. 2021-11-04 13:48:57 -05:00
Alin Jerpelea
94f9dfa4df interpreters: fix relative path CI error
error: Path relative to repository other than nuttx must begin with the root directory
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
80773f59c3 interpreters: bas: update licenses to Apache
Gregory Nutt is has submitted the SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-09 10:31:54 -03:00
Alin Jerpelea
c4ed352263 interpreters: bas: revert to original license
Rever the license to the original one and add the license to LICENSE file

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-09 10:31:54 -03:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
ebb4ade95e interpreters/bas: Fix the nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Xiang Xiao
213e60232f Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Masayuki Ishikawa
f6f4de1ca2 interpreters: wamr: Add touch in Makefile to avoid unnecessary mv
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-05-27 08:20:43 +02:00
Masayuki Ishikawa
a077598b6d interpreters: wamr: Change the default version to "04-15-2021"
Summary:
- This commit changes the default version to "04-15-2021"
  to fix a compile error for Cortex-M target

Impact:
- WASM micro runtime (WAMR)
- NOTE: There are still compile warnings in the WAMR which
  should be fixed later

Testing:
- Tested with spresense (NOTE: need to add -lm)
- Tested with esp32-devkitc

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-05-27 08:20:43 +02:00
Alan C. Assis
496393a87b interpreters/ficl: Fix compilation issue
A NuttX user told that ficl wasn't working as suggested in the
README.txt, then I found that the root cause was the order of the
Make.srcs inclusion inside the Makefile. I think we can do better:
we could automate the process to download and configure ficl.
2021-04-15 08:09:48 -05:00
Huang Qi
d66bc2c107 interpreters/quickjs: Fix typo in qjsmini.c
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I3ee4a6bde0df7d158a4b5339ec3ffc027d2f42a3
2021-03-17 11:08:08 +01:00
Huang Qi
4439e0c0b5 interpreters/quickjs: Implement a minimal interpreter
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I782d509f6fcc86ade34eda5dbe5845603b819e0e
2021-03-16 20:28:04 -07:00
Huang Qi
19b49ba045 interpreters/quickjs: Bump to latest release
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I1cd96c4333442f8c3a3c58c3f8ae5bfac1734f5c
2021-03-16 20:28:04 -07:00
Huang Qi
3040c59ae9 Replace all wget with curl
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
Huang Qi
ea5a9a08bc interpreters/wamr: Support latest snapshot for main branch
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 05:47:12 -06:00
Xiang Xiao
1402e556eb quickjs: Don't define __NuttX__ manually
since nuttx/tools/Config.mk will do it for us

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-05 03:38:46 -08:00
YAMAMOTO Takashi
46650ffc29 interpreters/wamr: This requires CLOCK_MONOTONIC to build 2020-10-13 08:09:36 +02:00
Huang Qi
1efc805b4e interpreters/wamr: Bump to latest release.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-29 08:45:31 +01:00
Huang Qi
c26d662951 interpreters/wamr: Add configs for heap pool & custom name sections
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-27 19:42:08 +01:00
Huang Qi
69956020b4 interpreters/wamr: Add missing options
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Id1783f42842288a8f9c6ddf6105b6718dde757a1
2020-09-17 18:28:17 +01:00
Huang Qi
0b4fa2f66a interpreters: Inroduce support for WAMR
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-16 20:53:31 +01:00
Huang Qi
52b28ed484 interpreters: Initial wasm3 WebAssembly runtime support
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Ib97d7d95a3a5e350e5856e1bb2462dbee7185691
2020-09-14 10:35:29 +08:00
Huang Qi
d121168fb0 interpreters/quickjs: Initial QuickJS support
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Ie6cb7a37c34ef3bd63390eed905b6fb76c31a3d9
2020-09-01 09:14:05 -03:00
Huang Qi
b989914b16 interpreters/duktape: Add duktape to global search path
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-08-30 01:25:25 +08:00
Huang Qi
aaa198f08c interpreters/duktape: Clean objects
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-08-14 16:02:25 +01:00
Huang Qi
7099bc4b02 interpreters/duktape: Add console/print/alart support
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-08-14 16:02:25 +01:00
Huang Qi
a6674b6edc interpreters/duktape: Fix build warning for sim on macOS
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Iecfdb1dee2060d2f0f0a2dc8dce3d239af8ee273
2020-08-11 01:24:41 -05:00
Huang Qi
6bad964016 interpreters/duktape: Fix warning for sim
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I41cd1dab10fe3f98af757bc19968697f80e84fa4
2020-08-07 14:15:57 -05:00
Huang Qi
2ddcd1d186 interpreters/duktape: Fix tarball download url
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I950d5c676f0772681bd27dfefd35bfab495a2564
2020-08-06 22:46:56 -05:00
Huang Qi
06b64634bf interpreters: Add initial duktape support
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I8909551d565ce9d1ae25607367a005eee13c3860
2020-08-06 10:52:26 -03:00
SPRESENSE
63cd701958 Makefile: Unify ROOTDEPPATH into DEPPATH
DEPPATH is commonly used in nuttx repo, so it to be the same with them.
2020-07-29 15:22:20 +02:00
Maciej Wójcik
21049ece6e Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71 Rename README and README.txt to README.md 2020-07-25 01:01:51 -07:00
Xiang Xiao
942f32e22a Fix nxsytle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I36099dc6c07c7ada2f9fcb06fe0267b8d213a61a
2020-07-12 13:56:00 +01:00
Xiang Xiao
deaa6c5b7b build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
and move NUTTXLIB defintion to the common place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e build: Remve the unnecessary .gitignore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788 build: Remove the workaround for the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
6a26547dec build: Move INCDIROPT to common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
liuhaitao
a0a2c40c79 Fix bas_program.c nxstyle complaints
Note that mixed case identifier still keep in use.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-17 17:06:01 +08:00
liuhaitao
5a29e86847 Fix bas_program.c build warning under macos
bas_program.c:234:35: error: adding 'size_t' (aka 'unsigned long') to a string does not append to the string [-Werror,-Wstring-plus-int]
      FS_putChars(chn, "        " + len);
                       ~~~~~~~~~~~^~~~~
bas_program.c:234:35: note: use array indexing to silence this warning
      FS_putChars(chn, "        " + len);
                                  ^
                       &          [    ]
1 error generated.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-17 17:06:01 +08:00
Xiang Xiao
8fd8aad5c4 Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-13 08:32:42 -06:00
Xiang Xiao
5720d72b71 apps: Fix the nightly build warning
src/cwindowfactory.cxx: In member function 'void Twm4Nx::CWindowFactory::redrawIcons(const nxgl_rect_s*)':
src/cwindowfactory.cxx:461:38: warning: 'iconPos.nxgl_point_s::y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  461 |           iconBounds.pt2.y = iconPos.y + iconSize.h - 1;
      |                              ~~~~~~~~^
src/cwindowfactory.cxx:460:38: warning: 'iconPos.nxgl_point_s::x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  460 |           iconBounds.pt2.x = iconPos.x + iconSize.w - 1;
      |                              ~~~~~~~~^

nsh_netcmds.c:424:20: warning: 'nsh_addrconv' defined but not used [-Wunused-function]
 static inline bool nsh_addrconv(FAR const char *hwstr,
                    ^
nsh_netcmds.c:446:20: warning: 'nsh_sethwaddr' defined but not used [-Wunused-function]
 static inline void nsh_sethwaddr(FAR const char *ifname,
                    ^

nsh_envcmds.c:94:21: warning: 'nsh_getdirpath' defined but not used [-Wunused-function]
 static inline char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
                     ^

In file included from bas.c:84:0:
bas.c: In function 'bas_interpreter':
bas_error.h:110:37: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 #define NOSUCHLINE         STATIC+40, _("No such line")
                                     ^
bas.c:2425:52: note: in expansion of macro 'NOSUCHLINE'
                           FS_putChars(STDCHANNEL, (NOSUCHLINE));
                                                    ^~~~~~~~~~
bas_fs.c:107:22: warning: 'g_vt100_colormap' defined but not used [-Wunused-const-variable=]
 static const uint8_t g_vt100_colormap[8] =
                      ^~~~~~~~~~~~~~~~
<stdout>:4048:16: warning: 'input' defined but not used [-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I62610b4c90e67637250cbd0107c2935c8abc542f
2020-04-13 08:32:42 -06:00
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00:00
Gregory Nutt
1a9444a68b Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE 2020-03-22 08:23:28 -05:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289 Run codespell -w against all files
and fix the wrong correction
2020-02-22 14:41:36 -06:00