mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question
@ 2012-05-21 18:29 Jerry Kirk
  2012-05-23 16:54 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Jerry Kirk @ 2012-05-21 18:29 UTC (permalink / raw)
  To: ptxdist

The "PTXCONF_BAREBOX_EXTRA_ENV" option is almost working for me, everything is
working except the network parameters (like PTXCONF_BOARDSETUP_TARGETIP) that
are defined in my boardsetup file aren't being substituted.  Variables in my 
platformconfig file ARE being substituted correctly so I am pretty sure I have
the config.in file in the right place and the rules file is trying to do the 
substitution. Any ideas? I'm using PTXDist version 2012.02.0. The substitution 
worked in u-boot-v2. I did create a new platform so I suspect that is part of
the problem, but I have a ~/.ptxdist/boardsetup.X.Y file.

I think this line from rules/barebox.make
	ptxd_source_kconfig "${PTXDIST_PLATFORMCONFIG}" && 
	ptxd_filter_dir "$(PTXCONF_BAREBOX_EXTRA_ENV_PATH)"
		$(BAREBOX_DIR)/.ptxdist-defaultenv

Is doing the work and I don't see a reference to the boardsetup file, but I'm
lost at this point.


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question
  2012-05-21 18:29 [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question Jerry Kirk
@ 2012-05-23 16:54 ` Michael Olbrich
  2012-05-23 19:23   ` Jerry Kirk
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2012-05-23 16:54 UTC (permalink / raw)
  To: ptxdist

On Mon, May 21, 2012 at 06:29:03PM +0000, Jerry Kirk wrote:
> The "PTXCONF_BAREBOX_EXTRA_ENV" option is almost working for me, everything is
> working except the network parameters (like PTXCONF_BOARDSETUP_TARGETIP) that
> are defined in my boardsetup file aren't being substituted.  Variables in my 
> platformconfig file ARE being substituted correctly so I am pretty sure I have
> the config.in file in the right place and the rules file is trying to do the 
> substitution. Any ideas? I'm using PTXDist version 2012.02.0. The substitution 
> worked in u-boot-v2. I did create a new platform so I suspect that is part of
> the problem, but I have a ~/.ptxdist/boardsetup.X.Y file.
> 
> I think this line from rules/barebox.make
> 	ptxd_source_kconfig "${PTXDIST_PLATFORMCONFIG}" && 
> 	ptxd_filter_dir "$(PTXCONF_BAREBOX_EXTRA_ENV_PATH)"
> 		$(BAREBOX_DIR)/.ptxdist-defaultenv
> 
> Is doing the work and I don't see a reference to the boardsetup file, but I'm
> lost at this point.

It works like this on purpose. BAREBOX_EXTRA_ENV is built into the barebox
binary. The settings in boardsetup are specific to the local user. They
should never change the result of the final images.

What you want is ptxdist test make_barebox_env, I think. It will use
barebox-env/ in your platform and substitute variables from boardsetup.
However this command has not been updated in a long time, and e.g. cannot
merge multiple paths.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question
  2012-05-23 16:54 ` Michael Olbrich
@ 2012-05-23 19:23   ` Jerry Kirk
  0 siblings, 0 replies; 3+ messages in thread
From: Jerry Kirk @ 2012-05-23 19:23 UTC (permalink / raw)
  To: ptxdist

Thanks for the information, at least I can quit thinking it was something I was 
doing wrong. 




-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-23 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 18:29 [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question Jerry Kirk
2012-05-23 16:54 ` Michael Olbrich
2012-05-23 19:23   ` Jerry Kirk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox