pryre opened a new pull request, #16102:
URL: https://github.com/apache/nuttx/pull/16102

   ## Summary
   
   This pull request adds CMakeLists.txt files required to build for the 
`stm32l4` arch, specifically the `stm32l476rg` board.
   
   ## Impact
   
   There should be no adverse effects from this. Build details and flags were 
adapted from the existing Makefiles, using the `stm32f7` platform as a 
reference. 
   
   ## Testing
   
   ### Host
   
   * OS: Arch Linux
   * CPU: amd64
   * Toolchain: `arm-none-eabi-*`
   
   ### Target
   
   * Arch: STM32L4
   * Board: `nucleo-l476rg`
   * Config: `nsh`
   
   ### Before Changes
   
   This target did not exist for CMake builds. I can provide Make results on 
request.
   
   ### Setup
   
   ```sh
   [pryre@ren] pms-r01> mkdir build
   [pryre@ren] pms-r01> set -x NUTTX_DIR platform/nuttx
   ```
   
   ### CMake
   
   ```sh
   [pryre@ren] pms-r01> cmake $NUTTX_DIR -B build 
-DBOARD_CONFIG=nucleo-l476rg:nsh -GNinja
   -- Initializing NuttX
     Select HOST_LINUX=y
   --   CMake:  3.31.6
   --   Ninja:  1.12.1
   --   Board:  nucleo-l476rg
   --   Config: nsh
   --   Appdir: /---/pms-r01/platform/nuttx-apps
   -- The C compiler identification is GNU 14.2.0
   -- The CXX compiler identification is GNU 14.2.0
   -- The ASM compiler identification is GNU
   -- Found assembler: /usr/bin/arm-none-eabi-gcc
   -- Configuring done (6.0s)
   -- Generating done (1.0s)
   -- Build files have been written to: /---/pms-r01/build
   ```
   
   ### Build
   
   ```sh
   [pryre@ren] pms-r01> ninja -C build
   ninja: Entering directory `build'
   [26/1135] Building C object 
arch/CMakeFiles/arch.dir/arm/src/stm32l4/stm32l4_gpio.c.obj
   /---/pms-r01/platform/nuttx/arch/arm/src/stm32l4/stm32l4_gpio.c:46:11: note: 
'#pragma message: CONFIG_STM32L4_USE_LEGACY_PINMAP will be deprecated migrate 
board.h see tools/stm32_pinmap_tool.py'
      46 | #  pragma message "CONFIG_STM32L4_USE_LEGACY_PINMAP will be 
deprecated migrate board.h see tools/stm32_pinmap_tool.py"
         |           ^~~~~~~
   [1132/1135] Linking CXX executable nuttx
   Memory region         Used Size  Region Size  %age Used
              flash:      215300 B       512 KB     41.07%
               sram:        9676 B        96 KB      9.84%
   [1135/1135] Generating System.map
   ```
   
   ### Run
   
   Device can be flashed and presents a prompt as expected.


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