Skip to content

RFC Cross compilation of embedded firmware

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12tests/tcg: merge configure.sh back into main configure scriptconfigure tests/Makefile.include tests/tcg/configure.sh+388 -3870 replies
2/12configure: add missing cross compiler fallbacksconfigure+3 -11 reply
3/12configure: handle host compiler in probe_target_compilerconfigure+14 -110 replies
4/12configure: introduce --cross-prefix-*=configure+77 -601 reply
5/12configure: include more binutils in tests/tcg makefileconfigure+51 -01 reply
6/12configure, meson: move symlinking of ROMs to mesonconfigure pc-bios/meson.build tests/Makefile.include+14 -211 reply
7/12configure: move symlink configuration earlierconfigure+24 -251 reply
8/12configure: enable cross-compilation of s390-ccwconfigure pc-bios/s390-ccw/Makefile pc-bios/s390-ccw/netboot.mak+19 -101 reply
9/12pc-bios/optionrom: detect -fno-pieconfigure pc-bios/optionrom/Makefile+2 -21 reply
10/12pc-bios/optionrom: compile with -Wno-array-boundspc-bios/optionrom/Makefile+1 -03 replies
11/12configure: enable cross-compilation of optionromconfigure pc-bios/optionrom/Makefile+22 -111 reply
12/12configure: enable cross compilation of vofconfigure pc-bios/vof/Makefile+19 -81 reply

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/12
2/12R-b
3/12
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v1 thread

Cover letter [RFC PATCH 00/12] Cross compilation of embedded firmware

This is the next part of the firmware cross compilation story, and shows a little more the direction I would like for QEMU's configure script.

It basically does half of half of the work: it only looks at firmware that's distributed with QEMU (optionrom, s390-ccw, vof) and does not do docker cross compilers yet. However, the important part is taking infrastructure from the recently-cleaned-up tests/tcg/configure.sh, and moving it in the main configure script so that others can use it.

tests/tcg is actually very close to being buildable as a standalone project, so I actually expect the compiler tests to move back to tests/tcg, as a "configure" script of sorts which would run at Make time after the docker images are built. The "Cygnus" (GCC/binutils/gdb) tree has a similar idea of "configure" doing only bare-bones tree-wide configuration, with the rest left for Make time; so that's where I took inspiration from.

Paolo

Paolo Bonzini (12):
tests/tcg: merge configure.sh back into main configure script
configure: add missing cross compiler fallbacks
configure: handle host compiler in probe_target_compiler
configure: introduce --cross-prefix-*=
configure: include more binutils in tests/tcg makefile configure, meson: move symlinking of ROMs to meson
configure: move symlink configuration earlier
configure: enable cross-compilation of s390-ccw pc-bios/optionrom: detect -fno-pie pc-bios/optionrom: compile with -Wno-array-bounds
configure: enable cross-compilation of optionrom
configure: enable cross compilation of vof

 configure                    | 597 +++++++++++++++++++++++++++++++----
 pc-bios/meson.build          |  18 +-
 pc-bios/optionrom/Makefile   |   8 +-
 pc-bios/s390-ccw/Makefile    |   9 +-
 pc-bios/s390-ccw/netboot.mak |   2 +-
 pc-bios/vof/Makefile         |  17 +-
 tests/Makefile.include       |   3 +-
 tests/tcg/configure.sh       | 376 ----------------------
 8 files changed, 564 insertions(+), 466 deletions(-)
 delete mode 100755 tests/tcg/configure.sh
Signature · 1 line
2.35.1