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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 6A73BC4320A for ; Tue, 27 Jul 2021 07:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E06B611ED for ; Tue, 27 Jul 2021 07:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235907AbhG0Hz0 (ORCPT ); Tue, 27 Jul 2021 03:55:26 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:34596 "EHLO mail-vs1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235890AbhG0HzZ (ORCPT ); Tue, 27 Jul 2021 03:55:25 -0400 Received: by mail-vs1-f54.google.com with SMTP id y18so6695604vsc.1; Tue, 27 Jul 2021 00:55:25 -0700 (PDT) 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=9pv0Mfi+cKjdrDoWz9Rec/UJjvSyq7O+mu5kO7UGzN8=; b=dod+eGFqIphjkO/ZWLQv+EULTBo/u7y0Z2S4c/geWwDEIjfxu9XiOPjPAArMxGevW1 9Vw0x4mt3x4xYCwz9ArLs6y9hDCj3W2fNlp8vvKV6GASyrfZM0UGV2yyH1hPtURubQns SbPZvyGD2iS8Z4bnj3iyTef34qJ9aIryhu4/OouvTG1WUlPQlLADSgAHM4Bul0kOX20x 1c34fGnUSyH8h3sBZQ9q5OpxT1gKXq2x0vzBCIeOW5h99wu5sil7yMNSVzywqvDkrf+U MCNCA6q8vpgtwpFYpMnNa9Aks/IKyrSuLHoFFEEGQ24nuxSLgXMBcCDEOBE1ek6q9qjQ rqkw== X-Gm-Message-State: AOAM530oj+IZ+YWBn9YkiKA9H2Bo3SKliMYdGElntQ6sBRUO4weYsZMf wqIzHKzkGNjM4PutbwSmb3F9omYygLwQQdgoI78= X-Google-Smtp-Source: ABdhPJwUAZPGx2BHHBkEv4ba5/SIZrCbq1DOT4PMkSmrS9hsNFm5jgL/jcz++rg3rSdNjZKQaxO1AHKE+2HyH0CpmCM= X-Received: by 2002:a05:6102:321c:: with SMTP id r28mr15392078vsf.40.1627372525463; Tue, 27 Jul 2021 00:55:25 -0700 (PDT) MIME-Version: 1.0 References: <20210708232522.3118208-1-ndesaulniers@google.com> <20210708232522.3118208-3-ndesaulniers@google.com> <87r1fkizxl.fsf@disp2133> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 27 Jul 2021 09:55:14 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] Makefile: infer CROSS_COMPILE from SRCARCH for LLVM=1 LLVM_IAS=1 To: Arnd Bergmann Cc: "Eric W. Biederman" , Masahiro Yamada , Linus Torvalds , Nick Desaulniers , Miguel Ojeda , Fangrui Song , Michal Marek , Linux Kernel Mailing List , Linux Kbuild mailing list , clang-built-linux , Christoph Hellwig , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Tue, Jul 27, 2021 at 9:49 AM Arnd Bergmann wrote: > On Tue, Jul 27, 2021 at 9:07 AM Geert Uytterhoeven wrote: > > On Mon, Jul 26, 2021 at 10:27 PM Eric W. Biederman wrote: > > > Masahiro Yamada writes: > > > > On Wed, Jul 21, 2021 at 4:58 AM Arnd Bergmann wrote: > > > > > > Does anyone have any ideas? > > > > > > Something so we don't have to specify all of these variables on the make > > > command line would be nice. > > > > Just including the main Makefile does not work. > > That's why I went with the more convoluted solution in > > https://lore.kernel.org/linux-kbuild/CAMuHMdXJBqrpzaSNDJgic14ESiHV6cCcb_5E-st6iniXdmm9_g@mail.gmail.com/ > > This is roughly what I use as well, but it does have the downside that > it confuses > the inner 'make' when you build multiple targets in parallel, e.g. > > make -skj30 kernel/ mm/ init/ > > works with the normal Makefile, but fails spectacularly with my nested > GNUmakefile because it starts multiple sub-processes that each try to > build the same preparation files (I did not try your version). Seems to work fine with mine... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds