This is an automated email from the ASF dual-hosted git repository. cederom pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 43439a6b16a435bce7d9ac85f05c3a6013f91348 Author: Tiago Medicci <tiago.medi...@espressif.com> AuthorDate: Thu Jan 23 16:43:01 2025 -0300 interpreters/python: set ROMFS-generated data to const char This allows the data to be placed in the .rodata section, which can be allocated in the flash or other read-only storage, freeing the internal memory. --- interpreters/python/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreters/python/Makefile b/interpreters/python/Makefile index b6130af5f..af5c8b89f 100644 --- a/interpreters/python/Makefile +++ b/interpreters/python/Makefile @@ -189,7 +189,7 @@ romfs_cpython_modules.img : $(TARGETLIBPYTHON) checkgenromfs @genromfs -f $@ -d $(TARGETMODULES) -V "ROMFS_Test" || { echo "genromfs failed" ; exit 1 ; } romfs_cpython_modules.h : romfs_cpython_modules.img - @xxd -i $< >$@ || { echo "xxd of $< failed" ; exit 1 ; } + @xxd -i $< | sed -e "s/^unsigned/static const unsigned/g" >$@ || { echo "xxd of $< failed" ; exit 1 ; } context:: $(CPYTHON_UNPACKNAME)