Skip to content

kbuild: cross-compile linux-headers package

Masahiro Yamada linux-kbuild lkml regressions 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4modpost: remove unused HOST_ELFCLASSscripts/mod/mk_elfconfig.c+0 -61 reply
2/4modpost: detect endianness on run-timescripts/mod/mk_elfconfig.c scripts/mod/modpost.c scripts/mod/modpost.h+40 -281 reply
3/4kbuild: slim down package for building external modulesscripts/package/install-extmod-build+15 -514 replies
4/4kbuild: cross-compile linux-headers package when possiblescripts/package/install-extmod-build+34 -010 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNicolas Schier
1/4R-b
2/4R-b
3/4R-b
4/4R-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 [PATCH 0/4] kbuild: cross-compile linux-headers package

This series makes cross-built linux-headers package usable in the installed system. Currently, host programs in it are built for the build machine instead of the target architecture.

The first two patches refactors modpost. The endianness in modpost is currently determined at compile-time, but the build machine cannot execute scripts/mod/mk_elfconfig compiled for a forein architecture.

The last patch rebuilds scripts/ for the target architecture.

Masahiro Yamada (4):
modpost: remove unused HOST_ELFCLASS
modpost: detect endianness on run-time
kbuild: slim down package for building external modules
kbuild: cross-compile linux-headers package when possible

 scripts/mod/mk_elfconfig.c           | 25 -------------
 scripts/mod/modpost.c                | 36 +++++++++++++++++++
 scripts/mod/modpost.h                | 13 +++----
 scripts/package/install-extmod-build | 54 +++++++++++++++++++++++++---
 4 files changed, 89 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0