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 1SXEpW-0001ik-Tg for ptxdist@pengutronix.de; Wed, 23 May 2012 18:54:34 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1SXEpW-0008AX-Sc for ptxdist@pengutronix.de; Wed, 23 May 2012 18:54:34 +0200 Date: Wed, 23 May 2012 18:54:34 +0200 From: Michael Olbrich Message-ID: <20120523165434.GC26040@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] PTXCONF_BAREBOX_EXTRA_ENV Question 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 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