Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp237448pxv; Thu, 8 Jul 2021 01:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMdf6+bu8BvaVYIXAGOPtZXfQ9u7o0I2gxks4HeiDrDYtgv+yWS023+9dMG1eKK1vPSad4 X-Received: by 2002:a05:6602:25da:: with SMTP id d26mr23014564iop.106.1625731790989; Thu, 08 Jul 2021 01:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625731790; cv=none; d=google.com; s=arc-20160816; b=kkrkTfeMQsBjqjvwALKAiH3LEPjMUBc06dqV1svBvStQBDRKXdn242fWR93rAubrAW FISHGfFB9LqQmzQHo9iuNnFpSlx0B+KRCMLYKvXCPbWKglTebvAo2p2ye2bzb5wNVn1t k6NwoerW7YVEM9ji2yeNukBzXG6BK7TpRDGw0aQX+VXDddFuNODzae1G9CqqrxXR8l8g eXSGVp98ZguhQgmUHlN2XXdTKkOTr8RHfXQ/4TNN3hTpRy6NYAqaYxvhhXps3KZiA4zu Jrvnyxo5FROnLWEzbPufRQuFl9eWJ96pmo0FkFIv2kaw+S4lsS7kYmycmigdcXBrJmQl E8nA== 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; bh=O/tIWe1nqJc31V9O67iN2UwPLB/e3npgUn13q7m69ss=; b=kT4tpR/CIy0nTsKjghPL51Ko+45579XhWFWvOK243EbgXOOtmJ7r7D0xEroE6vpB/4 cy5Nxo6hzWpyqYqeh5DYmpypUhjUOC9DD765bByAksRu3xQpjp6CAWnyCry9a52MNm9p IFv838ECXz5MWtHlAvFpiG0jmn3n7wauoNeuRV19OC8fIftXoOGE6oH6jyw3SJxAcG5h GHE/HgtURLVe5ElpP0kQAVYfJVdqu5V1V2oE9b3KnrmH/ocyaYYPzYOCL6BDJI9vPDby /Xk65G9RV4ahCamXXBAXMZiz2Rgmlllnbguvlk/NaC12G41lJrrLLYrTLlCKkT76Cl/P dPLA== ARC-Authentication-Results: i=1; mx.google.com; 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 l10si104859jak.11.2021.07.08.01.09.36; Thu, 08 Jul 2021 01:09:50 -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; 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 S231210AbhGHIL3 (ORCPT + 99 others); Thu, 8 Jul 2021 04:11:29 -0400 Received: from mail-vs1-f48.google.com ([209.85.217.48]:42548 "EHLO mail-vs1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbhGHIL3 (ORCPT ); Thu, 8 Jul 2021 04:11:29 -0400 Received: by mail-vs1-f48.google.com with SMTP id f7so1649411vsa.9; Thu, 08 Jul 2021 01:08:47 -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=O/tIWe1nqJc31V9O67iN2UwPLB/e3npgUn13q7m69ss=; b=qGlLnBuCRgQDHIqNwEFfJXZTd4avWy8Q9VwCF4SondArB+UipHMxKeQj5R6Azg6je+ sOALUfZF4Tq832YtnFhLQmKtqdRyDsQdXyDfFwAlMtcgNABrUfa0FTWAwtJw7pYh7+mJ 4Fg74KP6kJyfMsnYeKJ+VSCiaUbpVqe/S8zBrgea+wB77Wz2VUyDeSnHpKNOfroCcL93 XBb06O2TE06x0fQHgvu+MRzAql6pXqzAy6PIQpwk/93IfA3DznQfFFTfecfuOqLHWBes pYLUr9/jXAN1Hrb7TQN9jLUOX6zBv4liy2RTpVKzA5qleA10IzKf377D54n+MwU3ds+F KTpw== X-Gm-Message-State: AOAM531O4VVb5sX5+9RQ5UenPr9XdiEaFJ6MPIq5LmEM3RYPELH2uuhR NEWzVLahFYKUgEOukwbICNn/sTe2Hld3Mukp3lA= X-Received: by 2002:a05:6102:321c:: with SMTP id r28mr1843618vsf.40.1625731726611; Thu, 08 Jul 2021 01:08:46 -0700 (PDT) MIME-Version: 1.0 References: <20210707224310.1403944-1-ndesaulniers@google.com> <20210707224310.1403944-3-ndesaulniers@google.com> In-Reply-To: <20210707224310.1403944-3-ndesaulniers@google.com> From: Geert Uytterhoeven Date: Thu, 8 Jul 2021 10:08:35 +0200 Message-ID: Subject: Re: [PATCH 2/2] Makefile: drop CROSS_COMPILE for LLVM=1 LLVM_IAS=1 To: Nick Desaulniers Cc: Masahiro Yamada , Miguel Ojeda , Fangrui Song , Michal Marek , Arnd Bergmann , Linux Kernel Mailing List , linux-kbuild , clang-built-linux , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nick, On Thu, Jul 8, 2021 at 1:12 AM Nick Desaulniers wrote: > We get constant feedback that the command line invocation of make is too > long. CROSS_COMPILE is helpful when a toolchain has a prefix of the > target triple, or is an absolute path outside of $PATH, but it's mostly > redundant for a given ARCH. > > If CROSS_COMPILE is not set, simply set --target= for CLANG_FLAGS, > KBUILD_CFLAGS, and KBUILD_AFLAGS based on $ARCH. > > Previously, we'd cross compile via: > $ ARCH=arm64 CROSS_COMPILE=aarch64-linxu-gnu make LLVM=1 LLVM_IAS=1 Which didn't really work, I assume? (s/linxu/linux/) 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