Skip to content

Commit dd1bf3c

Browse files
authored
Merge pull request #266 from hajimef/topic_arduino_json
loader: export symbols for Arduino_JSON library
2 parents 7b68ed5 + 7037c1d commit dd1bf3c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

loader/llext_exports.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ EXPORT_SYMBOL(strstr);
1717
EXPORT_SYMBOL(strncmp);
1818
EXPORT_SYMBOL(strncpy);
1919
EXPORT_SYMBOL(strcasecmp);
20+
EXPORT_SYMBOL(strtod);
21+
EXPORT_SYMBOL(strtol);
2022
EXPORT_SYMBOL(strtoul);
2123
EXPORT_SYMBOL(strcmp);
2224
EXPORT_SYMBOL(strlen);
@@ -193,7 +195,6 @@ FORCE_EXPORT_SYM(close);
193195
FORCE_EXPORT_SYM(accept);
194196
FORCE_EXPORT_SYM(bind);
195197
FORCE_EXPORT_SYM(listen);
196-
EXPORT_SYMBOL(exit);
197198
FORCE_EXPORT_SYM(inet_pton);
198199
FORCE_EXPORT_SYM(sendto);
199200
FORCE_EXPORT_SYM(recvfrom);
@@ -238,6 +239,13 @@ EXPORT_SYMBOL(snprintf);
238239
EXPORT_SYMBOL(cbvprintf);
239240
EXPORT_SYMBOL(vsnprintf);
240241
FORCE_EXPORT_SYM(abort);
242+
EXPORT_SYMBOL(sscanf);
243+
EXPORT_SYMBOL(exit);
244+
FORCE_EXPORT_SYM(_exit);
245+
FORCE_EXPORT_SYM(__assert_no_args);
246+
EXPORT_SYMBOL(stdin);
247+
EXPORT_SYMBOL(stdout);
248+
EXPORT_SYMBOL(stderr);
241249

242250
#if defined(CONFIG_RING_BUFFER)
243251
EXPORT_SYMBOL(ring_buf_get);

platform.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ compiler.warning_flags.all=-Wall -Wextra
1717

1818
compiler.path={build.compiler_path}
1919
compiler.c.cmd={build.crossprefix}gcc
20-
compiler.c.flags=-g -c {compiler.warning_flags} {compiler.zephyr.macros} "@{compiler.zephyr.cflags_file}" -MMD -mcpu={build.mcu} {build.float-abi} {build.fpu}
20+
compiler.c.flags=-g -c {compiler.define} {compiler.warning_flags} {compiler.zephyr.macros} "@{compiler.zephyr.cflags_file}" -MMD -mcpu={build.mcu} {build.float-abi} {build.fpu}
2121
compiler.c.elf.cmd={build.crossprefix}g++
2222
compiler.c.elf.flags=-Wl,--gc-sections -mcpu={build.mcu} {build.float-abi} {build.fpu} -std=gnu++17
2323
compiler.S.cmd={build.crossprefix}g++
2424
compiler.S.flags=-c -x assembler-with-cpp -mcpu={build.mcu} {build.fpu}
2525
compiler.cpp.cmd={build.crossprefix}g++
26-
compiler.cpp.flags=-g -Os -std=gnu++17 -c {compiler.warning_flags} {compiler.zephyr.macros} "@{compiler.zephyr.cxxflags_file}" {compiler.zephyr.common_ldflags} {compiler.zephyr.extra_ldflags} {compiler.zephyr.common_cxxflags} {compiler.zephyr.extra_cxxflags} -MMD -mcpu={build.mcu} {build.float-abi} {build.fpu}
26+
compiler.cpp.flags=-g -Os -std=gnu++17 -c {compiler.define} {compiler.warning_flags} {compiler.zephyr.macros} "@{compiler.zephyr.cxxflags_file}" {compiler.zephyr.common_ldflags} {compiler.zephyr.extra_ldflags} {compiler.zephyr.common_cxxflags} {compiler.zephyr.extra_cxxflags} -MMD -mcpu={build.mcu} {build.float-abi} {build.fpu}
2727
compiler.ar.cmd={build.crossprefix}ar
2828
compiler.ar.flags=rcs
2929
compiler.objcopy.cmd=
@@ -34,7 +34,7 @@ compiler.elf2hex.cmd={build.crossprefix}objcopy
3434
compiler.ldflags=
3535
compiler.libraries.ldflags=
3636
compiler.size.cmd={build.crossprefix}size
37-
compiler.define=-DARDUINO=
37+
compiler.define=-D_PICOLIBC_CTYPE_SMALL=1
3838

3939
compiler.zephyr.includes_file={build.variant.path}/includes.txt
4040
compiler.zephyr.cflags_file={build.variant.path}/cflags.txt

0 commit comments

Comments
 (0)