From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org ([63.228.1.57]:49924 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbZIYV5v (ORCPT ); Fri, 25 Sep 2009 17:57:51 -0400 Subject: Re: [patch] powerpc: build modules outside the kernel tree fails, if it was built using O= From: Benjamin Herrenschmidt In-Reply-To: <20090925194557.GA3323@merkur.ravnborg.org> References: <4ABB57CB.3000409@ru.mvista.com> <20090925194557.GA3323@merkur.ravnborg.org> Content-Type: text/plain Date: Sat, 26 Sep 2009 07:57:32 +1000 Message-Id: <1253915852.7103.531.camel@pasglop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Sam Ravnborg Cc: Yuri Frolov , rep.dot.nop@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kbuild@vger.kernel.org On Fri, 2009-09-25 at 21:45 +0200, Sam Ravnborg wrote: > On Thu, Sep 24, 2009 at 03:28:11PM +0400, Yuri Frolov wrote: > > Hello, > > > > here is a corresponding bug: http://bugzilla.kernel.org/show_bug.cgi?id=11143 > > This patch should correctly export crtsavres.o in order to make O= option working. > > Please, consider to apply. > > Hi Yuri. > > I like the way you do the extra link in Makefile.modpost. > But you need to redo some parts as per comments below. > > > > Fix linking modules against crtsavres.o > > Please elaborate more on what this commit does. It's a support file that needs to be linked against every module (aka libgcc like) and thus needs to be built before any module. Cheers, Ben.