RFC kbuild: enable overriding the compiler using the environment
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest1 patch 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | kbuild: enable overriding the compiler using the environmentMakefile | +3 | 9 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Nathan Chancellor |
|---|---|
| 1/1 | R-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 0/1] kbuild: enable overriding the compiler using the environment
When building with clang and there is no gcc available, running merge_config.sh fails without this fix because it can't build scripts/basic/fixdep with HOSTCC hard-coded to be gcc in the top-level Makefile. This was discovered while trying to build big-endian arm64 kernels with clang for kernelci.org in a Docker container with only clang as a host compiler.
While this fix seems like a very obvious thing to do, it's equally surprising that it hasn't been done before. This is why I'm sending this as an RFC; there may be a very good reason why the compiler variables still need to be hard-coded with gcc in the top-level Makefile.
Guillaume Tucker (1):
kbuild: enable overriding the compiler using the environment
Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
--
2.20.1