Go to file
Otavio Salvador 30f5ce1d21 Generalize overrides subsystem for NXP and Mainline support
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 <otavio@ossystems.com.br>
2022-02-21 20:06:28 -03:00
.github/workflows cicd: backport: Fix events allowing the workflow to run 2021-08-09 10:15:38 -03:00
classes Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
conf Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
custom-licenses add NXP-Binary-EULA licenses 2018-02-28 13:30:14 -03:00
dynamic-layers Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-bsp Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-connectivity/iproute2 openssl-qoriq: remove bbappend and patches 2021-10-21 23:54:40 +08:00
recipes-core layer: Convert to new override syntax 2021-08-12 10:08:24 -07:00
recipes-devtools Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-dpaa recipes: use https protocol and add explicit branch parameter 2021-11-03 22:27:01 +01:00
recipes-dpaa2 recipes: use https protocol and add explicit branch parameter 2021-11-03 22:27:01 +01:00
recipes-extended Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-fsl Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-graphics Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-kernel Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-multimedia Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-security Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
recipes-support/opencv Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
SCR EULA,SCR: Update for NXP release 5.10.72-2.2.0 2022-01-07 11:48:33 -06:00
scripts wic: Move all wks files to root layer directory 2017-09-29 16:27:02 -03:00
wic imx-boot-container: align with u-boot 2022.01 2022-01-18 12:59:16 +00:00
.gitignore .gitignore: add more patterns 2020-04-11 15:34:12 -03:00
COPYING.MIT license: clarify the licensing for the project's metadata 2019-01-10 10:59:06 -02:00
EULA EULA,SCR: Update for NXP release 5.10.72-2.2.0 2022-01-07 11:48:33 -06:00
LICENSE license: clarify the licensing for the project's metadata 2019-01-10 10:59:06 -02:00
README readme: update mailing list url 2019-12-19 20:45:54 -03:00

OpenEmbedded/Yocto BSP layer for Freescale's platforms

This layer provides support for Freescale's platforms for use with OpenEmbedded and/or Yocto.

This layer depends on:

URI: git://git.openembedded.org/openembedded-core branch: master revision: HEAD

Contributing

Please submit any patches against the meta-freescale layer by using the GitHub pull-request feature. Fork the repo, make a branch, do the work, rebase from upstream, create the pull request.

For some useful guidelines to be followed when submitting patches, please refer to: http://openembedded.org/wiki/Commit_Patch_Message_Guidelines

Pull requests will be discussed within the GitHub pull-request infrastructure. If you want to get informed on new PRs and the follow-up discussions please use the GitHub's notification system.

Mailing list:

https://lists.yoctoproject.org/g/meta-freescale

Source code:

https://github.com/Freescale/meta-freescale