From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RzssK-0007ic-FO for ptxdist@pengutronix.de; Tue, 21 Feb 2012 17:47:36 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RzssK-0003ik-EL for ptxdist@pengutronix.de; Tue, 21 Feb 2012 17:47:36 +0100 Date: Tue, 21 Feb 2012 17:47:36 +0100 From: Michael Olbrich Message-ID: <20120221164736.GI29102@pengutronix.de> References: <1329832497.7354.5.camel@lws-weitzel> <20120221150907.GG29102@pengutronix.de> <1329837960.7354.9.camel@lws-weitzel> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1329837960.7354.9.camel@lws-weitzel> Subject: Re: [ptxdist] MLO Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Tue, Feb 21, 2012 at 04:25:59PM +0100, Jan Weitzel wrote: > Am Dienstag, den 21.02.2012, 16:09 +0100 schrieb Michael Olbrich: > > Hi, > > > > On Tue, Feb 21, 2012 at 02:54:57PM +0100, Jan Weitzel wrote: > > > I am looking for a way to build a MLO (xloader) from barebox sources. > > > How can I reuse the barebox sources? I tried to play with > > > BAREBOX_BUILD_OOT, but didn't got a -build dir. > > > > You can only use *_OOT this is implemented in ptxdist for the used > > conf_tool. This only works for autoconf, qmake and cmake right now. > > > > You'd create separate rules for the MLO, right? Just reuse the same url, > > source etc. as barebox but use a different _DIR. PTXdist will then > > extract the same patches into a different directory. > > This works much better reusing the same source in multiple packages. > > Ok, is there a way to reuse BAREBOX_SOURCE > > rules/barebox_mlo.make: > BAREBOX_MLO_SOURCE := $(BAREBOX_SOURCE) BAREBOX_MLO_SOURCE = $(BAREBOX_SOURCE) ":=" is resolved immediately even if BAREBOX_SOURCE is not yet defined: FOO := $(BAR) MOO = $(BAR) BAR := Hello MOO is Hello and FOO is empty. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de