Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267AbcCKJ2L (ORCPT ); Fri, 11 Mar 2016 04:28:11 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:38222 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbcCKJ2A (ORCPT ); Fri, 11 Mar 2016 04:28:00 -0500 From: Vineet Gupta To: CC: , Vineet Gupta , "Noam Camus" , Alexey Brodkin , "Anton Kolesov" Subject: [PATCH 1/2] ARC: [BE] Select correct CROSS_COMPILE prefix Date: Fri, 11 Mar 2016 14:57:20 +0530 Message-ID: <1457688441-31337-2-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457688441-31337-1-git-send-email-vgupta@synopsys.com> References: <1457688441-31337-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.12.197.157] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 694 Lines: 29 This allows CONFIG_CPU_BIG_ENDIAN=y to build correctly out of the box, w/o any other tweaks. Cc: Noam Camus Cc: Alexey Brodkin Cc: Anton Kolesov Signed-off-by: Vineet Gupta --- arch/arc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index c8230f3395f2..babc09c61c6c 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -9,7 +9,11 @@ UTS_MACHINE := arc ifeq ($(CROSS_COMPILE),) +ifndef CONFIG_CPU_BIG_ENDIAN CROSS_COMPILE := arc-linux- +else +CROSS_COMPILE := arceb-linux- +endif endif KBUILD_DEFCONFIG := nsim_700_defconfig -- 2.5.0