Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5857957ybi; Wed, 12 Jun 2019 09:37:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLrHx7qQkxk0spkOlmgXgsByx7Vc14xNBMz6864s98W4vE6UQi7suwGH3i4aANJRPmct0E X-Received: by 2002:a17:90a:216c:: with SMTP id a99mr88948pje.3.1560357467125; Wed, 12 Jun 2019 09:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560357467; cv=none; d=google.com; s=arc-20160816; b=a38Fuyy2FJFKYMTnx4clF/Xk3n+DNupGGKB4GlOEp6MWahwah03CFztCPrrxr24mP4 1VAgY5v/jf5ixxykEoWlZbSk1HYw8rsrO7z3rwr15KJBiAn86OlcsuguTGzkIG1c7Yhs XPfeWAKBky4APQ2BGYNw3GtBuVVz++gNU0afEOKswrfJoeqGUxr40w8d9LDUBABD+g2p SB8sBLlfuWg7uzBVLB9epFqW+wAtJMmXW4EF848FzInFwChDlQqaSiaB+7cKNccrjmKD tqInJQplQuCt7IwzMUaVEZQ7XzZ4p/t+KP3Oixv6vsVAvbMcN+XbxlJDz0LW6uFEIdtq z1Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=9qf4J6QRljcfXo5cUe4iXkNhy9Rz2w4BYyV8ixl/hPM=; b=0Yjc9U4V4FuzufwIoQ9LWCOOUuSknMunxejn60O/jUt4ThxxNgCCKvvBM7siJ0joib pH26KhEnnK8MJJWWeQj8227lTCH9xYDeAKPvQNtjRWgzb4sD7ifaox13SpAOFutBLSBS AQnipLxQa9wHfuJNRi9QO4S5FUWabtpoSti3HJJ4HpXDS8LjXuMCIDpjPLLvSCpS8Swm 52ni7gEstwvHFe/ucVtc7i1p8z5aU4/qOe9bYXsIfRwIC+3WnmrcXLpBBF0bNarncTAd QD5XMYkL58kpKxL9kaTZ8Lz8xOAx/ywwjTxGCPUhkc8pqyxb69DUuy4cmzWvdLMZk+LE rAqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MsLZJG3O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si269049pgj.18.2019.06.12.09.37.31; Wed, 12 Jun 2019 09:37:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MsLZJG3O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbfFLLSf (ORCPT + 99 others); Wed, 12 Jun 2019 07:18:35 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:38138 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbfFLLSf (ORCPT ); Wed, 12 Jun 2019 07:18:35 -0400 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x5CBIF6L022141 for ; Wed, 12 Jun 2019 20:18:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x5CBIF6L022141 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1560338296; bh=9qf4J6QRljcfXo5cUe4iXkNhy9Rz2w4BYyV8ixl/hPM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MsLZJG3O0m4XnY+kDeA6aNO0la9hMNG+YOcdfh9A+CbiK+sVJXGiOFWVgU4vEppmm pH68SIue+8bShOzLSDQ2suMAkHW5W4oo4HVSumabLgvs5JkjfPG88ZlmAt4OWAt6mC O4SCxENac1lwcqJzaFbezMiyxWawHnM0NGT5psLCnHfFUPBupJjaySWWZQ5YQmdTQm 5AqvO2SFUJoaiaRlMjFjowrlj1+g0BDN2M4Pp4dk9Ax4I4UpxPxf9R8TVbBCoTnPHa FtgPeJmmaQLrQukh8LjiLleE/6Ix1T0FA3w09RDY+efL+DE0QRAKhwH5eNkAofSuC1 LX9FidaSAi55g== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id v6so9989788vsq.4 for ; Wed, 12 Jun 2019 04:18:15 -0700 (PDT) X-Gm-Message-State: APjAAAXKLTWapkxcXRl20YJN3diOhx1dt1XpVpQZkEPRKr77QRsTMt8h OSED+TnlDJ1i92ylIEUqiaFcRLtZQLEc8Ys8ohk= X-Received: by 2002:a67:f495:: with SMTP id o21mr28123827vsn.54.1560338294432; Wed, 12 Jun 2019 04:18:14 -0700 (PDT) MIME-Version: 1.0 References: <20190603063119.36544-1-abrodkin@synopsys.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 12 Jun 2019 20:17:37 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix To: Alexey Brodkin , Vineet Gupta Cc: "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. On Tue, Jun 4, 2019 at 2:49 AM Alexey Brodkin wrote: > > Hi Vineet, > > > -----Original Message----- > > From: Vineet Gupta > > Sent: Monday, June 3, 2019 7:25 PM > > To: Alexey Brodkin ; linux-snps-arc@lists.infradead.org > > Cc: linux-kernel@vger.kernel.org; Masahiro Yamada > > Subject: Re: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix > > > > On 6/2/19 11:31 PM, Alexey Brodkin wrote: > > > For a long time we used to hard-code CROSS_COMPILE prefix > > > for ARC until it started to cause problems, so we decided to > > > solely rely on CROSS_COMPILE externally set by a user: > > > commit 40660f1fcee8 ("ARC: build: Don't set CROSS_COMPILE in arch's Makefile"). > > > > > > While it works perfectly fine for build-systems where the prefix > > > gets defined anyways for us human beings it's quite an annoying > > > requirement especially given most of time the same one prefix > > > "arc-linux-" is all what we need. > > > > > > It looks like finally we're getting the best of both worlds: > > > 1. W/o cross-toolchain we still may install headers, build .dtb etc > > > 2. W/ cross-toolchain get the kerne built with only ARCH=arc > > > > > > Inspired by [1] & [2]. > > > > > > [1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-May/005788.html > > > [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fc2b47b55f17 > > > > > > A side note: even though "cc-cross-prefix" does its job it pollutes > > > console with output of "which" for all the prefixes it didn't manage to find > > > a matching cross-compiler for like that: > > > | # ARCH=arc make defconfig > > > | which: no arceb-linux-gcc in (~/.local/bin:~/bin:/usr/bin:/usr/sbin) > > > | *** Default configuration is based on 'nsim_hs_defconfig' I just noticed this patch is queued on top of v5.2-rc4. (2bc42bfba9b247abd) This 'side note' is no longer needed or reproducible because -rc4 contains my fix-up (913ab9780fc0212). I do not know if the ARC maitainer is happy to rebase. Just for your information. -- Best Regards Masahiro Yamada