[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240727074526.1771247-1-masahiroy@kernel.org>
Date: Sat, 27 Jul 2024 16:42:00 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Kees Cook <kees@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>,
Ben Hutchings <ben@...adent.org.uk>,
Masahiro Yamada <masahiroy@...nel.org>
Subject: [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(-)
--
2.43.0
Powered by blists - more mailing lists