Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5162843pxv; Tue, 20 Jul 2021 21:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMww9HImnrjgXy8S8DCZ86hh+GXL+ic24C0xx6S5/llf7z/7h1JUDA4jEAmFo36L8WTjIE X-Received: by 2002:a6b:3bc3:: with SMTP id i186mr1386783ioa.64.1626842920924; Tue, 20 Jul 2021 21:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626842920; cv=none; d=google.com; s=arc-20160816; b=ped1YgzNIW0am1GsnvPsdWpOrAs83vUhNADDhNT3niBa9e3QCy5BNUB1nqFvXTtHNN fZ5UgIqVVyFl2McXLOnNSgHXV2VY1g/LgN+WXG0EpA67jHzxG8L2Vnk/95dzVv9Ua+4k KFUyHShk+SR+SYCsdasAA03cNA4kmulvLRchB2upazHQQkWiqvx8KjO1tTpwJGq1i2GH BrQhz8406srkJyaUq/VWZpx80SA4PU7ACISS5cMWDzbhImnNna2HHsRqOf1IrCiYrOkw V159gzncN+lvCPDo2cVXP9BPzHqcggAx2M6VB8FnILwsIwPhJiFKk9JK+hPuRgQq/+sF RQeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BOPDngMEwqe+Bsprte7BtdwFnfxHNg8u1HnO9Otn+8k=; b=0LJAG+2dftVT17mzzhZCtm4FxbyfnOQfsO8aPTcEX68q5bT4UALEtmteSLGdfWgmhY kjjNVQaKQunFmjSnQLQDixuR+elLrgb9j9VXZDRoAlfirlMTp3ToLArS6/5aur2cCZLW TMb3tWPl4rLMXfVatmvczGbXzgvw7Sgs9XJLN/i0qMAQkLDrfgGCN+PWkPXUVPy1m4b7 WG52DIzv6rSj768zFmSI/H9NkcFpvE1fqvP9OGv4pX6kQsFizXXUDKQIfQ94axc4BnFm k5TuSyvLTDLJwiozhEPzBr2sdvJ5+bmjzFZ0r0uEIGgRHY6ns2Q0BRAw+s9vCpHtugYN vjUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Ni1XuZLI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si22616279jat.17.2021.07.20.21.48.30; Tue, 20 Jul 2021 21:48:40 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=Ni1XuZLI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232157AbhGUEGe (ORCPT + 99 others); Wed, 21 Jul 2021 00:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbhGUEEl (ORCPT ); Wed, 21 Jul 2021 00:04:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1214BC061574; Tue, 20 Jul 2021 21:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BOPDngMEwqe+Bsprte7BtdwFnfxHNg8u1HnO9Otn+8k=; b=Ni1XuZLIjb6w4dRjax//wv+xyS X5LxMpACMNYHAydM3hPB8WHlhgRtsO1r3I42iCTvmIfbPLIR9vqBJacGBMGpy4c7HlKanfbwAN5zt qUxgCzkCOs45ZkNK4z3JAQIOktLHjiDYXWAJCrJCsJ+x1YgEfSVXN6xm0eVeKphrwsDhoiH1GQ/5x 4yiXM54XQttduwEXl2VhXGk4h8MEjbf28KkR5tRMXHsUPihZu2wHGUbd6Nmwyy3n2Lg/J0seB98ws P6oCXjxtCkE4dVP5RLcu3W7FRJTGBH1glgmDKt8o+hMPqX9TlA1sePULkE0ccwd0dPJUYKS26Ast3 svuLq4ag==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m645r-008nRL-N9; Wed, 21 Jul 2021 04:44:32 +0000 Date: Wed, 21 Jul 2021 05:44:27 +0100 From: Christoph Hellwig To: Linus Torvalds Cc: Masahiro Yamada , Nick Desaulniers , Miguel Ojeda , Fangrui Song , Michal Marek , Arnd Bergmann , Linux Kernel Mailing List , Linux Kbuild mailing list , clang-built-linux , Geert Uytterhoeven , Christoph Hellwig , Nathan Chancellor Subject: Re: [PATCH v2 2/2] Makefile: infer CROSS_COMPILE from SRCARCH for LLVM=1 LLVM_IAS=1 Message-ID: References: <20210708232522.3118208-1-ndesaulniers@google.com> <20210708232522.3118208-3-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 10:42:57AM -0700, Linus Torvalds wrote: > (It has annoyed me for years that if you want to cross-compile, you > first have to do "make ARCH=xyz config" and then remember to do "make > ARCH=xyz" for the build too, but I cross-compile so seldom that I've > never really cared). Same here. I'd so much love to just have ARCH an CROSS_COMPILE in my .config for cross-builds. Oterwise I keep forgetting them, or keep forgetting to unset CROSS_COMPILE and will just waist a lot of time either way. The fact the the .config files even mention what architecture they are for in a comment but don't make use of that information is just hostile to users.