Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp991519yba; Thu, 4 Apr 2019 01:56:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGLaIg6E/IntbBL2UmELvfiUevskOq7oo+iGct+PUn7W1leZQ/cSS5VzbyvpOEOyvuwM0X X-Received: by 2002:a63:5c53:: with SMTP id n19mr4459150pgm.193.1554368162728; Thu, 04 Apr 2019 01:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368162; cv=none; d=google.com; s=arc-20160816; b=kQhCQhFriht2nZEvazIiFyvwEvCE3ozpvgu529dR7nu9iCgmgzGlvAeBn6y7hvHhlA FUq80H6KXfnzG1b34JIgG6fYEPohxHRDW8bJEIO52ELD/gJ37fG/yBiB6v85RJE+QkFo Cn1r2tWPihMztk5DbZn4pF12Urk3t1b2+EK/YJiaiw4w3XGLRfPEjAfZdNMKqOxtyfN2 o1zl8qFrbE3S1LfHFt7UewPMgwtACor2/QO/alKA9/XTJ58ioWGPqeQUj1eXYkCA4cQ/ KhsztBNxRdITeCXhbY25IoDYhjp9MLwl2YtpAhXWZ+MQZj0B1U+WXkUtsHIA5TnF92ZM +EuQ== 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=Lo9IvF2L0/VEhKbh06JsxYOlTCQYFev2Css+NHeBZRk=; b=wTenssHaI2+Tu69MTOQe5wM4chur3cT0lcFVJYpROeWitoEzNxu8qBSVEi7PDjyc96 85ogc9zjJDbUUYHGQK8y2Kz5cKeNVGwSUW5SUHiG0XF98Rg+OS4SlLihKGw4jUf7tKcz +vyAq29KgOQHWOEdsS8iZinIMy0ea5LdmZvuK6cTdCllS8d8wt5wB9alnoQXa66bzmTZ pk45rrSWNzVm1KKE5CFJG1a0UauAzcnllnQ4HVF4BU3BWjVdofP2nc5yrgwa2kV/I+pf k8w2tOEOScaBMiUhjdG5hD2YWC9KVWFz+qG7tN773oyTZg1iosifLd2NBX59rk6nz/cV QcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eEhyPZvB; 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 be7si9409742plb.266.2019.04.04.01.55.47; Thu, 04 Apr 2019 01:56:02 -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=eEhyPZvB; 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 S1730068AbfDDIyc (ORCPT + 99 others); Thu, 4 Apr 2019 04:54:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:57102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730036AbfDDIy0 (ORCPT ); Thu, 4 Apr 2019 04:54:26 -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 4FD24217D4; Thu, 4 Apr 2019 08:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368065; bh=rqq9+YCxar3/+6CMACzDKsAjOdCFnVjDvBg79kpCGjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eEhyPZvBzTVvfr6CiHeA7QTzp2PiHvoizDQEItFUOJPjihp0Tb7SfLHiHStTzpbQE NJFDlWYdIPESuKCv3JaGdagzgNJIFAax4vA6oAeFpFqgNAGuFfkXR6mxy68B92n2nS 16lwGJwCUDDOqyoomzfgYSPpixrW36b+kOl6s+QM= 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.14 008/121] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Thu, 4 Apr 2019 10:46:36 +0200 Message-Id: <20190404084545.719737857@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084545.245659903@linuxfoundation.org> References: <20190404084545.245659903@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.14-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