From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 References: <20200929131342.zyg5hgc6gj2znubn@pengutronix.de> In-Reply-To: <20200929131342.zyg5hgc6gj2znubn@pengutronix.de> From: =?UTF-8?Q?Alejandro_V=C3=A1zquez?= Date: Wed, 30 Sep 2020 12:41:13 +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="===============1813215307==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: Roland Hieber Cc: ptxdist@pengutronix.de --===============1813215307== Content-Type: multipart/alternative; boundary="00000000000086926e05b0858a5c" --00000000000086926e05b0858a5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote: > > 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.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 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? - Roland > > -- > Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | > Steuerwalder Str. 21 | https://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > --00000000000086926e05b0858a5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
El mar., 29 sept. 2020 a las 15:13, R= oland Hieber (<r= hi@pengutronix.de>) escribi=C3=B3:
On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejand= ro V=C3=A1zquez wrote:
> Hi all!
> I need to create a FIT image kernel and I need to add the arguments:= =C2=A0 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 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.

=C2=A0
Thanks! work!
<= br>
Now, I would like to put the arguments load and entry as cust= omizable parameters in kernel-fit.in
Ex:
config KERNEL_FIT_LOAD
= string
default "0xABC12340"
prompt "Load address&quo= t;


I tr= ied to get the value in the=C2=A0script (ptxd_make_fit_image.sh) but it doe= sn't work.
Ex:
load =3D "${PTXCONF_KERNEL_FIT_= LOAD}";

Would it be possible to access th= ese variables from the script?

=C2=A0- Roland

--
Roland Hieber, Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | r.hieber@pengutronix.= de=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| https://www.pengutronix.de/ |
31137 Hildesheim, Germany=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| Fax:=C2= =A0 =C2=A0+49-5121-206917-5555 |
--00000000000086926e05b0858a5c-- --===============1813215307== 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 --===============1813215307==--