<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-freescale.git/classes/mfgtool-initramfs-image.bbclass, branch oelint-cleanup-5-recipe-metadata</title>
<subtitle>Mirror of github.com/Freescale/meta-freescale</subtitle>
<id>https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=oelint-cleanup-5-recipe-metadata</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=oelint-cleanup-5-recipe-metadata'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/'/>
<updated>2026-07-12T07:54:14+00:00</updated>
<entry>
<title>global: Drop needless whitespace in assignments</title>
<updated>2026-07-12T07:54:14+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2026-07-12T07:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=96b4f44279d022af8930f01d4a09c12df0be07e4'/>
<id>urn:sha1:96b4f44279d022af8930f01d4a09c12df0be07e4</id>
<content type='text'>
Remove the stray space between an assignment's opening quote and its
line-continuation backslash, and the space before '%' in inline
${@...} expressions. Generated mechanically by oelint-adv's auto-fix
for a single rule (oelint.vars.notneededspace), isolated to one commit.

The affected values are whitespace-separated lists (leading space is
insignificant) and Python format expressions ("%s"% p is equivalent),
so there is no functional change; a re-run of oelint-adv reports the
rule clean.

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>mfgtool-initramfs-image: IMAGE_NAME_SUFFIX should by empty for initramfs</title>
<updated>2023-07-05T17:06:25+00:00</updated>
<author>
<name>Jose Quaresma</name>
<email>jose.quaresma@foundries.io</email>
</author>
<published>2023-07-05T17:06:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=0e66dee54af04b182326e5d39328301470f93737'/>
<id>urn:sha1:0e66dee54af04b182326e5d39328301470f93737</id>
<content type='text'>
INITRAMFS_IMAGE_NAME stay as before but it assumes that all
images used as initramfs will set IMAGE_NAME_SUFFIX to empty.

https://git.yoctoproject.org/poky/commit/?id=6f6c79029bc2020907295858449c725952d560a1

Signed-off-by: Jose Quaresma &lt;jose.quaresma@foundries.io&gt;
</content>
</entry>
<entry>
<title>classes/mfgtool-initramfs-image: remove u-boot-mfgtool dependency</title>
<updated>2023-04-12T20:12:18+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2023-03-22T19:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=2db70b26e50beab4b6b05507992f410704fae0d9'/>
<id>urn:sha1:2db70b26e50beab4b6b05507992f410704fae0d9</id>
<content type='text'>
The initramfs image doesn't use the U-Boot binaries so there is no
reason for a dependency on it.

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>mfgtool-initramfs-image: Fix override of IMAGE_FSTYPES</title>
<updated>2022-06-15T17:38:04+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2022-06-15T16:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=cca3a8a7a603d7dbf91fb3ceaa67168725888136'/>
<id>urn:sha1:cca3a8a7a603d7dbf91fb3ceaa67168725888136</id>
<content type='text'>
The fix to allow the user to override the IMAGE_FSTYPES setting for
mfgtool-initramfs-image [1] does break the default behavior by turning
the setting into a no-op:

```
# $IMAGE_FSTYPES [6 operations]
#   set? /.../sources/meta-freescale/conf/machine/include/imx-base.inc:463
#     "${SOC_DEFAULT_IMAGE_FSTYPES}"
#   set /.../sources/poky/meta/conf/documentation.conf:214
#     [doc] "Formats of root filesystem images that you want to have created."
#   set? /.../sources/poky/meta/conf/bitbake.conf:832
#     "tar.gz"
#   set? /.../sources/meta-freescale/classes/mfgtool-initramfs-image.bbclass:16
#     "cpio.zst.u-boot"
#   override[mxs-generic-bsp]:set? /.../sources/meta-freescale/classes/mfgtool-initramfs-image.bbclass:17
#     "cpio.gz.u-boot"
# pre-expansion value:
#     "${SOC_DEFAULT_IMAGE_FSTYPES}"
IMAGE_FSTYPES="wic.bmap wic.gz"
```

The layer uses an extra variable SOC_DEFAULT_IMAGE_FSTYPES to override
IMAGE_FSTYPES [2], so use it here.

[1] 0a29050 classes: IMAGE_FSTYPES as weak variable in mfgtool-initramfs-image
[2] 541b8b8 imx-base.inc: Move IMAGE_FSTYPES override to a SoC variable

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>classes: IMAGE_FSTYPES as weak variable in mfgtool-initramfs-image</title>
<updated>2022-06-10T01:42:37+00:00</updated>
<author>
<name>Walter Bonetti</name>
<email>bonettiw@amotus.ca</email>
</author>
<published>2022-06-09T03:15:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=0a29050d8b9fbe895bb4ca98ff8b5daab27441d9'/>
<id>urn:sha1:0a29050d8b9fbe895bb4ca98ff8b5daab27441d9</id>
<content type='text'>
With `IMAGE_FSTYPES` weak variable, we are able to use `cpio.gz` and
generate fsl-image-mfgtool-initramfs as KERNEL_IMAGETYPES = "fitImage".
This weak variable allows use to choose a suitable values for IMAGE_FSTYPES.
(see from poky: image_types.bbclass)
</content>
</entry>
<entry>
<title>mfgtool-initramfs-image: Switch to zstd compression</title>
<updated>2022-03-22T22:05:12+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2022-03-22T18:06:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=69fd1cee1962459464e3e06f627c7eab520d1249'/>
<id>urn:sha1:69fd1cee1962459464e3e06f627c7eab520d1249</id>
<content type='text'>
The initramfs memory size is limited, so use zstd compression level 10
to cut the cpio archive size by some 30%.

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>Generalize overrides subsystem for NXP and Mainline support</title>
<updated>2022-02-21T23:06:28+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2022-02-18T22:43:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=30f5ce1d2168389295b4813e01898c2fb0f9bab9'/>
<id>urn:sha1:30f5ce1d2168389295b4813e01898c2fb0f9bab9</id>
<content type='text'>
Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and
mainline-bsp.

So, for example, the mx8mq override is split into:

- imx-generic-bsp: compatible with every i.MX SoC and both BSP variants
- imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP
- imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP

- mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants
- mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP
- mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP

- mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants
- mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP
- mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP

- mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants
- mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP
- mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP

The extender mechanism is responsible for extending the override list to
include the generic overrides. We can then use the three different
variants to handle the metadata correctly.

Generically speaking, the conversion mainly was automated (with a lot of
back and forth until getting it right).

To convert an existing layer, the following script can be used:

```sh
  git ls-files classes recipes-* \
      | xargs sed -i \
              -e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \
              -e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \
              -e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \
              -e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \
              \
              -e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \
              -e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \
              -e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(vf\w*\),:\1-generic-bsp,g' \
              -e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \
              -e 's,\(vf\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf\w*\)),|\1-generic-bsp),g' \
              -e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(imx\) ,:\1-nxp-bsp ,g' \
              -e 's,(\(imx\)),(\1-nxp-bsp),g' \
              -e 's,\(imx\)|,\1-nxp-bsp|,g' \
              -e 's,|\(imx\)),|\1-nxp-bsp),g'

  for d in $(find -type d | egrep '/mx[6-8]w*'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/imx$'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/mx[5s]w*'); do
      git mv $d $d-generic-bsp
  done
```

Fixes: #791.
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>layer: Convert to new override syntax</title>
<updated>2021-08-12T17:08:24+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-08-02T18:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=59d36c9832702989bfcca8a5af29fb2dff01efcc'/>
<id>urn:sha1:59d36c9832702989bfcca8a5af29fb2dff01efcc</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>Stop using image_types_uboot class</title>
<updated>2017-07-31T18:51:45+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2017-07-31T18:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=54544ad1ff48274463977b14c7872872d770ce33'/>
<id>urn:sha1:54544ad1ff48274463977b14c7872872d770ce33</id>
<content type='text'>
OE-Core now uses the CONVERSION TYPES to implement the U-Boot support
so the class has been removed. This commit removes the code which
inherits it so allowing it to keep working with the new code base.

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>mfgtool-initramfs-image.bbclass: do not overwrite IMAGE_CLASSES</title>
<updated>2017-01-16T18:26:45+00:00</updated>
<author>
<name>Mirza Krak</name>
<email>mirza.krak@gmail.com</email>
</author>
<published>2017-01-13T23:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=4d18c54ff86994345d80bae37ea3539a65bb2be0'/>
<id>urn:sha1:4d18c54ff86994345d80bae37ea3539a65bb2be0</id>
<content type='text'>
Use the += operator instead to add image_types_uboot to IMAGE_CLASSES
which will correctly append that image type.

Signed-off-by: Mirza Krak &lt;mirza.krak@gmail.com&gt;
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
</feed>
