Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5657661img; Wed, 27 Mar 2019 12:35:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpda3F7clag2mzLN2/Hwx3lm9LpV+ZpBy5ux1J8bXxotcN4C42XzDkQUlhxYFK00pw1f8h X-Received: by 2002:a63:dc50:: with SMTP id f16mr12342608pgj.396.1553715340929; Wed, 27 Mar 2019 12:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553715340; cv=none; d=google.com; s=arc-20160816; b=l/NotpPNcZlIuyXq1mch0L/xmJz1Jv+ugFd4PBPsC9reYMgia1yvj+ic0Fs8oodlSt t2PsiRw2JN81x726rjbUN4cADmoVzu8Jdn2vmT92Khgfk1NHdaE+Oqnbmx+a3VdQOCC5 b23BLW4T8yNklHFMZ/8nRtRYAHZa3DQTEgm/2FGGlMwlwmiYdTMdIxfjZW5bDrOPw5oe RnrvcpRXYcAA7gcIN1y9DmMRURMshdHzplkrwPwq/lTAM1kbzPjeqmiaIMgtjZjag1Ld HPricYgXbKLz6+8wxzVEcmg5sPSQUzAQbiBQRwAKmdrr97Fuz055m6cIloosGFj6Cd3A SHpw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ju/K/eyEhuuV9vZXRfXX+vm73HgElJ4I4jcMpWf7NB8=; b=vYkjCaJMqJaO7kh0AvSV2ws6ou57z9Y72USYkh6YNHGQWgWf20Gn1pXC5sZ7QyrchE 74tt9Ekfqss/XkwXzjzJ/bvl4w7Hu4rzsBgFwG31HghOCNUf41khZeaUrK7xKp9ZifWN D1S1f2eBuBBjBB+bdr/i6VqssNK8KSLle8XcaX5q0zhi5KAaM16mzlfD/3ah+YcTD1pK gbOCXhq1evKeMbIWtHzGn2upTcLxmbeZ5AQHR5X1YZEpPb1hXHPFXratvSe3zBFntyYq 6T336zVwvgO0XGyZJHeq2OtYOZgVGCdJ/pjamazDEuaiFHKcnKy3wpBYHaYb8bUp4Ua7 RrXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B8PonKBx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si3999968plt.179.2019.03.27.12.35.25; Wed, 27 Mar 2019 12:35:40 -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=B8PonKBx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732135AbfC0Tec (ORCPT + 99 others); Wed, 27 Mar 2019 15:34:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:41824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728902AbfC0SCD (ORCPT ); Wed, 27 Mar 2019 14:02:03 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF7032147C; Wed, 27 Mar 2019 18:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709723; bh=pXZlTW7L6SuT9nq3Kjkvkdvo1Nw855ohWkzRtgBRmyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B8PonKBxWoD9JeJ9XUmk86ul/kCA7boAYfcyQxbs4Lq/KhARHG5HHIdhDEYOAEbMP xv00U1nQtt3PWTFm01+QZCNhDFwWpH1PqVpXFgj9wCR5wOKD5g3WQm5deuP+A1yG9G mbuf5qYXKhgPqM40A6RvNiHecvfkptiS95Woe5ao= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Sasha Levin Subject: [PATCH AUTOSEL 5.0 004/262] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- Date: Wed, 27 Mar 2019 13:57:39 -0400 Message-Id: <20190327180158.10245-4-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ 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