Skip to content

Improve Makefile portability and debugging

Wander Lairson Costa linux-rt-users 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 8 repliesIn review
  2. v13 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Makefile: Conditionally add -mno-omit-leaf-frame-pointerMakefile+7 -11 reply
2/6Makefile: Improve compiler flag detection for -fcf-protectionMakefile+12 -111 reply
3/6Makefile: Explicitly run the 'test' target in the tests directoryMakefile+1 -11 reply
4/6Makefile: Remove redundant GCC version checkMakefile+0 -52 replies
5/6Makefile: Print BPF tool versions for debuggingMakefile+4 -01 reply
6/6gitignore: Exclude Serena and Claude Code metadata.gitignore+2 -01 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDerek Barbosa
1/6
2/6
3/6
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [stalld v2 0/6] Improve Makefile portability and debugging

This patch series improves the stalld build system to be more portable across different architectures and compiler toolchains while adding better debugging capabilities. The main motivation is to eliminate hard-coded compiler version checks that were brittle and could fail on non-standard toolchains or different architectures.

The changes replace minimum version checks with direct compiler feature detection tests, ensuring that compiler flags are only used when actually supported. This approach tests each flag by attempting to compile a minimal test program, making the build system resilient to variations in compiler implementations across architectures like x86_64, aarch64, s390x, i686, and powerpc. Additionally, the series adds build environment information output and cleans up redundant checks to improve maintainability.

The series also includes minor improvements to explicitly specify the test target invocation and exclude development environment metadata from version control.

Wander Lairson Costa (6):
Makefile: Conditionally add -mno-omit-leaf-frame-pointer
Makefile: Improve compiler flag detection for -fcf-protection
Makefile: Explicitly run the 'test' target in the tests directory
Makefile: Remove redundant GCC version check
Makefile: Print BPF tool versions for debugging
gitignore: Exclude Serena and Claude Code metadata

 .gitignore |  2 ++
 Makefile   | 42 ++++++++++++++++++++++++------------------
 2 files changed, 26 insertions(+), 18 deletions(-)
Cc Derek Barbosa <[email protected]>
Cc John Kacur <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Chunsheng Luo <[email protected]>

---

Signature · 1 line
2.51.1