From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964795AbbELUIA (ORCPT ); Tue, 12 May 2015 16:08:00 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:59281 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752533AbbELUH4 (ORCPT ); Tue, 12 May 2015 16:07:56 -0400 Date: Tue, 12 May 2015 13:07:43 -0700 From: Guenter Roeck To: anees Cc: Jonas Bonn , linux@lists.openrisc.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] OpenRISC: Fix kernel build problem on OpenRISC Message-ID: <20150512200743.GA6155@roeck-us.net> References: <1431438321-4697-1-git-send-email-rean12is@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431438321-4697-1-git-send-email-rean12is@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-CTCH-PVer: 0000001 X-CTCH-Spam: Unknown X-CTCH-VOD: Unknown X-CTCH-Flags: 0 X-CTCH-RefID: str=0001.0A020205.55525D9B.0274,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-CTCH-Rules: X-CTCH-SenderID: linux@roeck-us.net X-CTCH-SenderID-Flags: 0 X-CTCH-SenderID-TotalMessages: 4 X-CTCH-SenderID-TotalSpam: 0 X-CTCH-SenderID-TotalSuspected: 0 X-CTCH-SenderID-TotalConfirmed: 0 X-CTCH-SenderID-TotalBulk: 0 X-CTCH-SenderID-TotalVirus: 0 X-CTCH-SenderID-TotalRecipients: 0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: mailgid no entry from get_relayhosts_entry X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2015 at 03:45:21PM +0200, anees wrote: > Kernel build fails with error "target elf32-or32 not found" > This is due to the change in OpenRISC compiler prefix from "or12" > to "or1k". Add config options that set architecture output format > default to "or1k" but also allow user to select older prefix. > > Tested with gcc version 4.9.1 uclibc > > Signed-off-by: anees > --- > arch/openrisc/Kconfig | 12 ++++++++++++ > arch/openrisc/kernel/vmlinux.lds.S | 6 +++--- > 2 files changed, 15 insertions(+), 3 deletions(-) > > diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig > index e5a693b..c7fe7c8 100644 > --- a/arch/openrisc/Kconfig > +++ b/arch/openrisc/Kconfig > @@ -75,6 +75,18 @@ config OPENRISC_BUILTIN_DTB > string "Builtin DTB" > default "" > > +config OUTPUT_FORMAT_TYPE > + string "Architecture output format type" > + default "or1k" > + help > + Write "or12" if building kernel against an older toolchain > + else leave the default (or1k) > + That means I'll have to use different toolchains for different kernel versions, or hand-edit default configuration files to able to work with the same toolchain. Both is, from a testing perspective, quite annoying. Maybe I should simply stop testing older kernels for openrisc after this patch has been merged; that would be much easier. Jonas, is that ok with you ? Side note: I didn't drop it from Cc:, but the openrisc.net domain name expired and appears to be for sale. Guenter