mbox series

[0/4] kbuild: cross-compile linux-headers package

Message ID 20240727074526.1771247-1-masahiroy@kernel.org (mailing list archive)
Headers show
Series kbuild: cross-compile linux-headers package | expand

Message

Masahiro Yamada July 27, 2024, 7:42 a.m. UTC
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(-)