Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2252132imm; Thu, 18 Oct 2018 11:25:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV62/45KJn3Cs/yHuE6GELCmxmxO2Ll7bd5uVvJjR+XBuw8Godhj0fPd0T3duXARdikVgszkY X-Received: by 2002:a63:4952:: with SMTP id y18-v6mr29480032pgk.32.1539887155567; Thu, 18 Oct 2018 11:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539887155; cv=none; d=google.com; s=arc-20160816; b=y30knPr+8nQypDfLuwqOX8ECZ0Ia/9E7sVS5vmZqoCMOtl78AN/3DgkFT8xFJldMyB pAFyPB4uiGvqs9MOMpFUiXcmwf6UHyoOfAkhG/ksFfCtJFwdTAU9Gzk/T9QQtEe0o8h7 etbiSsDntyba0uDsQlI28RjGVwOrqNHO/LhE+301OsHshdOP8nQrXTzNTW2A9nviLUNJ d/LTIOHARx3v9gurKsBOLIoBnAYI8NaReGApLAFjtxhf83wsp5ZwZR+BCYY6dKNyiweg JbuLsXgOoyx7atH/eVZsCdoX4o0r1+b3EPmW4fyeKNmx1+Gmbg8lJzPb2FTfdn34kPSb IyUw== 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=OEJdqm7Fm1Zx8WRF5u8Pw+aO8OoY3yEtbhxtpGQ80x4=; b=sTCinVim5YRua+GH2StZDUidtZZu/LNX9QhFIImCQufLHYtylKP5+4zJUq8Q6uKhZL CeNBpaz6wwYR9348jivOE6l7VWVI7CrhN59V1aFwWSOthIVX5O82ojAFmNXncOMGgx+x HjOleBS1d7o37KCoO7NedngDTTOX8A51y6w3WTvySK+8El77G0fGfUTvOcfqvbiyUEbK rgvZ+XescMDwhEUXgr0danAXS/VWOt2lmDeRL1UZKIAfy+F0UVBf4xw+Rr6ZksHQFJQl 9RbjEgXlNGlqJpYnov1fmlQ/OYIfMNPtvVpcYUfaMocwpWC6Aw6Z/UQ4lWs4Oyt+OH51 6fSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W5KKtMU+; 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 t1-v6si21860511pgi.439.2018.10.18.11.25.39; Thu, 18 Oct 2018 11:25:55 -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=W5KKtMU+; 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 S1729143AbeJSCA6 (ORCPT + 99 others); Thu, 18 Oct 2018 22:00:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:48592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729134AbeJSCA6 (ORCPT ); Thu, 18 Oct 2018 22:00:58 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 92E9121476; Thu, 18 Oct 2018 17:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885533; bh=bjOqUdXs6gNZXH03iVCr2v9/mYX8u2aGHsJsOPSonUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W5KKtMU+luZOihAZvOIbOnB5vpWvfod/dcciQmaEjSJK4Z/BTQiUuXfcMz38aFnKX ezaNeWUrfJaWzc1dZKSLbElyMM1pfC8YQjzvUaOOmDcFI8X+Mamd4Ix/DXn1ocd+Zx Dw7ZCZ+EyXweC3zY0+FTYM84SJct+r0cMP2V0zVI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexey Brodkin , Masahiro Yamada , Rob Herring , Vineet Gupta Subject: [PATCH 4.18 53/53] ARC: build: Dont set CROSS_COMPILE in archs Makefile Date: Thu, 18 Oct 2018 19:54:46 +0200 Message-Id: <20181018175425.568632810@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175416.561567978@linuxfoundation.org> References: <20181018175416.561567978@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexey Brodkin commit 40660f1fcee8d524a60b5101538e42b1f39f106d upstream. There's not much sense in doing that because if user or his build-system didn't set CROSS_COMPILE we still may very well make incorrect guess. But as it turned out setting CROSS_COMPILE is not as harmless as one may think: with recent changes that implemented automatic discovery of __host__ gcc features unconditional setup of CROSS_COMPILE leads to failures on execution of "make xxx_defconfig" with absent cross-compiler, for more info see [1]. Set CROSS_COMPILE as well gets in the way if we want only to build .dtb's (again with absent cross-compiler which is not really needed for building .dtb's), see [2]. Note, we had to change LIBGCC assignment type from ":=" to "=" so that is is resolved on its usage, otherwise if it is resolved at declaration time with missing CROSS_COMPILE we're getting this error message from host GCC: | gcc: error: unrecognized command line option -mmedium-calls | gcc: error: unrecognized command line option -mno-sdata [1] http://lists.infradead.org/pipermail/linux-snps-arc/2018-September/004308.html [2] http://lists.infradead.org/pipermail/linux-snps-arc/2018-September/004320.html Signed-off-by: Alexey Brodkin Cc: Masahiro Yamada Cc: Rob Herring Signed-off-by: Vineet Gupta Signed-off-by: Greg Kroah-Hartman --- arch/arc/Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -6,14 +6,6 @@ # published by the Free Software Foundation. # -ifeq ($(CROSS_COMPILE),) -ifndef CONFIG_CPU_BIG_ENDIAN -CROSS_COMPILE := arc-linux- -else -CROSS_COMPILE := arceb-linux- -endif -endif - KBUILD_DEFCONFIG := nsim_700_defconfig cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ @@ -73,7 +65,7 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB # --build-id w/o "-marclinux". Default arc-elf32-ld is OK ldflags-$(upto_gcc44) += -marclinux -LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) +LIBGCC = $(shell $(CC) $(cflags-y) --print-libgcc-file-name) # Modules with short calls might break for calls into builtin-kernel KBUILD_CFLAGS_MODULE += -mlong-calls -mno-millicode