From patchwork Fri Feb 15 04:04:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158469 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp247878jaa; Thu, 14 Feb 2019 20:05:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IZVe5DjCBzHC30XCcpYCmx6D9fcKndBsazbsxtfNMl3yH5aT9MdE/et2PSWmuqaH34rKEw2 X-Received: by 2002:aa7:8d57:: with SMTP id s23mr7670406pfe.237.1550203512973; Thu, 14 Feb 2019 20:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550203512; cv=none; d=google.com; s=arc-20160816; b=CeKAg3oaSkfzmYCoZOzmAgNJuex+qfiPtDKEFqSZgcLX8N6vHSL4+cm7UKytKZ7dl3 RmZuQtbKTFjEv/O/QSDN3R6aRBd8jNwVxF6kwkITMP2XbUW31000/ymYScYdGoTMArD9 z6GQPU1k8H92w/C5qlnw9wqjbP7zb3VuOfw0Ou+pv3uIYE+dRVwyHVB9XmKioIUOcArd 11WHA0kSR1EVJ7bs/J1pn6GzOEhgWxAz14KCvZmdcBUoY/cN8WfmSHIo8bgM0uARd68d HI8yvTCd4W4KpjY4LjUW8aUv2Hc4VBAWZ2j5GjdnG6vrav1tzVrHnhhpbJiMBo1QXVqm Yxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=/7el2vCDzAReGIevnNfGHriy40ZvtjfSlPLwN8yRet0=; b=BLAkqvLBJPSZ88RYQI2b9eKDDCKwd2G5ukjPGYRhdx0B+yePiGid6EJdPLNQ1cFQnb /xYi7xu1IY2AygBlaAFtB7HtBDPoCpakVcewFRhJkYDAtzF2jC2gV12zzt2Pkd0VDnJS IA99eWeAY2vO6nDaR49pG/OSz0ohFxhWRKRxhcPT/bAwnk5qkb7hqlftEC2GOtw29nY8 C4I1wRAdqDUuY8wPQIaICUwPnVDVpO/a/JFi9UZ6Aj7I14B8HDGw0cD/TVmQeOgZXv8x Xif0it+znDylxxlE+sThyAX7Bab1wXXPgqDY0p3ITkT9GUJ2PkTiBiTs23mZpamGGRNi +tBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lVnZ3FfX; 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 a2si4537676pfb.166.2019.02.14.20.05.12; Thu, 14 Feb 2019 20:05:12 -0800 (PST) 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=lVnZ3FfX; 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 S1731195AbfBOEEo (ORCPT + 31 others); Thu, 14 Feb 2019 23:04:44 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:65215 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728242AbfBOEEo (ORCPT ); Thu, 14 Feb 2019 23:04:44 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x1F44VKQ016178; Fri, 15 Feb 2019 13:04:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x1F44VKQ016178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550203472; bh=/7el2vCDzAReGIevnNfGHriy40ZvtjfSlPLwN8yRet0=; h=From:To:Cc:Subject:Date:From; b=lVnZ3FfXy8ia869I2JS6wYWbksGVNdkXeVzXPbvGeMbTXgUpaOYERh+IxaU4yYVag zw730nI4CwZJ3wVVH1760TEJ55eTXoaqpfgnItJA7WP5a0h12tiDXfdjs4aFlWe4CX 1zH65l9h0ULEplynv6Tw5uDfcKJwAnjX8WJIK+XjQZQuH4XO65HQAfoF0WStD/gxjE orTkqIUIqPPAp5paIiV7KygmrB6MIRjWRIovGISc8pb2gSBRr/HD3X3mOBfGlZz5SO L9KSsLEhzqNCdMtmWpACwjb2qBkAXXDknPxbAMiD7KicdLkkfMICqxX6ps2dDA2ryi Po9vTGOHyWPXA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Fri, 15 Feb 2019 13:04:26 +0900 Message-Id: <1550203466-13984-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It believe it is a bad idea to hardcode a specific compiler prefix that may or may not be installed on a user's system. It is annoying when testing features that should not require compilers at all. For example, mrproper, headers_install, etc. should work without any compiler. They look like follows on my machine. $ make ARCH=h8300 mrproper ./scripts/gcc-version.sh: line 26: h8300-unknown-linux-gcc: command not found ./scripts/gcc-version.sh: line 27: h8300-unknown-linux-gcc: command not found make: h8300-unknown-linux-gcc: Command not found make: h8300-unknown-linux-gcc: Command not found [ a bunch of the same error messages continue ] $ make ARCH=h8300 headers_install ./scripts/gcc-version.sh: line 26: h8300-unknown-linux-gcc: command not found ./scripts/gcc-version.sh: line 27: h8300-unknown-linux-gcc: command not found make: h8300-unknown-linux-gcc: Command not found HOSTCC scripts/basic/fixdep make: h8300-unknown-linux-gcc: Command not found WRAP arch/h8300/include/generated/uapi/asm/kvm_para.h [ snip ] The solution is to delete this line, or to use cc-cross-prefix like some architectures do. I chose the latter as a moderate fixup. I added an alternative 'h8300-linux-' because it is available at: https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/ Signed-off-by: Masahiro Yamada --- arch/h8300/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index f801f37..ba0f26c 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile @@ -27,7 +27,7 @@ KBUILD_LDFLAGS += $(ldflags-y) CHECKFLAGS += -msize-long ifeq ($(CROSS_COMPILE),) -CROSS_COMPILE := h8300-unknown-linux- +CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-) endif core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/