[Buildroot] [PATCH 1/3] imx-mkimage: new package

Gary Bisson gary.bisson at boundarydevices.com
Mon Feb 19 16:44:06 UTC 2018


Hi Thomas, Erik,

On Sun, Feb 18, 2018 at 03:51:00PM +0100, Thomas Petazzoni wrote:
> Hello,
> 
> Thanks for this contribution!
> 
> On Sun, 18 Feb 2018 14:28:29 +0100, Erik Larsson wrote:
> > Signed-off-by: Erik Larsson <karl.erik.larsson at gmail.com>
> > ---
> >  package/Config.in.host                             |  1 +
> >  .../0001-make-bl33-read-env-variables.patch        | 37 ++++++++++++++++++++++
> >  package/freescale-imx/imx-mkimage/Config.in.host   |  5 +++
> >  package/freescale-imx/imx-mkimage/imx-mkimage.hash |  3 ++
> >  package/freescale-imx/imx-mkimage/imx-mkimage.mk   | 23 ++++++++++++++
> >  5 files changed, 69 insertions(+)
> >  create mode 100644 package/freescale-imx/imx-mkimage/0001-make-bl33-read-env-variables.patch
> >  create mode 100644 package/freescale-imx/imx-mkimage/Config.in.host
> >  create mode 100644 package/freescale-imx/imx-mkimage/imx-mkimage.hash
> >  create mode 100644 package/freescale-imx/imx-mkimage/imx-mkimage.mk
> > 
> > diff --git a/package/Config.in.host b/package/Config.in.host
> > index 199a8e9..b1cfa75 100644
> > --- a/package/Config.in.host
> > +++ b/package/Config.in.host
> > @@ -15,6 +15,7 @@ menu "Host utilities"
> >  	source "package/e2fsprogs/Config.in.host"
> >  	source "package/e2tools/Config.in.host"
> >  	source "package/faketime/Config.in.host"
> > +	source "package/freescale-imx/imx-mkimage/Config.in.host"
> 
> I'm not sure this package needs to be under package/freescale-imx/.
> This sub-directory was initially created to share the
> FREESCALE_IMX_SITE and FREESCALE_IMX_EXTRACT_HELPER definitions, but
> you don't use them.

Actually there are plenty of packages in that folder that don't need the
extract helper nor the site address. Would you like those moved out of
it? (imx-kobs, imx-uuc, imx-vpuwrap etc..).

As a user I find it convenient to have it all in one place but I'd
understand moving them around.

Another aspect of that folder is BR2_PACKAGE_FREESCALE_IMX_PLATFORM,
although it is accessible at other places, which has an effect on which
packages are available.

> > diff --git a/package/freescale-imx/imx-mkimage/0001-make-bl33-read-env-variables.patch b/package/freescale-imx/imx-mkimage/0001-make-bl33-read-env-variables.patch
> > new file mode 100644
> > index 0000000..490eb05
> > --- /dev/null
> > +++ b/package/freescale-imx/imx-mkimage/0001-make-bl33-read-env-variables.patch
> > @@ -0,0 +1,37 @@
> > +From 5ca549356ef889286c12b4d736d9026efafb8fff Mon Sep 17 00:00:00 2001
> > +From: Erik Larsson <erik.larsson at combitech.se>
> > +Date: Mon, 29 Jan 2018 08:00:57 +0100
> > +Subject: [PATCH] Add support for overriding BL32 and BL33 not only BL31
> > +
> > +Signed-off-by: Erik Larsson <karl.erik.larsson at gmail.com>
> > +Signed-off-by: Christopher Dahlberg <crille.dahlberg at gmail.com>
> > +Signed-off-by: Marcus Folkesson <marcus.folkesson at gmail.com>
> 
> What is the upstream status of this patch ?
> 
> > diff --git a/package/freescale-imx/imx-mkimage/Config.in.host b/package/freescale-imx/imx-mkimage/Config.in.host
> > new file mode 100644
> > index 0000000..3cf0966
> > --- /dev/null
> > +++ b/package/freescale-imx/imx-mkimage/Config.in.host
> > @@ -0,0 +1,5 @@
> > +config BR2_PACKAGE_HOST_IMX_MKIMAGE
> > +	bool "host imx-mkimage"
> > +	help
> > +	  imx-mkimage is used to combine input images and generate
> > +	  final boot image with appropriate IVT set.
> 
> We like to have a blank line, and then the URL of the upstream project
> main page. Here, https://source.codeaurora.org/external/imx/imx-mkimage
> might be enough, unless there is a better page.
> 
> > diff --git a/package/freescale-imx/imx-mkimage/imx-mkimage.mk b/package/freescale-imx/imx-mkimage/imx-mkimage.mk
> > new file mode 100644
> > index 0000000..a5b1f93
> > --- /dev/null
> > +++ b/package/freescale-imx/imx-mkimage/imx-mkimage.mk
> > @@ -0,0 +1,23 @@
> > +################################################################################
> > +#
> > +# imx-mkimage
> > +#
> > +################################################################################
> > +
> > +IMX_MKIMAGE_VERSION = imx_4.9.51_imx8m_beta
> > +IMX_MKIMAGE_SITE = https://source.codeaurora.org/external/imx/imx-mkimage
> > +IMX_MKIMAGE_SITE_METHOD = git
> > +IMX_MKIMAGE_LICENSE = GPL-2.0
> > +IMX_MKIMAGE_LICENSE_FILES = iMX8dv/COPYING
> > +
> > +define HOST_IMX_MKIMAGE_BUILD_CMDS
> > +	$(MAKE) -C $(@D)/iMX8M -f soc.mak mkimage_imx8
> 
> Why are you building just the tool in iMX8M ? There is also one in src/
> and in iMX8dv. What are the differences ? Should we build/install all
> of them ? Conditionally ?

That is where new BR2_PACKAGE_FREESCALE_IMX_PLATFORM values would be
needed to separate iMX8M, iMX8QM and iMX8QX.

As a FYI, iMX8dv was some sort of development version of i.MX8, this
will not be supported moving forward, only the 3 families listed above.

Regards,
Gary


More information about the buildroot mailing list