From patchwork Fri Mar 11 06:47:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 596069 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BD878140297 for ; Fri, 11 Mar 2016 17:48:20 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aeGry-0002t9-V8; Fri, 11 Mar 2016 06:48:18 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aeGrx-0002hN-1U for linux-snps-arc@lists.infradead.org; Fri, 11 Mar 2016 06:48:17 +0000 Received: from dc8secmta2.synopsys.com (dc8secmta2.synopsys.com [10.13.218.202]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2C8DE10C037C; Thu, 10 Mar 2016 22:47:55 -0800 (PST) Received: from dc8secmta2.internal.synopsys.com (dc8secmta2.internal.synopsys.com [127.0.0.1]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id E526BA4112; Thu, 10 Mar 2016 22:47:55 -0800 (PST) Received: from mailhost.synopsys.com (unknown [10.13.184.66]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id C6A85A4102; Thu, 10 Mar 2016 22:47:55 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id B9A0E668; Thu, 10 Mar 2016 22:47:55 -0800 (PST) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1.internal.synopsys.com [10.12.239.235]) by mailhost.synopsys.com (Postfix) with ESMTP id 8DD6E665; Thu, 10 Mar 2016 22:47:55 -0800 (PST) Received: from us01wembx1.internal.synopsys.com ([169.254.1.89]) by us01wehtc1.internal.synopsys.com ([::1]) with mapi id 14.03.0195.001; Thu, 10 Mar 2016 22:47:54 -0800 From: Vineet Gupta To: Anton Kolesov , Alexey Brodkin , Noam Camus Subject: big endian builds Thread-Topic: big endian builds Thread-Index: AdF7Ye7JMsPXKg2hTfKyrbAPfnjIVQ== Date: Fri, 11 Mar 2016 06:47:54 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.104] MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160310_224817_108310_75290FA0 X-CRM114-Status: UNSURE ( 2.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.182.60.111 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arcml Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org So for big endian kernel builds, just selecting the CONFIG_CPU_BIG_ENDIAN is not sufficient, we also need to manually change the CROSS_COMPILE prefix to arceb-xxx. @Anton, is that what you do for verification builds ! @Noam I presume your defconfig has CONFIG_CROSS_COMPILE or you have set in env variable ? The kernel build system needs to take take care of that. Do you guys have issues with patch below ------------> linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc diff --git a/arch/arc/Makefile b/arch/arc/Makefile index c8230f3395f2..4abcdb89e391 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -9,8 +9,12 @@ UTS_MACHINE := arc ifeq ($(CROSS_COMPILE),) +ifndef CONFIG_CPU_BIG_ENDIAN +CROSS_COMPILE := arceb-linux- +else CROSS_COMPILE := arc-linux- endif +endif _______________________________________________