From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kQlWq-0006P4-7b for ptxdist@pengutronix.de; Fri, 09 Oct 2020 08:05:21 +0200 Received: by mail-vs1-xe32.google.com with SMTP id g11so4365589vsp.13 for ; Thu, 08 Oct 2020 23:05:19 -0700 (PDT) MIME-Version: 1.0 References: <20200929131342.zyg5hgc6gj2znubn@pengutronix.de> <20201007071807.GP11021@pengutronix.de> In-Reply-To: <20201007071807.GP11021@pengutronix.de> From: =?UTF-8?Q?Alejandro_V=C3=A1zquez?= Date: Fri, 9 Oct 2020 08:04:57 +0200 Message-ID: Subject: Re: [ptxdist] custom FIT image List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0158378969==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0158378969== Content-Type: multipart/alternative; boundary="0000000000000d60e405b136bb13" --0000000000000d60e405b136bb13 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! That was just what I needed. El mi=C3=A9., 7 oct. 2020 a las 9:18, Michael Olbrich () escribi=C3=B3: > On Wed, Sep 30, 2020 at 12:41:13PM +0200, Alejandro V=C3=A1zquez wrote: > > El mar., 29 sept. 2020 a las 15:13, Roland Hieber (= ) > > escribi=C3=B3: > > > > > On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro V=C3=A1zquez wrot= e: > > > > Hi all! > > > > I need to create a FIT image kernel and I need to add the arguments= : > > > load > > > > and entry. > > > > These arguments are not defined in the script ptxd_make_fit_image.s= h > > > > > > > > Is there a way to indicate these arguments? > > > > Can I use a custom "its" file? > > > > Can I modify the script locally in my BSP? > > > > > > You can overwrite the functions by placing their new definition in a > > > script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist > > > sources all files in there automatically after the scripts in PTXdist > > > itself. > > > > > > > > Thanks! work! > > > > Now, I would like to put the arguments load and entry as customizable > > parameters in kernel-fit.in > > Ex: > > config KERNEL_FIT_LOAD > > string > > default "0xABC12340" > > prompt "Load address" > > > > I tried to get the value in the script (ptxd_make_fit_image.sh) but it > > doesn't work. > > Ex: > > load =3D "${PTXCONF_KERNEL_FIT_LOAD}"; > > > > Would it be possible to access these variables from the script? > > load=3D"$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)" > > Michael > > > -- > Pengutronix e.K. | = | > Steuerwalder Str. 21 | http://www.pengutronix.de/ = | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 = | > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to > ptxdist-request@pengutronix.de > --0000000000000d60e405b136bb13 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks!
That was just what I needed.

El mi=C3=A9., 7 oct. 2020 a las 9:18, Michael Olbrich (<m.olbrich@pengutronix.de>) escr= ibi=C3=B3:
On We= d, Sep 30, 2020 at 12:41:13PM +0200, Alejandro V=C3=A1zquez wrote:
> El mar., 29 sept. 2020 a las 15:13, Roland Hieber (<rhi@pengutronix.de>)
> escribi=C3=B3:
>
> > On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro V=C3=A1zquez = wrote:
> > > Hi all!
> > > I need to create a FIT image kernel and I need to add the ar= guments:
> > load
> > > and entry.
> > > These arguments are not defined in the script ptxd_make_fit_= image.sh
> > >
> > > Is there a way to indicate these arguments?
> > > Can I use a custom "its" file?
> > > Can I modify the script locally in my BSP?
> >
> > You can overwrite the functions by placing their new definition i= n a
> > script (name doesn't matter) in scripts/lib/ in your BSP. PTX= dist
> > sources all files in there automatically after the scripts in PTX= dist
> > itself.
> >
> >
> Thanks! work!
>
> Now, I would like to put the arguments load and entry as customizable<= br> > parameters in kernel-fit.in
> Ex:
> config KERNEL_FIT_LOAD
> string
> default "0xABC12340"
> prompt "Load address"
>
> I tried to get the value in the script (ptxd_make_fit_image.sh) but it=
> doesn't work.
> Ex:
> load =3D "${PTXCONF_KERNEL_FIT_LOAD}";
>
> Would it be possible to access these variables from the script?

load=3D"$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)"

Michael


--
Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
Steuerwalder Str. 21=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0| http://www.pengutronix.de/=C2=A0 |
31137 Hildesheim, Germany=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 | Phone: +49-5121-206917-0=C2=A0 =C2=A0 |
Amtsgericht Hildesheim, HRA 2686=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = Fax:=C2=A0 =C2=A0+49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutr= onix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-reques= t@pengutronix.de
--0000000000000d60e405b136bb13-- --===============0158378969== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de --===============0158378969==--