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 <PKG>_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
[email protected]

Reply via email to