Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1302559pxy; Thu, 6 May 2021 05:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHjRnhEWQ4Q8WGCl76WzdiuBMDYFrB8nfynhLrcperBHdMELbMQoTrJglvVLhZc6cRIGUK X-Received: by 2002:aa7:db95:: with SMTP id u21mr4801952edt.152.1620303512358; Thu, 06 May 2021 05:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620303512; cv=none; d=google.com; s=arc-20160816; b=Ly9jL6igI3SJQcuufgrDrqbbN9sExwRdcE2QKeXN9vWgBvWU7V1LE1jRhRW25k9Dbt jnR+x+OrfX+gQvTzPX0Yqc2YEFA/yCjH0+at1TKsn2Pj/+R5KNPbu2YrKvfKYK+43MeE qTzVMSxysXAgSXlDcB0neja/hYqSccTo/S5P1eCoF67QuLCaZISYrVR84yceHwDxdPny wjvecaXFG/HUW6X2WRTS8Y4XriTdi5HzEvcthuytCat8K86ZbtghNJfdwlbfAZROfAJs 8t+NiKogQ/UdgFBbELnfC5DftogTKol4ATEzYSQEZeFD5EwbvaiD2StMIiqz14YEgjdX TQyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=6QseWDJD7yxOU5rG3+na4aQGSjg/EdTCgN17vCsxG6Y=; b=XJFCtNds3uXbeuSMIU6FqyjaTGURbbX6zNVN1uNcCCiWA8UptulBWAgB28b0ZUT4Sk Fm41FMdsDTaqJI8Z2hQG3vGgIjtNPQhae3yCAkSjdNXUsIb2WmiF/DfqO2zaoMCGE10A b00GmJrSpD2FnToePL5XUkbwaUBn7llQZNmoekQ5wkAXdKxm8jCraIogpMWUiPWGDmxz 7DUWhkvoV4QX3fuW8ZuCciE0aFJS14b1nDe9v/5LoM1x5+bSZUgr8ATPH+k/g29oyqRL b5YAImu3ICIo+uw7XOBDTEd9TL7geF9wopLjQAAnyklhbW2inV6+plLlXoYm2AWaBZna LyHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=mlbBVVOH; 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 eb8si708396edb.49.2021.05.06.05.18.07; Thu, 06 May 2021 05:18:32 -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=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=mlbBVVOH; 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 S231792AbhEFL5R (ORCPT + 99 others); Thu, 6 May 2021 07:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231800AbhEFL5P (ORCPT ); Thu, 6 May 2021 07:57:15 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA82C061763 for ; Thu, 6 May 2021 04:56:17 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id u19-20020a0568302493b02902d61b0d29adso3827012ots.10 for ; Thu, 06 May 2021 04:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6QseWDJD7yxOU5rG3+na4aQGSjg/EdTCgN17vCsxG6Y=; b=mlbBVVOHOhncgw4lopPiGHy6NNG+4vZNsw5TbuB+kL97hTTKGxe5M48hp1hvmqSvnF TSbCiiwh7InDzzaKZVtA3pjlysz37bVZGSCyJ5xA5NXZELSzieFVupzlCzENCfXyLVJ8 lQ9ClTaR8Gyxc8SmKu694ilUnDrjFcHKBD5EfnDMKjtMldRlGlU6ijU33bbZRQ7i5eML dvNfjxZc8a2KIIzUY8fEf70ryxOfYQn5p1meuFhSQI+sR7voUjNDnM0cjo9fXGauaAkY tdgwC8B68IfrCM00egmCeciw+m5i3CcQKpiCdhAAe24DXvHylSzVuunNLT65gIvMce3o mJsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6QseWDJD7yxOU5rG3+na4aQGSjg/EdTCgN17vCsxG6Y=; b=Is/KUvHK8TarwzP6B4TrDpoNLaT6btIWb3W7oWHyt9sVplC75uD7+Kubg2KMc9ndwI 0oAplbYwTRiTwVECG5sQKVql+ffki5HwIJqqwYgBLCAx5Yi9gTrgJczveBiSx0Z3Crzx XPL6e38S1unKWF+Nyx1V9XiB3tsfrNw3fKu8KGs6sOZm4txMkzsMRcQkH5Hi8dLG02aX DTVxet+Of4u1I4Rv7kS9Lve1w66Tu+fjIz37bIEr7rT7p7YQfcUieY0DTFkUXMDxz1Mp 2uQManm93zSwKmHIDAG9/cXYu3cZYvoEqIZ2f5rzvnritT+Phd9mvChwE3dNOuSiGe1A W4Ng== X-Gm-Message-State: AOAM532T5tl5V+lhVHuGX8Hk6XWjxk9Aps6FGPP1FVUkG/pvNqe7cvTJ bS8LZJLr/xcbOkBZhE4wbmY8UQ== X-Received: by 2002:a9d:6242:: with SMTP id i2mr3187364otk.273.1620302176492; Thu, 06 May 2021 04:56:16 -0700 (PDT) Received: from [192.168.101.238] ([172.58.96.242]) by smtp.gmail.com with ESMTPSA id q2sm14055ool.3.2021.05.06.04.56.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 May 2021 04:56:15 -0700 (PDT) Subject: Re: [PATCH 2/2] arch: use cross_compiling to check whether it is a cross build or not To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Chris Zankel , Geert Uytterhoeven , Helge Deller , "James E.J. Bottomley" , Max Filippov , Rich Felker , Thomas Bogendoerfer , Yoshinori Sato , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org References: <20210501172437.156926-1-masahiroy@kernel.org> <20210501172437.156926-2-masahiroy@kernel.org> From: Rob Landley Message-ID: <664383ae-8ab2-da1d-601d-365d507f47db@landley.net> Date: Thu, 6 May 2021 07:11:51 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210501172437.156926-2-masahiroy@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/1/21 12:24 PM, Masahiro Yamada wrote: > 'cross_compiling' is defined by the top Makefile and available for > arch Makefiles to check whether it is a cross build or not. A good > thing is the variable name 'cross_compiling' is self-documenting. > > This is a simple replacement for m68k, mips, sh, for which $(ARCH) > and $(SRCARCH) always match. > > No functional change is intended for xtensa, either. > > This is rather a fix for parisc because arch/parisc/Makefile defines > UTS_MATCHINE depending on CONFIG_64BIT, therefore cc-cross-prefix > is not working in Kconfig time. > > Signed-off-by: Masahiro Yamada Tried the patch in my sh build, the result built and booted. Tested-by: Rob Landley Rob