From patchwork Thu Aug 8 21:06:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Tucker X-Patchwork-Id: 11084745 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C6271399 for ; Thu, 8 Aug 2019 21:07:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E60928AC1 for ; Thu, 8 Aug 2019 21:07:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11E9E28BC6; Thu, 8 Aug 2019 21:07:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCCC728AC1 for ; Thu, 8 Aug 2019 21:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbfHHVHk (ORCPT ); Thu, 8 Aug 2019 17:07:40 -0400 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 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id E8A7B28CB46 From: Guillaume Tucker 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 Subject: [PATCH RFC 0/1] kbuild: enable overriding the compiler using the environment Date: Thu, 8 Aug 2019 23:06:51 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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