interpreters/berry: Add Berry scripting language#3564
Open
speccy88 wants to merge 1 commit into
Open
Conversation
1 task
1 task
26a9363 to
1471dcb
Compare
xiaoxiang781216
previously approved these changes
Jun 26, 2026
acassis
previously approved these changes
Jun 26, 2026
acassis
left a comment
Contributor
There was a problem hiding this comment.
@speccy88 I will approve, but I agree with @xiaoxiang781216, better to submit these change to berry mainline
1471dcb to
02c6985
Compare
Add an optional Berry interpreter under apps/interpreters. Fetch the pinned upstream source and apply the NuttX default-port patch. Generate Berry constant objects and build the NSH command through Kconfig. Make and CMake build paths are included for normal app integration. Signed-off-by: Frederick Blais <fred_blais5@hotmail.com>
02c6985 to
39a4f0d
Compare
xiaoxiang781216
approved these changes
Jun 27, 2026
acassis
approved these changes
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/interpreters/berry.4db341475df9e9ad18e6741ef978b4c467690e09and fetch it from the upstream archive during Make/CMake builds.NuttXin its startup banner and avoids the NuttXoptargmacro collision.Related PRs
sim:berryconfiguration: sim: Add Berry interpreter configuration nuttx#19224Impact
CONFIG_INTERPRETERS_BERRY.berry.100.12288.ARCH_SETJMP_H,LIBC_FLOATINGPOINT, andSYSTEM_SYSTEM.CONFIG_LIBC_DLFCN.text=136529 data=0 bss=1004 dec=137533.Testing
Host validation:
Target build validation was done with current NuttX commit
5feb1c4b8b3fda0bfeccbf49a2be8865169cdfd4, this apps branch, RISC-V GCC 13.2.0, andkconfig-frontendson macOS arm64.The USB-console profile was used for board testing because
esp32c3-devkit:nshroutes NSH to UART0, while this board is attached via/dev/cu.usbmodem101using ESP32-C3 USB Serial/JTAG.Build result for that ESP32-C3 image:
Runtime smoke test on ESP32-C3:
Companion
sim:berrybuild and smoke test are documented in apache/nuttx#19224.