From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BC76C07E9B for ; Wed, 21 Jul 2021 05:13:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73C9160FED for ; Wed, 21 Jul 2021 05:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232960AbhGUEdN (ORCPT ); Wed, 21 Jul 2021 00:33:13 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:51943 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbhGUEcn (ORCPT ); Wed, 21 Jul 2021 00:32:43 -0400 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 16L5D055008461; Wed, 21 Jul 2021 14:13:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 16L5D055008461 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1626844381; bh=3xx/KdE6CtGmtNN/L+TIdcy1e+9LgHIW8BuUFAscNmg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GFgnK6g6+r0QRE4QG0eo3yO1zerMqcZ7OckDP+uJIok1uKhmZwMj9J8OGpjZq7jaZ trXv/4Qt0CrUp/pVuMJYMm1SdT3T0dUeI3uqxt3BmWx86QY+8OSDkHZv5YcWw2AOjG TswefaiTJGK5BSbEu7BzpxALtGHxnT3gsmya58P3FRgjNRIG4lKpwVwVvgm6ysJbSN /P4XrGyv0Wifm0WIe+1rK7COcP0O40SwGaDDi20mDqYF0VCCzdCo++ZNjAbr4lWuBG Jf1pmGBQaLJ4evRkEaQSS9f9s6iWErepVYxszzEMdA7Ci+FKfdZW8phKakGFtk4AxJ 5K1MB3f5W97dA== X-Nifty-SrcIP: [209.85.210.181] Received: by mail-pf1-f181.google.com with SMTP id o201so1374499pfd.1; Tue, 20 Jul 2021 22:13:01 -0700 (PDT) X-Gm-Message-State: AOAM530CZAue9BwGXPLA1K9r6cYeOUe5n/zA7CNLTjeJZ6UN1XTDXPy4 Q8uhiVZXxqjFip8OUiDb2VR/MAeZxBC4C9VEDhc= X-Google-Smtp-Source: ABdhPJzGcRQrkB41PoKaGV95KmcWhuCzOWZ0/Xn6gUMiVmgy3gEPga8Ar0Ai0mdgL7N3y2ZR1YLRh2OGvbhlJKIQseQ= X-Received: by 2002:a62:1d84:0:b029:304:5af1:65f6 with SMTP id d126-20020a621d840000b02903045af165f6mr34202636pfd.80.1626844380426; Tue, 20 Jul 2021 22:13:00 -0700 (PDT) MIME-Version: 1.0 References: <20210708232522.3118208-1-ndesaulniers@google.com> <20210708232522.3118208-3-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 21 Jul 2021 14:12:23 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] Makefile: infer CROSS_COMPILE from SRCARCH for LLVM=1 LLVM_IAS=1 To: Linus Torvalds Cc: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 8:20 AM Linus Torvalds wrote: > > On Tue, Jul 20, 2021 at 2:54 PM Linus Torvalds > wrote: > > > > But there are other things that stick around. In particular, I have > > considered simply using git config variables for that. > > > > Something like this in the main Makefile: > > A slightly more fleshed-out patch to do this just to see if somebody > wants to work on something like this. > > It really would seem to make it very easy to set up any random build > environment, and not have to remember it once it's done. > > There are probably better ways to do this, I normally try to avoid > doing Makefile magic, since others have taken it over. Masahiro? The patch would uglify the Makefile. If git is not installed, $(shell git config ...) will spit an error message, so '2>/dev/null' is needed. Actually, I believe we should be able to build the kernel from a source tarball without relying on git in any way. In fact, we rely on git in some places, for example, scripts/setlocalversion can add commit hash to the release string, but I want to minimize the git-dependent code. > Linus > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAHk-%3DwhS1zBU%3DuhDTk2M1LwkqG7AKLsR0_%2BXG%2BsaY_s2FHZr-A%40mail.gmail.com. -- Best Regards Masahiro Yamada