]> begriffs open source - meson-cross/summary
 
descriptionCross compilation helpers
last changeWed, 8 Oct 2025 05:00:00 +0000 (00:00 -0500)
readme

Meson cross-compilation config

Contains build settings for STM32 chips. Architectures to be added as needed.

Requires: * arm-none-eabi-gcc * arm-none-eabi-gdb * picolibc * openocd * ddd

Usage

Set up a new build directory:

git submodule add \
    https://dev.begriffs.com/git/meson-cross cross

meson setup \
    --cross-file cross/armv7m/cortex-m4/st/nucleo-f411re/cross.ini \
    --cross-file cross/armv7m/gcc.ini \
    build

The architecture also provides two helper commands, flash_cmd and debug_cmd so that your main meson.build file can be shorter:

subdir('cross/armv7m')

run_target('flash', command: [flash_cmd, /* image */])
run_target('debug', command: [debug_cmd, /* image */])
shortlog
2025-10-08 Joe NelsonScripts for choice of debuggers main
2025-10-07 Joe NelsonSplit debug scripts into gdb and ddd
2025-05-22 Joe NelsonMake debugging command work
2025-05-21 Joe NelsonStatic linking for libraries
2025-05-21 Joe NelsonReorder inclusion of cross files in readme
2025-05-18 Joe NelsonFlashing command that works
2025-05-18 Joe NelsonProperties that work in cross files
2025-05-06 Joe NelsonAdjustable constants for memory placement
2025-04-21 Joe NelsonInitial work for stm32f411
heads
2 months ago main