You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This subject has been triggered by the LFS implementation raised in issue #2068. As I discuss in the whitepaper, in order to enables this I have had to bring the luac.cross build into the main make hierarchy. And part of this is involves some general rationalisations that I am raising for comment here. If thee is no negative feedback then they are getting incorporated into the patch.
Changes
app/includes/modules.h contains a number of built-in directives. But in practice these are either mandatory (e.g. base, string, table,) or they were never properly implemented nor tested so won't work (e.g. io and os). Since I don't want to go round a set of useless test cases, the LUA_USE_BUILTIN_* directives will be dropped (and ignored if present). The ones that work are in the core build and the ones that don't aren't.
The lua build tools are no longer required so will be removed. The build no longer needs lua to be installed on the host
The app/lua/luac_cross sub-make always builds luac.cross
luac.cross has an extra -f flag which instructs it to build a LFS image instead of the standard lc binary format.
luac.cross has an extra -e flag which allows it to execute a lua source file on the host. This is primarily to support host-based testing of the NodeMCU lua core.
The tools spiffsimage target will use luac.cross to compile all lua files in the local/luadirectory into an image which is build into the standard spiffs image.
The app Makefile now contains some extra make magic so by default those modules which use an external subdirectory (e.g. mqtt will only have the subdirectory built if the module is enabled.
The text was updated successfully, but these errors were encountered:
Background
This subject has been triggered by the LFS implementation raised in issue #2068. As I discuss in the whitepaper, in order to enables this I have had to bring the
luac.cross
build into the main make hierarchy. And part of this is involves some general rationalisations that I am raising for comment here. If thee is no negative feedback then they are getting incorporated into the patch.Changes
app/includes/modules.h
contains a number of built-in directives. But in practice these are either mandatory (e.g. base, string, table,) or they were never properly implemented nor tested so won't work (e.g. io and os). Since I don't want to go round a set of useless test cases, theLUA_USE_BUILTIN_*
directives will be dropped (and ignored if present). The ones that work are in the core build and the ones that don't aren't.app/lua/luac_cross
sub-make always buildsluac.cross
luac.cross
has an extra-f
flag which instructs it to build a LFS image instead of the standardlc
binary format.luac.cross
has an extra-e
flag which allows it to execute a lua source file on the host. This is primarily to support host-based testing of the NodeMCU lua core.tools
spiffsimage target will useluac.cross
to compile all lua files in thelocal/lua
directory into an image which is build into the standard spiffs image.The text was updated successfully, but these errors were encountered: