tmedicci opened a new pull request, #3139:
URL: https://github.com/apache/nuttx-apps/pull/3139

   ## Summary
   
   * interpreters/python: Fix symbol collision with list_length function
   
   NuttX implements a function with the same name which may end up being 
included whenever `CONFIG_MM_KERNEL_HEAP` is set. To avoid it, insert a prefix 
to it on Python's implementation.
   
   Please note that the other patches had their metadata updated too.
   
   ## Impact
   
   Impact on user: Yes. Enable using a separate kernel heap with Python 
interpreter on NuttX.
   
   Impact on build: No.
   
   Impact on hardware: No.
   
   Impact on documentation: No.
   
   Impact on security: No.
   
   Impact on compatibility: No.
   
   ## Testing
   
   This can be tested by setting `CONFIG_MM_KERNEL_HEAP=y` and building the 
Python interpreter on a flat build environment. Using `esp32s3-devkit:python`, 
for instance: 
   
   ### Building
   
   Build NuttX and flash it to ESP32-S3-DevKitC-1 v1.1 board (with 
ESP32-S3-WROOM-2 module):
   ```
   make -j distclean && ./tools/configure.sh esp32s3-devkit:python && 
kconfig-tweak -e MM_KERNEL_HEAP && make olddefconfig && make flash 
ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BINDIR=./ -s -j$(nproc)
   ```
   
   ### Running
   
   ```
   picocom -b 115200 /dev/ttyUSB0
   ```
   
   ### Results
   
   Check the `python` interpreter:
   ```
   NuttShell (NSH) NuttX-10.4.0
   nsh> python
   Python 3.13.0 (main, Jul 21 2025, 10:58:37) [GCC 14.2.0] on nuttx
   Type "help", "copyright", "credits" or "license" for more information.
   >>> 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to