Commit Graph
17 Commits
Author SHA1 Message Date
Gunar Schorcht 8d6dfa65ef pkg/lua: fix broken links 2020-03-24 10:38:40 +01:00
Gaëtan HarterandBas Stottelaar ca5d13cc2a pkg/*: adapt to new state file targets
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00
Kaspar Schleiser 0ba8628b45 pkg/lua: fix typos 2019-11-23 22:39:38 +01:00
Alexandre Abadie 1055c6497e pkg/lua: exclude RISCV 2019-10-30 16:15:41 +01:00
Alexandre Abadie 01702df52d pkg/lua: exclude MIPS 2019-10-30 15:40:09 +01:00
Alexandre Abadie c15c3ab8a2 pkg/lua: add arch 32bit requirement 2019-10-30 14:27:15 +01:00
Benjamin Valentin 66117601bb pkg: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Leandro LanzieriandGitHub f56709e0bb Merge pull request #9726 from jcarrano/lua-loader-fix
pkg/lua: Make the module searchers conform to the API.
2019-06-03 11:47:06 +02:00
Juan Carrano 56eb7d9d92 pkg/lua: detect if weak symbol has been overriden.
After removing the default definitions of lua module tables and table
lengths (see lua_builtin.h) the symbols have been left undefined, which
results in them getting an address of NULL and a crash if there are no
user symbols and the user attempts a "require".

This patch checks the address of the table length variable and fails the
module search function of the table is not set (i.e. it behaves as if the
table was empty.)
2019-05-31 17:15:41 +02:00
Juan Carrano fe07bff90c pkg/lua: Make the module searchers conform to the API.
The module searchers in the `require` package should return a string
if the module is not found, and not raise an error.

See: https://www.lua.org/manual/5.3/manual.html#pdf-package.searchers

Also make error strings contain newlines and tabs just like the original
ones.
2019-05-31 17:15:04 +02:00
Juan CarranoandJuan I Carrano a8a23e4d85 pkg/lua/contrib: Fix warning on discarded qualifier.
There was a cast in a macro that calculated offsets. Since it was
only doing a pointer difference, the cast was inocuous, but I fix
it anyways.
2019-01-15 15:16:25 +01:00
Juan CarranoandJuan I Carrano cf2bca0d53 pkg/lua: Suppress warnings on discarded qualifiers.
Upstream lua has many instances of discarding cont qualifiers through
explicit casting. This disables the warnigns for the package so that
they don't show up when one enables -Wno-cast-qual globally.
2019-01-15 15:16:25 +01:00
Martine LendersandGitHub 51a9ac1795 Merge pull request #9355 from gebart/pr/Wformat
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation
2018-07-19 15:23:10 +02:00
Gaëtan Harter c509b6f05c lua: remove unsupported flags for llvm
Prevents error:

  clang: error: unknown argument: '-fstack-usage'
  clang: error: unknown argument: '-fconserve-stack'

The flags are here to print debug information and try to optimize stack but are
not required.
2018-07-19 14:06:35 +02:00
Joakim NohlgårdandGaëtan Harter 7cb21f651a pkg/lua: build with -Wno-format-nonliteral 2018-07-18 15:29:06 +02:00
danpetryandJuan Carrano ed4411602c pkg/lua: Provide better integration with RIOT
- Remove file related functions from loader.
 * All packages must be builtin.
- Remove os.tmpname.
- Interface with TLSF.
- Don't abort() when out of memory.
2018-07-02 15:13:10 +02:00
danpetry 69888b5c4c pkg/lua: add download and build of lua as pkg
- download of v5.3.4 of Lua from git
- building using RIOT build system
- patched to remove the need for _times and _link to be
provided to Lua via newlib.
2018-05-24 17:56:05 +02:00