Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1036047yba; Thu, 4 Apr 2019 02:58:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3ipHmXfE98lgSMycpdVX5ZMvHbiOPYCbctHl56FXE2aWFV5wdDYkil97KmE4eYe0ziPuo X-Received: by 2002:a62:4ec8:: with SMTP id c191mr4857842pfb.138.1554371923283; Thu, 04 Apr 2019 02:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554371923; cv=none; d=google.com; s=arc-20160816; b=j8KQYm12Oerg9Ss/y3Fo753wNeZFVTYtXrWuzDEsEfyVrujx/HcAM3oh1DdEd0znbE cY344amjXgkchPQMlKiMJdPC4jxl7csGqXrPMSdZ/l6AwgyQtyw0U4wxd48fLMds327L zmXpxEMoQKnpYqpgUg4P5E9wYCzc4aL6/jxdyD9TNGmzSx4BkqOpOma0rD3+vDwfV5/i k4iPHKHcwL8cWcSGLhUSiAyaHKTvLbzHFs0ss2GhDwL4ig9DuKgHD/BL4q1/hqveYxlm KruiLYH5e5k/Qs3ZpduE6Bsu0I/D/ed0Yqich+j408rWrx43hBLwV14Ez3HnibHCsVVk Of5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ayCYCLbCO3AW27pc/yvwkufXV6aof6cRCIipwPOKhwM=; b=coy7yVb/CTGywyGGQitHcSKhezIqHHZH+uFgq4LGpPLdSOcCMlFznI5zua0jbAp5rn Uxixtoioq9PmzT/ANJ5xSKqqNch8g7Bk3Y+0e5nmcZbQ0iPT7ocJz47MOlVU4wa5igJi wbTnX6bd3hh9V8PGfWTIv6A4fspJsCjBURIRiFusFAIl4Dp0lw+dQ+ywxoaFZfVeRsAx 5VwDuGdx3RZ8uZjKCW/GQKWWe4sNEd64g50/ce55p3KcvyaXKSlxe/FbNQR9TBR0pupf X5ZwJ5cqI8GWb2oLX6xhLgPOO98gpONkTLyJH3sTFazNPD0zvtN97/g1YVQCPYKsPu+H e6xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L5vOAGYy; 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 r12si15396469pgr.125.2019.04.04.02.58.28; Thu, 04 Apr 2019 02:58:43 -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=@kernel.org header.s=default header.b=L5vOAGYy; 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 S1728727AbfDDItn (ORCPT + 99 others); Thu, 4 Apr 2019 04:49:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:50412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727096AbfDDItl (ORCPT ); Thu, 4 Apr 2019 04:49:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30C1C20855; Thu, 4 Apr 2019 08:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554367780; bh=r+oXK3DrdsA0AxWeDD+Giplla8tOU5H9OzAFwFkWakQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5vOAGYyaehwHljPi4kX7yUGEOuL3/DS/Aufm8Gf/hAIYT9fyWMVsVmhT2mGXop8p Q0h2JannWZLovLwo1a9jyfrcMFKWXI1kOoG7woab2pzuC8ZU0SDEeiLB+2N+piycGm rR4F2aDIWP/8CEe2Uuw+oQbnw7lXvCp8SuB5lVkk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Sasha Levin Subject: [PATCH 4.9 10/91] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Thu, 4 Apr 2019 10:46:54 +0200 Message-Id: <20190404084535.996528957@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084535.450029272@linuxfoundation.org> References: <20190404084535.450029272@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit fc2b47b55f17fd996f7a01975ce1c33c2f2513f6 ] 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 Signed-off-by: Sasha Levin --- arch/h8300/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index e1c02ca230cb..073bba6f9f60 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile @@ -23,7 +23,7 @@ KBUILD_AFLAGS += $(aflags-y) LDFLAGS += $(ldflags-y) 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/ -- 2.19.1