From patchwork Sat Sep 7 09:40:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1159308 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="1+8DpSa+"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46QTvD1qMdz9sDB for ; Sat, 7 Sep 2019 19:40:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DAFD486211; Sat, 7 Sep 2019 09:40:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iY4EJOe4DU9N; Sat, 7 Sep 2019 09:40:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4ABD786204; Sat, 7 Sep 2019 09:40:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 08C671BF401 for ; Sat, 7 Sep 2019 09:40:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0268D86204 for ; Sat, 7 Sep 2019 09:40:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cpzY7affNvOb for ; Sat, 7 Sep 2019 09:40:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 77F5886203 for ; Sat, 7 Sep 2019 09:40:40 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id y19so8927675wrd.3 for ; Sat, 07 Sep 2019 02:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D/9zoX0TQcuL1uNfcSxOWa71cfOez9ZiUtHKQnaqDqg=; b=1+8DpSa+8jjSoRcqxQgkxL2TXLW4201lsiMT1/jSQ8fJsvNaWFG/KH1JlLkzOB073Z 0WBVliVAr8199dLeZHe3hK5MHW30UrJt3YR7aF4DrOUXoGFHmM97XqKIG9uzkhSgT/gn qQ7w26qD8MuEZYiv1FixR6WehYdDrKKQciyA5s67xIXh0b0ur8UufbPfKbpU8hU8mt1M ZsaeU/Fm9GmcHsDhiUqPRy5bslzPq+nQhMPd8WtN8wlQ/HMrgZbfC061fuoOPvBlgDVG gAjTIaGaxuUvUOnRiKut7Se8SNBbSxe4RM92mjb+WjhJVpNmBcbbey8Inn4sPudIbrO6 fNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D/9zoX0TQcuL1uNfcSxOWa71cfOez9ZiUtHKQnaqDqg=; b=BaShZpNstTsjm8fpZ56n7+TExMEo0vDHmRfXqUwm6ATHBP3nDHBuT5Fnrh2REZWeAB dk+fxx5wyFakpAOnJEyr/p+9uB5Wb/h0hZzEL6C8gikgKo6QJ2bdZybn5s+QiPUiSSgF dQFFlKIxJsBclQwnhlEQXx4TuEEz4zjECf2gFqryHEMQkAp+gMcy+7yoUZUXcZpSeSJL P/+vMU1rnwhyOgf48yADIh7/iff+0x9ec4h7xmZCiGgf9yZFc9Eb7getK0Jc0nj5AHbP UMqZss41+5WkcLRqcn1tNfPNu7mgzrKgRAlUovd9QpE32W6ElIW/UMnHMcCZOWLvfhmM grqA== X-Gm-Message-State: APjAAAVAweQdT9Lbv4JBB3f1BUmfkrNHsE6tCT2iuHAW+FyGdh8wYrTM 8SFDk/TSLk6Q960/csUNRMKlgJRECyQ= X-Google-Smtp-Source: APXvYqxiR4+jXBkptNrusN9wAKUzpsN9kePmYLjJcgRNhMEGV9kbEDyNLgVZctVvniVpFMxyDsTT4A== X-Received: by 2002:a5d:4041:: with SMTP id w1mr2813014wrp.313.1567849238693; Sat, 07 Sep 2019 02:40:38 -0700 (PDT) Received: from P-ASN-Evian.home (2a01cb0589880c00c543929d43aec786.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:c543:929d:43ae:c786]) by smtp.gmail.com with ESMTPSA id f13sm6384700wrq.3.2019.09.07.02.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2019 02:40:38 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 7 Sep 2019 11:40:20 +0200 Message-Id: <20190907094027.9537-6-romain.naour@smile.fr> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190907094027.9537-1-romain.naour@smile.fr> References: <20190907094027.9537-1-romain.naour@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 05/12] linux: override CC for the case CC is not GCC X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Valentin Korenblit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Until now we provided only CROSS_COMPILE to the kernel buildsystem to use our GCC cross-compiler. Internally, the buildsystem defined CC=$(CROSS_COMPILE)gcc. Since Clang can now be used as cross-compiler, Buildroot may define in the future TARGET_CC to use clang instead of GCC. In order to build the kernel with the selected compiler, make sure to define CC=$(TARGET_CC) in LINUX_MAKE_FLAGS. Signed-off-by: Romain Naour Cc: Matt Weber Cc: Valentin Korenblit --- linux/linux.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/linux.mk b/linux/linux.mk index 29d2f0ee69..d381c96d85 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -128,6 +128,7 @@ LINUX_MAKE_FLAGS = \ ARCH=$(KERNEL_ARCH) \ INSTALL_MOD_PATH=$(TARGET_DIR) \ CROSS_COMPILE="$(TARGET_CROSS)" \ + CC="$(TARGET_CC)" \ DEPMOD=$(HOST_DIR)/sbin/depmod ifeq ($(BR2_REPRODUCIBLE),y)