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

Masahiro Yamada posted 4 patches 1 year, 6 months ago
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(-)
[PATCH 0/4] kbuild: cross-compile linux-headers package
Posted by Masahiro Yamada 1 year, 6 months ago
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(-)

-- 
2.43.0