Commit Graph

24 Commits

Author SHA1 Message Date
Otavio Salvador
6fb8816cb3 treewide: Remove all references to SRC_URI[md5sum] hashes
Drop md5sum check as  no longer mandated in Yocto Project.

SRC_URI[md5sum] used to also be commonly used, but it is deprecated and
should be replaced by SRC_URI[sha256sum] when updating existing recipes. See:

 - https://docs.yoctoproject.org/dev/singleindex.html#fetching-code
 - https://docs.yoctoproject.org/dev/singleindex.html#src-uri-checksum-behaviour

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2025-01-13 17:06:35 -03:00
Tom Hochstein
cf3f1a6c6e imx-vpu: Drop RPROVIDES of virtual/imxvpu
It serves no purpose and generates a warning:
```
WARNING: meta-freescale/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb: QA Issue: RPROVIDES is set to virtual/imxvpu but the substring 'virtual/' holds no meaning in this context. It only works for build time dependencies, not runtime ones. It is suggested to use 'VIRTUAL-RUNTIME_' variables instead. [virtual-slash]
```

Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com>
2024-04-24 16:17:06 -07:00
Tom Hochstein
369a5b8d2b imx-vpu: Move Chips&Media comment into DESCRIPTION
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-09-01 12:32:40 -05:00
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
Khem Raj
59d36c9832 layer: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 10:08:24 -07:00
Andrey Zhizhikin
f71c885412 imx-vpu: upgrade to version 5.4.39.3
Following commits are added in this release (including command):
$ git log --oneline --no-decorate 3e47ffe..d8f988d
d8f988d MA-14108 Remove ION_FLAG_CACHED flag for cnm vpu buffer

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Cc: Tom Hochstein <tom.hochstein@nxp.com>
2020-08-26 19:29:28 -03:00
Yuqing Zhu
76a795d636 imx-vpu: Upgrade to 5.4.39.2
Use different name for dpu, pxp, opencl and viv g2d lib

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
2020-04-20 16:17:28 -03:00
Cristinel Panfir
36e5b2fac8 imx-vpu: Upgrade to 5.4.39.1
- Bring imx6/7 soc on q-preview (LOCAL_MODULE_TAGS)
- Add ION_FLAG_CACHED when buffer need CPU access

Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
2019-12-16 11:28:41 -03:00
Max Krummenacher
6aa6eeb773 layer: replace ${PN} with ${BPN} in SRC_URI
This prevents a number warnings like the following:
| imx-sc-firmware-1.2-r0 do_package_qa: QA Issue: imx-sc-firmware: SRC_URI uses PN not BPN [src-uri-bad]

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-09-14 13:58:15 -03:00
Otavio Salvador
bc937ade56 classes/use-imx-headers: Easy linux-imx-headers use
This allow to easy reuse of binary packages among similar SoCs. The
usual use for this is to share SoC specific packages among different
boards independently of the kernel version it is using, as far it is
ABI compatible with the official version it will just work.

Following recipes has been reworked to make use of the class:

 - imx-lib
 - imx-test
 - imx-vpu-hantro
 - imx-vpu
 - imx-alsa-plugins
 - gstreamer1.0-plugins-base
 - gstreamer1.0-plugins-imx
 - imx-gst1.0-plugin

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-10-26 14:23:37 -03:00
Otavio Salvador
8171cf7d0e imx-vpu: Use linux-imx-headers
This reworks make use of linux-imx-headers and set it as SoC arch
compatible.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-26 14:23:37 -03:00
Tom Hochstein
d607c7a5ad imx-vpu: Clarify compatibility for Chips&Media VPU
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-08-30 21:57:09 -03:00
Fabio Berton
1594c64aa5 imx-vpu: Update to version 5.4.38
- Update license checksum to match EULA v22 April 2018.
  - Remove .inc file to use only one .bb file
  - Update O.S. Systems Software Copyright

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2018-06-26 14:16:13 -03:00
Otavio Salvador
273d1bda16 imx-vpu: Avoid setting RPROVIDES
The runtime provides does need to be changed as it is going to be
handled by the shlib symbol handling during the package
generation. This fixes the package generation of libvpu4 which were
causing rootfs generation errors when using Debian packages.

Reported-by: Daiane Angolini <daiane.angolini@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-03 18:02:07 -02:00
Jun Zhu
b33b15e133 imx-vpu: Upgrade to v5.4.37
- Add virtual/imxvpu provides for the future VPUs on other SoC.
- Integrate the bug fixes.

Signed-off-by: Jun Zhu <junzhu@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-16 14:27:29 -02:00
Lauren Post
b138b5b056 imx-vpu: Upgrade to 5.4.35
Coverity fixes for resources leaks, null deeference, string overflows and checking return

Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18 16:26:14 -02:00
Otavio Salvador
a2d0c59490 imx-vpu: Set PACKAGE_ARCH to MACHINE_ARCH
The imx-vpu is a machine specific package, as it depends on the kernel
for build. We are going to change the PACKAGE_ARCH of it to be
MACHINE_SOCARCH as the interface provided by it is stable thus not
requring that the library users to be rebuild.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-06-02 15:21:04 -03:00
Lauren Post
cb003490c7 imx-vpu: Upgrade to 5.4.33 version
VPU firmware has been changed to the format of Linux codec driver firmware.
Change VPU library to adapt to firmware format change.

Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-19 15:06:34 -03:00
Lauren Post
4155fe2fdb EULA: Update to LA_OPT_BASE_LICENSE v10 November 2015
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-19 15:03:26 -03:00
Lauren Post
243b178d74 imx-vpu: Upgrade to 5.4.32
- Support AVcVuiInfo for Decoder through DecInitialInfo or DecOutputInfo
- Clear structure iram IOGetIramBase() fails to set them to avoid
using uninitialized variables.

Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-19 15:03:25 -03:00
Otavio Salvador
d5e730317a Drop Freescale official Linux kernel for i.MX23, i.MX28 and i.MX5 SoC families
The Linux kernel provided by Freescale for i.MX28 and i.MX5 is too old
(2.6.35.3) and there are no plans to upgrade it, as the OE-Core is
going to use GCC 5.2 as default compiler soon and it is not possible
to compile this kernel with the new toolchain, thus the removal.

The metadata related to the i.MX23, i.MX28 and i.MX5 SoC family, which
is dependant of this Linux kernel support, has been removed in this
commit so if someone ever wants to bring it back it is easy to find
out all the necessary changes. The recipes affected are:

 - alsa-state
 - amd-gpu-x11-bin
 - gtk+3
 - imx-lib
 - imx-test
 - imx-vpu
 - libfslcodec
 - linux-imx
 - mesa
 - qt4-embedded-free
 - qt4-x11-free
 - qtbase
 - xf86-video-imxfb

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Daiane Angolini <daiane.angolini@freescale.com>
2016-04-19 15:03:14 -03:00
Lauren Post
686e3e421f imx-vpu: Upgrade to 5.4.31 version
- Fix VPU blocked in BWB module.
- Adding new soc name for i.MX6QP

Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-19 15:03:14 -03:00
Lauren Post
67305c820b imx-vpu: Upgrade to 5.4.30 version
Released with 3.14.38-6QP_Beta release.

Fixes for no output after decoding small jpg in ring buffer mode

License updated to 2015.06 v8 so updated License checksum.

Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-28 23:26:59 -03:00
Otavio Salvador
f8517afc7a Move meta-fsl-arm content to layer root
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 <otavio@ossystems.com.br>
2015-07-16 15:01:29 -03:00