Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp981778pxb; Wed, 3 Mar 2021 23:24:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSu8QghAz/f9H5O+DlX5/A5QxfEn8E4/8RdKn1cGQBU4RbdzYAJ5+x0iyZf+vEUAe/ncO+ X-Received: by 2002:a17:906:845b:: with SMTP id e27mr2653485ejy.487.1614842681121; Wed, 03 Mar 2021 23:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614842681; cv=none; d=google.com; s=arc-20160816; b=vnibK9Os4OYE7iRnY/9FO1M3NbnWrHlumrbOKCSqNwYj3JeNeC3MANLfWZP+1dGMLo mwe3gSQF8TvbfkoN9Ls4cQd4vr/WV6dILzyiNPcyBdxuufr9g/6XaFD9Etzng9kWu4AC aWbm6oR/GKxxwHgqTt5VRwn2CiL48ISI+9fZsx3j3/L5O8HyZdtkhu9WQYOBquq2Ys6W 3AkuA+jyUKcId6JFBegHMe44pITlEwM8NQxN5k9evqpz8JKEWOTyiSEYJU//Oxr6ECO1 AES54fD88nYPGO4qPFgFfN/R3q2yqS0Dzh4dixRsnYh25w1d7WYlnst3OKzELyGwpFvX WDdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aHp3sOBhNVG2z21fEC5nTsyRiHJNdtFKTVUSbILsbhc=; b=WqCRsFM5hn/YOqqXDLhPXPFdajGUsH/OrKbehuwjCGFgQn+nrg2uVUj713uWID16aj UAR9BdLmxRNOl/pxQubOzwWWwmRlipm4agxQE4tiu0lzbDBvm81y7zTTozkbN7LS66a1 KgV1ukj3GXjURvyFUpnI1YHxb82YT9vyEYR36D/zHH6VMaa8/PE1nDp93HEzF7/orQHA GI2PK1YnqVYtvIRN8o8hVC3EPWhr82j9xp7hUZEt0TUej+6I/iqM2REnpmZ004G/tjSF oW1IaAef2KtE/uLuJSmcjFjdX02xcavVT1rbmGUk6HnOsY9VBwgs+tvERCqKBgx0Q3pU gkQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="ZS/VhMSd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si4108817eji.719.2021.03.03.23.24.15; Wed, 03 Mar 2021 23:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="ZS/VhMSd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1838223AbhCBXGc (ORCPT + 99 others); Tue, 2 Mar 2021 18:06:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377782AbhCBWee (ORCPT ); Tue, 2 Mar 2021 17:34:34 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E7DC061788 for ; Tue, 2 Mar 2021 14:33:52 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id r23so26089027ljh.1 for ; Tue, 02 Mar 2021 14:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aHp3sOBhNVG2z21fEC5nTsyRiHJNdtFKTVUSbILsbhc=; b=ZS/VhMSd3AAuXIJcy+MFcS0NXV1EQ4IYXoq1/6lldjXI/rRvpGh0BThVrxwXFoiX0K UKpRi0U2HUmyhBuDuRMlboovXP678k0wC4io8y964qYD2X0/g+vCr/TesHwpqfP/FnSJ M0Yo3fDAIt63ruryZtsSlzqSSkuD2jhVmX6OZwYJcBoaOkt3O1ph4vuk1lHJ++IlpKWs GtxfKtlHV9zGhqPCGT55XCKT5xu/X/UjhDtfZAcW9bZNDlU/iTXgRbclQZ5y9WcDqbw3 FLWpNpKEvCguEXvq0990sFhuL1MO5nmysQ2Fhtmjg9zLuQ+12VUDQplLx3oFsdaEzavG VOjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aHp3sOBhNVG2z21fEC5nTsyRiHJNdtFKTVUSbILsbhc=; b=Gf6LO8JhtmagWoZKfm6FWyd01dPa8IK/FK+q6+nnU035wj1KJVbcCOKF6pME1H+OsT e4bzwhDypV8XHHNZEaaf5nvhtaP39YSsEdL+h5x+x6P5fYEltKbdV6WuOF9kcfBf9z3n dCtBrUns7365bW6PMKRHxtLmrRmlPI38YhRhTUyiZw0LM9xpA5/bHZF1ScNf9HUk9WpV wpyjV1Xh7AM5W9+P7FXh17214pCeGKcOuFY+twbpxhZWn9vQAZ3EHRTLu+bFpNUg1+v7 uupYR/anZcnGbfbYFfvQjaStStWA5r1Vcd6u9bOu1s5ZqQP2wGGhYEcj3SYeQodJ8fCO BzRg== X-Gm-Message-State: AOAM533o6/8xuF/9aZa0OdY0U24WHnKYYVtQE6nUJVrUbCqw5WcZJLjO YGdEri1I9kib+tFZKMqMF7DFJQfidZmZ0VyTWy48CQ== X-Received: by 2002:a2e:b008:: with SMTP id y8mr4382857ljk.233.1614724430576; Tue, 02 Mar 2021 14:33:50 -0800 (PST) MIME-Version: 1.0 References: <20210302210646.3044738-1-nathan@kernel.org> In-Reply-To: <20210302210646.3044738-1-nathan@kernel.org> From: Nick Desaulniers Date: Tue, 2 Mar 2021 14:33:38 -0800 Message-ID: Subject: Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 2, 2021 at 1:07 PM Nathan Chancellor wrote: > > This is not necessary anymore now that we specify '--prefix=', which > tells clang exactly where to find the GNU cross tools. This has been > verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as well as a > distribution version of LLVM 11.1.0 without binutils in the LLVM > toolchain locations. > > Signed-off-by: Nathan Chancellor Thanks for the patch! Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers I see this pattern still being used in arch/arm64/kernel/vdso32/Makefile, but that can be separate cleanups. > --- > Makefile | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/Makefile b/Makefile > index f9b54da2fca0..c20f0ad8be73 100644 > --- a/Makefile > +++ b/Makefile > @@ -568,10 +568,6 @@ ifneq ($(CROSS_COMPILE),) > CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%)) > GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) > CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE)) > -GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) > -endif > -ifneq ($(GCC_TOOLCHAIN),) > -CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) > endif > ifneq ($(LLVM_IAS),1) > CLANG_FLAGS += -no-integrated-as > > base-commit: 7a7fd0de4a9804299793e564a555a49c1fc924cb > -- > 2.31.0.rc0.75.gec125d1bc1 > -- Thanks, ~Nick Desaulniers