From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bhuna.collabora.co.uk ([46.235.227.227]:43490 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730768AbfHHVHk (ORCPT ); Thu, 8 Aug 2019 17:07:40 -0400 From: Guillaume Tucker Subject: [PATCH RFC 0/1] kbuild: enable overriding the compiler using the environment Date: Thu, 8 Aug 2019 23:06:51 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada , Michal Marek Cc: Mark Brown , Guenter Roeck , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kbuild@vger.kernel.org, kernel@collabora.com, Guillaume Tucker 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