mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user