diff options
| author | Masahiro Yamada <[email protected]> | 2025-02-13 06:26:44 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2025-02-15 13:40:52 +0000 |
| commit | 140332b6ed727a4ec2e5722a1ccda28b52d45771 (patch) | |
| tree | e60702d352de0c101cd1a76c107c5cd4497cfcdd /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | tools: fix annoying "mkdir -p ..." logs when building tools in parallel (diff) | |
| download | kernel-140332b6ed727a4ec2e5722a1ccda28b52d45771.tar.gz kernel-140332b6ed727a4ec2e5722a1ccda28b52d45771.zip | |
kbuild: fix linux-headers package build when $(CC) cannot link userspace
Since commit 5f73e7d0386d ("kbuild: refactor cross-compiling
linux-headers package"), the linux-headers Debian package fails to
build when $(CC) cannot build userspace applications, for example,
when using toolchains installed by the 0day bot.
The host programs in the linux-headers package should be rebuilt using
the disto's cross-compiler, ${DEB_HOST_GNU_TYPE}-gcc instead of $(CC).
Hence, the variable 'CC' must be expanded in this shell script instead
of in the top-level Makefile.
Commit f354fc88a72a ("kbuild: install-extmod-build: add missing
quotation marks for CC variable") was not a correct fix because
CC="ccache gcc" should be unrelated when rebuilding userspace tools.
Fixes: 5f73e7d0386d ("kbuild: refactor cross-compiling linux-headers package")
Reported-by: Jeff Johnson <[email protected]>
Closes: https://lore.kernel.org/linux-kbuild/CAK7LNARb3xO3ptBWOMpwKcyf3=zkfhMey5H2KnB1dOmUwM79dA@mail.gmail.com/T/#t
Signed-off-by: Masahiro Yamada <[email protected]>
Tested-by: Jeff Johnson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
