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.
This commit is contained in:
Tiago Medicci
2025-01-23 16:43:01 -03:00
committed by CeDeROM
parent 87f4eb8021
commit 43439a6b16

View File

@@ -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)