<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-freescale.git/classes/mfgtool-initramfs-image.bbclass, branch topic/better-nip-support</title>
<subtitle>Mirror of github.com/Freescale/meta-freescale</subtitle>
<id>https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=topic%2Fbetter-nip-support</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=topic%2Fbetter-nip-support'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/'/>
<updated>2022-02-21T23:06:28+00:00</updated>
<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>
<entry>
<title>mfgtool-initramfs-image.bbclass: Fix parsing when using a barebox based machine</title>
<updated>2016-04-19T18:06:34+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2016-04-14T19:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=6bd357c1b38555cd7011434a28df66effe30b74e'/>
<id>urn:sha1:6bd357c1b38555cd7011434a28df66effe30b74e</id>
<content type='text'>
When building for cfa100xx machines, for meta-fsl-arm-extra, the
parsing is aborted with:

,----
| ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry
|     'barebox.mxsboot-sdcard' - possibly invalid type name or missing
|     support class
| ERROR: Failed to parse recipe:
|     .../sources/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb
`----

This error was caused by the image not providing all the filesystem
types as in fact it generates a Gzipped CPIO filesystem and does not
inherit the default ones.

To solve the error we ought to include the override for 'mxs' SoC
family so the right setting is used as well in this set of SoCs.

Change-Id: If6e657793ed7af07decac217f6b3371fad1f521c
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>mfgtool-initramfs-image.bbclass: Add f2fs feature option</title>
<updated>2015-07-29T02:26:59+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2015-07-27T18:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=31ac693433d4b894552337d28c20563d0381d778'/>
<id>urn:sha1:31ac693433d4b894552337d28c20563d0381d778</id>
<content type='text'>
The f2fs feature allows the use of Flash-Friendly File System
during the installation.

The feature is disabled by default as the f2fs-tools is offered by
meta-filesystem layer which shouldn't be made as a hard dependency
of meta-fsl-arm.

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>Move meta-fsl-arm content to layer root</title>
<updated>2015-07-16T18:01:29+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2015-07-15T20:14:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=f8517afc7a5ada4538b3b7d397fa32586d57ffe5'/>
<id>urn:sha1:f8517afc7a5ada4538b3b7d397fa32586d57ffe5</id>
<content type='text'>
The meta-fsl-arm is going to be used as the base for this layer. It
contains a clean history and allowing a more granullar set of changes.

This commit is just a rename of all contents of meta-fsl-arm
subdirectory to this layer's root, subsequent changes are based on top
of that.

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