Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1001712yba; Thu, 4 Apr 2019 02:09:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyhD4eIiLXWIse4wp753N/wa5+3CatBJpF3yS/3i7xRTD1fHs6QOxwetj91iKikKwkjdn8 X-Received: by 2002:a65:64c8:: with SMTP id t8mr4660631pgv.248.1554368946942; Thu, 04 Apr 2019 02:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368946; cv=none; d=google.com; s=arc-20160816; b=aX/DwhIwcuBqcunKd6C9aati9NLovt8v5bi0CuXbjvaVHhDaxUP6pKy+y8cN+N4S/7 y/U+6KcT6sFF8HTtSTwoNnFpoLBp59zy+7QIG70llIIXZlx5XLFOBJr5xKEd4bUpkcwp BVmIAGw9xFIS4oYwVGQ3b3g8S3zHVImt/XPRZpE1ZKzX17P6WGeGQ+cRdz5whwXafref wSjVRrb43j6lKULSAMcmpHRtNYknv1m+9dxuz9hM+AsEM7nPZkrUKk+qd0RCEv9hrjCk htE78f+CIp1hJmzayIh8Mg2phJNsmxWrr4mQIkAB+iw59xDhxVObWPl0lCANO0JlMKgQ eZLg== 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=ciZuq7qFQoKkibtQln0qbHTkWj7IWaZA0/TMTGhvjiA=; b=LScTLM5C6skroi3AFT7ibC1ZrSecOf5fDIyt9I8exTbkCnkiH0Vw+ek2PAkCXLiLc2 C84e2y8oEy4ouW8Etq0QHokSw8x0mHFhP48Rywe5bjhO6x8LycvDslXctlcayuD71BhP zu8UFjI7Rn+krqLWnnoU1xLOwx8rtqitTwgPH3Tp2SZd+UcaShrzPud29q2TQP5stMWV /kTOLvEZSHAi/GuiUy+WuxMLswnshtNisLREGMKic8gPGQbiZRq06C0m3uHeHp9W+d9X B7ND0bEw52+i2UC0pcsKWx52J3bdFWKAVMFwp20ZMvt//vrizAQzJTYi8WI8pJNL3gPo cCKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jMEQuwdA; 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 186si16435368pfe.262.2019.04.04.02.08.51; Thu, 04 Apr 2019 02:09:06 -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=jMEQuwdA; 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 S1732345AbfDDJH4 (ORCPT + 99 others); Thu, 4 Apr 2019 05:07:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:46774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732325AbfDDJHw (ORCPT ); Thu, 4 Apr 2019 05:07:52 -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 AA4F12177E; Thu, 4 Apr 2019 09:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368872; bh=S4ho9gu8T/bbIBTgxo159kQdPufKNhysVa7rFz7G1nI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jMEQuwdA0mrCMMzBZVnzRfnBQQhcPmtmgQZtXggY5WzTgIXWOuugrajpNqG2CkuUh +yKPn0QDUJkBQAKXKkFkZ/sL+zVRcyXb28MkuRNALLf6yBmjH7RGcvLJlSBDk+04UV dv91n9TB2OIuJI+DNupuuXbU8CIcD1QaW0aBXfb4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Sasha Levin Subject: [PATCH 5.0 005/246] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Thu, 4 Apr 2019 10:45:05 +0200 Message-Id: <20190404084619.423584676@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-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 f801f3708a89..ba0f26cfad61 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/ -- 2.19.1