Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
3aba085f
Commit
3aba085f
authored
Feb 01, 2020
by
M.K
Committed by
Marcel Stör
Jun 09, 2020
Browse files
Clarify LFS build info is its size (#3022)
parent
2ae9af58
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/modules/node.c
View file @
3aba085f
...
...
@@ -163,7 +163,7 @@ static int node_info( lua_State* L )
int
table_index
=
lua_gettop
(
L
);
lua_pushboolean
(
L
,
BUILDINFO_SSL
);
lua_setfield
(
L
,
table_index
,
"ssl"
);
lua_pushnumber
(
L
,
BUILDINFO_LFS
);
lua_pushnumber
(
L
,
BUILDINFO_LFS
_SIZE
);
lua_setfield
(
L
,
table_index
,
"lfs_size"
);
lua_pushstring
(
L
,
BUILDINFO_MODULES
);
lua_setfield
(
L
,
table_index
,
"modules"
);
...
...
tools/update_buildinfo.sh
View file @
3aba085f
...
...
@@ -22,9 +22,9 @@ cat > $TEMPFILE << EndOfMessage
#define BUILDINFO_TO_STR(x) BUILDINFO_STR_HELPER(x)
#ifdef LUA_FLASH_STORE
#define BUILDINFO_LFS LUA_FLASH_STORE
#define BUILDINFO_LFS
_SIZE
LUA_FLASH_STORE
#else
#define BUILDINFO_LFS 0
#define BUILDINFO_LFS
_SIZE
0
#endif
#ifdef CLIENT_SSL_ENABLE
...
...
@@ -57,7 +57,7 @@ cat > $TEMPFILE << EndOfMessage
"
\t
release DTS: " BUILDINFO_RELEASE_DTS "
\n
"
\\
"
\t
SSL: " BUILDINFO_SSL_STR "
\n
"
\\
"
\t
build type: " BUILDINFO_BUILD_TYPE "
\n
"
\\
"
\t
LFS: " BUILDINFO_TO_STR(BUILDINFO_LFS
) "
\n
"
\\
"
\t
LFS: " BUILDINFO_TO_STR(BUILDINFO_LFS
_SIZE) " bytes total capacity
\n
"
\\
"
\t
modules: " BUILDINFO_MODULES "
\n
"
EndOfMessage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment