]> code.ossystems Code Review - meta-freescale.git/log
meta-freescale.git
3 years agoMerge pull request #1003 from chrisdimich/master
Otavio Salvador [Wed, 9 Mar 2022 00:06:55 +0000 (21:06 -0300)]
Merge pull request #1003 from chrisdimich/master

isp-imx: start_isp.sh: fix NR_DEVICE_TREE_BASLER variable

3 years agoisp-imx: start_isp.sh: fix NR_DEVICE_TREE_BASLER variable 1003/head
Chris Dimich [Tue, 8 Mar 2022 22:46:51 +0000 (14:46 -0800)]
isp-imx: start_isp.sh: fix NR_DEVICE_TREE_BASLER variable

The NR_DEVICE_TREE_BASLER variable has the wrong path.

3 years agoMerge pull request #1000 from zandrey/topic/cleanup-atf-address-variable
Otavio Salvador [Mon, 7 Mar 2022 17:17:57 +0000 (14:17 -0300)]
Merge pull request #1000 from zandrey/topic/cleanup-atf-address-variable

Clean-up obsolete ATF load address for i.MX8M machines

3 years agoMerge pull request #999 from twoerner/contrib/twoerner/imxbase-mxs
Otavio Salvador [Mon, 7 Mar 2022 17:12:25 +0000 (14:12 -0300)]
Merge pull request #999 from twoerner/contrib/twoerner/imxbase-mxs

imx-base.inc: add back mxs/mx23 support

3 years agoimx-base.inc: add back mx23 support 999/head
Trevor Woerner [Mon, 7 Mar 2022 15:23:04 +0000 (10:23 -0500)]
imx-base.inc: add back mx23 support

When include/imx-base.inc was simplified to use the imx-{mainline,nxp}-bsp
overrides, the "mx23" category of machines was missed.

Build tested with imx233-olinuxino-* and imx23evk.
Run tested with imx233-olinuxino-maxi.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
3 years agoconf: machine: imx8m*: clean-up obsolete ATF load address 1000/head
Andrey Zhizhikin [Mon, 7 Mar 2022 15:45:00 +0000 (15:45 +0000)]
conf: machine: imx8m*: clean-up obsolete ATF load address

Upstream U-Boot commit d9a6f0eed66a ("tree: imx: remove old fit
generator script") dropped the FIT generator script, which was using
environment variable setting the ATF load address into the FIT ITS file.
This has been replaced by binman node description, where ATF address is
defined, hence the enviroment variable is not required anymore.

Clean-up the layer's class and machine description to remove the
variable, which is not used anymore.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
3 years agoMerge pull request #998 from MaxKrummenacher/master
Otavio Salvador [Sun, 6 Mar 2022 16:12:16 +0000 (13:12 -0300)]
Merge pull request #998 from MaxKrummenacher/master

drop vivante specific x11 driver & opencv: follow oe-core's variable name changes

3 years agoopencv: follow oe-core's variable name changes 998/head
Max Krummenacher [Sun, 6 Mar 2022 09:47:39 +0000 (10:47 +0100)]
opencv: follow oe-core's variable name changes

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
3 years agoxf86-video-imx-vivante: drop vivante specific x11 driver
Max Krummenacher [Mon, 21 Feb 2022 13:53:57 +0000 (14:53 +0100)]
xf86-video-imx-vivante: drop vivante specific x11 driver

The required x11 driver stuff has been removed from imx-gpu-viv and
thus the X11 driver is no longer buildable.
Drop the recipe and fallback on the default X11 fb driver.

| ERROR: Nothing RPROVIDES 'libvivante-dri-imx' (but .../meta-freescale/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb RDEPENDS on or otherwise requires it)

Completes 747c96f5 ("imx-gpu-viv: Upgrade to 6.4.3.p2.4").

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
3 years agoMerge pull request #995 from zandrey/topic/clarify-obsole-license
Otavio Salvador [Thu, 3 Mar 2022 15:46:15 +0000 (12:46 -0300)]
Merge pull request #995 from zandrey/topic/clarify-obsole-license

Update LICENSE variable to use SPDX license identifiers

3 years agolayer: Update LICENSE variable to use SPDX license identifiers 995/head
Andrey Zhizhikin [Thu, 3 Mar 2022 15:34:00 +0000 (15:34 +0000)]
layer: Update LICENSE variable to use SPDX license identifiers

Since OE-Core commit 9379f80f48 ("license/insane: Show warning for
obsolete license usage"), LICENSE field not containing SPDX identifiers
are treated with WARNING.

An automated conversion using scripts/contrib/convert-spdx-licenses.py to
convert to use the standard SPDX license identifiers has been done on
the entire layer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
3 years agoMerge pull request #994 from Freescale/topic/warn-old-overrides
Otavio Salvador [Thu, 3 Mar 2022 14:07:56 +0000 (11:07 -0300)]
Merge pull request #994 from Freescale/topic/warn-old-overrides

Ensure we fail if old SoC overrides are in use

3 years agoEnsure we fail if old SoC overrides are in use topic/warn-old-overrides 994/head
Otavio Salvador [Wed, 2 Mar 2022 23:21:54 +0000 (20:21 -0300)]
Ensure we fail if old SoC overrides are in use

To assist existing layers to convert to the new BSP-specific
overrides. Besides failing the parsing of the recipes where it is in
use, we provide a script to automate most of it.

Fixes: #990.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoMerge pull request #993 from fabioestevam/master
Otavio Salvador [Wed, 2 Mar 2022 19:01:39 +0000 (16:01 -0300)]
Merge pull request #993 from fabioestevam/master

conf: imx7ulpevk: Remove unrelated imx7ulp-com.dtb entry

3 years agoconf: imx7ulpevk: Remove unrelated imx7ulp-com.dtb 993/head
Fabio Estevam [Wed, 2 Mar 2022 18:37:54 +0000 (15:37 -0300)]
conf: imx7ulpevk: Remove unrelated imx7ulp-com.dtb

The imx7ulp-com.dtb describes a completely different board: the Embedded
Artists i.MX7ULP COM board, which has no relationship with the NXP
i.MX7ULP EVK board.

Remove the imx7ulp-com.dtb entry.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
3 years agoMerge pull request #992 from thochstein/master
Otavio Salvador [Wed, 2 Mar 2022 16:06:48 +0000 (13:06 -0300)]
Merge pull request #992 from thochstein/master

dynamic-layers: Update SOC overrides

3 years agodynamic-layers: Update SOC overrides 992/head
Tom Hochstein [Wed, 2 Mar 2022 15:52:09 +0000 (09:52 -0600)]
dynamic-layers: Update SOC overrides

Fix dynamic layer overrides missed by the script.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoMerge pull request #986 from boundarydevices/master
Otavio Salvador [Fri, 25 Feb 2022 13:06:05 +0000 (10:06 -0300)]
Merge pull request #986 from boundarydevices/master

linux-imx-headers: whitelist version.h header (Fixes Hantro VPU for honister/master)

3 years agolinux-imx-headers: whitelist version.h header 986/head
Gary Bisson [Fri, 25 Feb 2022 10:37:42 +0000 (11:37 +0100)]
linux-imx-headers: whitelist version.h header

As some recipes, like imx-vpu-hantro, need to know the imx kernel
version instead of the toolchain header version.
As an example, Honister toolchain uses 5.14 kernel headers. In that
case, imx-vpu-hantro believes it needs to use dmabuf allocation
mechanism although this latter will only be enabled in upcoming NXP
kernel 5.15.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
3 years agoMerge pull request #985 from thochstein/optee
Otavio Salvador [Fri, 25 Feb 2022 00:45:56 +0000 (21:45 -0300)]
Merge pull request #985 from thochstein/optee

Optee: Upgrade 3.10.0.imx -> 3.15.0.imx

3 years agooptee-test: Add runtime dependency on optee-os 985/head
Tom Hochstein [Fri, 25 Feb 2022 00:08:37 +0000 (18:08 -0600)]
optee-test: Add runtime dependency on optee-os

The TAs in optee-os are required.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-client: Fix incorrect packaging logic
Tom Hochstein [Mon, 21 Feb 2022 19:04:46 +0000 (13:04 -0600)]
optee-client: Fix incorrect packaging logic

- The logic for the tee-supplicant package doesn't work and the package
ends up empty. In fact, tee-supplicant belongs in the main package anyway.
- The main package already contains ${libdir}, so drop the redundant
assignment.
- The headers belong in the -dev package, so drop them from the main.
- Drop the un-necessary INSANE_SKIP settings.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-*: For i.MX, require machine feature optee
Tom Hochstein [Wed, 16 Feb 2022 18:40:17 +0000 (12:40 -0600)]
optee-*: For i.MX, require machine feature optee

The optee software should be enabled by the machine feature. If the
machine feature is not there, but optee is built anyway, then something
is wrong and the build should fail.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-test: Use openssl embedded in optee-test
Tom Hochstein [Fri, 18 Feb 2022 23:07:08 +0000 (17:07 -0600)]
optee-test: Use openssl embedded in optee-test

Building against openssl from Yocto results in a build break:

```
| /opt/work/upstream/fsl-xwayland/tmp/work/cortexa53-crypto-fsl-linux/optee-test/3.15.0.imx-r0/git/host/xtest/regression_8100.c:133:17: error: 'ERR_get_error_line' is deprecated: Since OpeSL 3.0 [-Werror=deprecated-declarations]
|   133 |                 e = ERR_get_error_line(&f, &l);
|       |                 ^
| In file included from /opt/work/upstream/fsl-xwayland/tmp/work/cortexa53-crypto-fsl-linux/optee-test/3.15.0.imx-r0/git/host/xtest/regression_8100.c:18:
| /opt/work/upstream/fsl-xwayland/tmp/work/cortexa53-crypto-fsl-linux/optee-test/3.15.0.imx-r0/recipe-sysroot/usr/include/openssl/err.h:411:15: note: declared here
|   411 | unsigned long ERR_get_error_line(const char **file, int *line);
|       |               ^~~~~~~~~~~~~~~~~~
```

Configure optee-test to build with its own openssl.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-test: Add missing license GPL-2.0
Tom Hochstein [Fri, 18 Feb 2022 22:59:22 +0000 (16:59 -0600)]
optee-test: Add missing license GPL-2.0

As the license file states, the client applications (optee_test/host/*)
are provided under the GPL-2.0 license.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-test: Upgrade 3.10.0.imx -> 3.15.0.imx
Tom Hochstein [Wed, 16 Feb 2022 17:54:36 +0000 (11:54 -0600)]
optee-test: Upgrade 3.10.0.imx -> 3.15.0.imx

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-test: Cleanup install and FILES
Tom Hochstein [Fri, 18 Feb 2022 23:04:22 +0000 (17:04 -0600)]
optee-test: Cleanup install and FILES

- Use variables properly for the install and FILES
- Simplify the FILES update with an append

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-client: Upgrade 3.10.0.imx -> 3.15.0.imx
Tom Hochstein [Wed, 16 Feb 2022 17:54:14 +0000 (11:54 -0600)]
optee-client: Upgrade 3.10.0.imx -> 3.15.0.imx

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-os: Install embedded TAs
Tom Hochstein [Wed, 16 Feb 2022 19:01:04 +0000 (13:01 -0600)]
optee-os: Install embedded TAs

optee-os has some embedded TAs like AVB or PKCS11 that must be installed
in the filesystem.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-os: Use variable for includedir install
Tom Hochstein [Wed, 16 Feb 2022 18:46:36 +0000 (12:46 -0600)]
optee-os: Use variable for includedir install

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-os: Use tee-raw.bin binary
Tom Hochstein [Wed, 16 Feb 2022 18:38:52 +0000 (12:38 -0600)]
optee-os: Use tee-raw.bin binary

During the optee-os compilation, the gen_tee_bin.py script generates
a tee-raw.bin that is more space efficient and could replace
the tee.bin binary manually generated in the optee-os recipe
by objcpy.

This patch greatly reduces the size of tee.bin. On 64 bits platforms, we
observe a size descrease of ~68%, and on 32 bits platforms, a size
decrease of ~45%.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agooptee-os: Upgrade 3.10.0.imx -> 3.15.0.imx
Tom Hochstein [Wed, 16 Feb 2022 17:53:44 +0000 (11:53 -0600)]
optee-os: Upgrade 3.10.0.imx -> 3.15.0.imx

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoMerge pull request #984 from Freescale/topic/simplify-mx8x
Otavio Salvador [Thu, 24 Feb 2022 12:47:53 +0000 (09:47 -0300)]
Merge pull request #984 from Freescale/topic/simplify-mx8x

imx8x: The mx8x override is handled in extender so drop it

3 years agoimx8x: The mx8x override is handled in extender so drop it topic/simplify-mx8x 984/head
Otavio Salvador [Thu, 24 Feb 2022 12:19:40 +0000 (09:19 -0300)]
imx8x: The mx8x override is handled in extender so drop it

Refs: 9b9f9bb1 ("imx-base.inc: Add missing mx8x overrides")
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoMerge pull request #983 from thochstein/mx8x
Otavio Salvador [Thu, 24 Feb 2022 11:43:30 +0000 (08:43 -0300)]
Merge pull request #983 from thochstein/mx8x

imx-base.inc: Add missing mx8x overrides

3 years agoimx-base.inc: Add missing mx8x overrides 983/head
Tom Hochstein [Thu, 24 Feb 2022 00:55:59 +0000 (18:55 -0600)]
imx-base.inc: Add missing mx8x overrides

The i.MX 8QXP and 8DXL are in the 8X family, but the override was
missed in the new SOC override rework. This causes do_compile for
imx-boot to fail:

```
cp: cannot stat '/.../build/tmp/deploy/images/imx8qxpmek/imx8qm_m4_TCM_power_mode_switch_m40.bin': No such file or directory
```

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoMerge pull request #982 from Freescale/topic/better-nip-support
Otavio Salvador [Thu, 24 Feb 2022 00:58:12 +0000 (21:58 -0300)]
Merge pull request #982 from Freescale/topic/better-nip-support

imx-base.inc: Add support to include extra data for NIP devices

3 years agoimx-base.inc: Add support to include extra data for NIP devices topic/better-nip-support 982/head
Otavio Salvador [Wed, 23 Feb 2022 23:57:49 +0000 (20:57 -0300)]
imx-base.inc: Add support to include extra data for NIP devices

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoMerge pull request #980 from Freescale/topic/generalize-soc-overrides
Otavio Salvador [Wed, 23 Feb 2022 13:16:14 +0000 (10:16 -0300)]
Merge pull request #980 from Freescale/topic/generalize-soc-overrides

Generalize overrides subsystem for NXP and Mainline support

3 years agoMerge pull request #981 from YoeDistro/yoe/mut
Otavio Salvador [Tue, 22 Feb 2022 10:41:41 +0000 (07:41 -0300)]
Merge pull request #981 from YoeDistro/yoe/mut

layers: Bump to use kirkstone

3 years agolayers: Bump to use kirkstone 981/head
Khem Raj [Thu, 17 Feb 2022 20:44:39 +0000 (12:44 -0800)]
layers: Bump to use kirkstone

its not going to be backward ABI compatible with honister due to variable renaming.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 years agooptee-os: Use SoC override for i.MX6UL, i.MX6ULL and i.MX6ULZ topic/generalize-soc-overrides 980/head
Otavio Salvador [Mon, 21 Feb 2022 22:57:01 +0000 (19:57 -0300)]
optee-os: Use SoC override for i.MX6UL, i.MX6ULL and i.MX6ULZ

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoRework machine definitions to reduce duplication
Otavio Salvador [Mon, 21 Feb 2022 22:55:41 +0000 (19:55 -0300)]
Rework machine definitions to reduce duplication

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoimx-base.inc: reduce code using imx-{mainline,nxp}-bsp overrides
Otavio Salvador [Sun, 20 Feb 2022 20:51:14 +0000 (17:51 -0300)]
imx-base.inc: reduce code using imx-{mainline,nxp}-bsp overrides

We reduce the code size using the new overrides to improve code
clearness and reduce boilerplate.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoimx-gpu-viv: Remove comment code which was unused
Otavio Salvador [Sat, 19 Feb 2022 17:40:16 +0000 (14:40 -0300)]
imx-gpu-viv: Remove comment code which was unused

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoRework recipes to use imx-nxp-bsp more extensively
Otavio Salvador [Sat, 19 Feb 2022 01:47:37 +0000 (22:47 -0300)]
Rework recipes to use imx-nxp-bsp more extensively

This rework the recipes making use of new imx-nxp-bsp override; it
has been applied to:

 - gstreamer1.0
 - gstreamer1.0-plugins-bad
 - gstreamer1.0-plugins-base
 - gstreamer1.0-plugins-good
 - imx-alsa-plugins
 - imx-codec
 - imx-gst1.0-plugin
 - imx-parser
 - libdrm
 - libimxdmabuffer
 - linux-fslc-imx
 - linux-imx
 - optee-client
 - optee-test

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agou-boot-imx: Restrict recipe for i.MX6, i.MX7 and i.MX8
Otavio Salvador [Sat, 19 Feb 2022 01:40:51 +0000 (22:40 -0300)]
u-boot-imx: Restrict recipe for i.MX6, i.MX7 and i.MX8

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agou-boot-fslc-mxsboot: Restrict recipe for mxs-generic-bsp override
Otavio Salvador [Sat, 19 Feb 2022 01:24:23 +0000 (22:24 -0300)]
u-boot-fslc-mxsboot: Restrict recipe for mxs-generic-bsp override

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoimx-atf: Use mx8-generic-bsp as COMPATIBLE_MACHINE
Otavio Salvador [Sat, 19 Feb 2022 01:21:19 +0000 (22:21 -0300)]
imx-atf: Use mx8-generic-bsp as COMPATIBLE_MACHINE

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoimx-vpu-hantro: Mark PACKAGE_ARCH as MACHINE_SOCARCH
Otavio Salvador [Sat, 19 Feb 2022 01:09:34 +0000 (22:09 -0300)]
imx-vpu-hantro: Mark PACKAGE_ARCH as MACHINE_SOCARCH

The compilation vary depending on the target SoC we wish to use so we
must ensure it doesn't end in generic architecture feed.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoRework recipes to use imx-generic-bsp more extensively
Otavio Salvador [Sat, 19 Feb 2022 00:49:11 +0000 (21:49 -0300)]
Rework recipes to use imx-generic-bsp more extensively

This rework the recipes making use of new imx-generic-bsp override; it
has been applied to:

 - alsa-state
 - firmware-imx
 - imx-kobs
 - imx-test
 - imx-uuc
 - linux-fslc
 - linux-fslc-lts
 - packagegroup-fsl-mfgtool
 - u-boot-fslc
 - uuu

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agofirmware-imx-8m: Use mx8m-generic-bsp as COMPATIBLE_MACHINE
Otavio Salvador [Sat, 19 Feb 2022 00:46:18 +0000 (21:46 -0300)]
firmware-imx-8m: Use mx8m-generic-bsp as COMPATIBLE_MACHINE

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoGeneralize overrides subsystem for NXP and Mainline support
Otavio Salvador [Fri, 18 Feb 2022 22:43:56 +0000 (19:43 -0300)]
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>
3 years agoclasses/machine-overrides-extender: Postpone filter out
Otavio Salvador [Thu, 17 Feb 2022 21:36:55 +0000 (18:36 -0300)]
classes/machine-overrides-extender: Postpone filter out

The overrides ought to allow the filter out execution even for overrides
included during the extension, for this to work we need to postpone it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoclasses/machine-overrides-extender: Allow filter out without an override
Otavio Salvador [Thu, 17 Feb 2022 21:32:25 +0000 (18:32 -0300)]
classes/machine-overrides-extender: Allow filter out without an override

We should be able to use a single MACHINEOVERRIDES_EXTENDER_FILTER_OUT
definition, without an override, to reduce code duplication.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agokernel-module-imx-gpu-viv: 6.4.0.p2.4+fslc -> 6.4.3.p2.4+fslc
Otavio Salvador [Mon, 21 Feb 2022 22:10:29 +0000 (19:10 -0300)]
kernel-module-imx-gpu-viv: 6.4.0.p2.4+fslc -> 6.4.3.p2.4+fslc

This includes folowing versions updates:

410ce59 Import 6.4.3.p2.4 original version
e879a17 Import 6.4.3.p2.2 original version
ae0f3be gc_hal_kernel_platform_imx.config: remove build time/user macros
8f1bf96 Import 6.4.3.p2.0 original version
4d97bab Import 6.4.3.p1.2 original version
b0a9229 Import 6.4.3.p1.0 original version
b4bed32 Import 6.4.3.p0.0 original version

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 years agoMerge pull request #979 from zandrey/optee-fix-bsd-license
Otavio Salvador [Fri, 18 Feb 2022 11:36:18 +0000 (08:36 -0300)]
Merge pull request #979 from zandrey/optee-fix-bsd-license

optee-imx: clarify BSD license

3 years agooptee-imx: clarify BSD license 979/head
Andrey Zhizhikin [Fri, 18 Feb 2022 09:26:58 +0000 (09:26 +0000)]
optee-imx: clarify BSD license

Since upstream commit 14d4c007c4 ("common-licences: remove ambiguous
"BSD" license"), ambiguous "BSD" license has been removed from OE-Core.

This triggers the warning message in QA:
do_populate_lic_deploy: QA Issue: The license listed BSD was not in the
licenses collected for recipe optee-os [license-file-missing]

OP-TEE is licensed under "BSD-2-Clause" and license text clearly
identifies it.

Correct LICENSE variable to indicate proper License SPDX identifier.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
3 years agoMerge pull request #978 from YoeDistro/yoe/mut
Otavio Salvador [Sat, 12 Feb 2022 22:25:54 +0000 (19:25 -0300)]
Merge pull request #978 from YoeDistro/yoe/mut

imx-g2d-samples: Ping to imxgpu2d machines

3 years agoimx-g2d-samples: Ping to imxgpu2d machines 978/head
Khem Raj [Sat, 12 Feb 2022 22:09:39 +0000 (14:09 -0800)]
imx-g2d-samples: Ping to imxgpu2d machines

It depends on imx-gpu-g2d recipe which is specific to imxgpu2d machine
types

Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 years agoMerge pull request #976 from sean-anderson-seco/crconf
Otavio Salvador [Fri, 11 Feb 2022 21:01:29 +0000 (18:01 -0300)]
Merge pull request #976 from sean-anderson-seco/crconf

Fix building crconf with usrmerge

3 years agoMerge pull request #977 from thochstein/master
Otavio Salvador [Fri, 11 Feb 2022 20:59:49 +0000 (17:59 -0300)]
Merge pull request #977 from thochstein/master

weston-init: Set bindir properly in weston.ini

3 years agoweston-init: Set bindir properly in weston.ini 977/head
Tom Hochstein [Fri, 11 Feb 2022 19:43:47 +0000 (13:43 -0600)]
weston-init: Set bindir properly in weston.ini

The customized weston.ini is installed in the rootfs with an unresolved
bindir variable.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agocrconf: Don't set FILES 976/head
Sean Anderson [Fri, 11 Feb 2022 17:28:52 +0000 (12:28 -0500)]
crconf: Don't set FILES

Documentation should be installed in the documentation package, not the
main package. The latter two directories are already added to FILES by
meta/conf/bitbake.conf.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
3 years agocrconf: Set SBINDIR and MANDIR
Sean Anderson [Fri, 11 Feb 2022 17:26:37 +0000 (12:26 -0500)]
crconf: Set SBINDIR and MANDIR

The default values of these variables are not appropriate when using
usrmerge. This fixes the following error:

ERROR: crconf-git-r0 do_package: QA Issue: crconf: Files/directories were installed but not shipped in any package:
  /sbin/crconf
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
3 years agoMerge pull request #975 from thochstein/master
Otavio Salvador [Thu, 10 Feb 2022 15:25:51 +0000 (12:25 -0300)]
Merge pull request #975 from thochstein/master

Upgrade imx-vpu-hantro

3 years agoimx-vpu-hantro-daemon: Upgrade to 1.1.1 975/head
Tom Hochstein [Tue, 18 Jan 2022 20:30:35 +0000 (14:30 -0600)]
imx-vpu-hantro-daemon: Upgrade to 1.1.1

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-vpu-hantro: Upgrade to 1.24.0
Tom Hochstein [Tue, 18 Jan 2022 20:30:07 +0000 (14:30 -0600)]
imx-vpu-hantro: Upgrade to 1.24.0

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoMerge pull request #965 from thochstein/master
Otavio Salvador [Thu, 10 Feb 2022 14:10:34 +0000 (11:10 -0300)]
Merge pull request #965 from thochstein/master

Update graphics for L5.10.72-2.2.0

3 years agoMerge pull request #973 from tprrt/tprrt/fix-imx-atf-ccache
Otavio Salvador [Sat, 5 Feb 2022 20:49:23 +0000 (17:49 -0300)]
Merge pull request #973 from tprrt/tprrt/fix-imx-atf-ccache

imx-atf: add mark quotation to prevent build issue with ccache

3 years agoMerge pull request #974 from thochstein/imx-vpu-hantro
Otavio Salvador [Fri, 4 Feb 2022 21:30:35 +0000 (18:30 -0300)]
Merge pull request #974 from thochstein/imx-vpu-hantro

Revert imx-vpu-hantro and imx-vpu-hantro-daemon due to package fetch failure

3 years agoRevert "imx-vpu-hantro: Upgrade to 1.24.0" 974/head
Tom Hochstein [Fri, 4 Feb 2022 19:44:05 +0000 (13:44 -0600)]
Revert "imx-vpu-hantro: Upgrade to 1.24.0"

The latest imx-vpu-hantro-daemon fails to download and has been reverted
to the previous version, so revert this version as well.

This reverts commit ddbc40ac9cb001f1e16da218a08f3a3a43b29dbb.

3 years agoRevert "imx-vpu-hantro-daemon: Upgrade to 1.1.1"
Tom Hochstein [Fri, 4 Feb 2022 19:42:46 +0000 (13:42 -0600)]
Revert "imx-vpu-hantro-daemon: Upgrade to 1.1.1"

The new package fails to download, so revert this for now.

$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-vpu-hantro-daemon-1.1.1.tar.gz
--2022-02-04 13:19:34-- https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-vpu-hantro-daemon-1.1.1.tar.gz
Resolving www.nxp.com (www.nxp.com)... 104.94.208.185
Connecting to www.nxp.com (www.nxp.com)|104.94.208.185|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
2022-02-04 13:19:35 ERROR 304: Not Modified.

This reverts commit 4d713c80302466a3d4d2b33e071cfeeb866aa548.

3 years agoimx-atf: add mark quotation to prevent build issue with ccache 973/head
Thomas Perrot [Thu, 3 Feb 2022 08:54:43 +0000 (09:54 +0100)]
imx-atf: add mark quotation to prevent build issue with ccache

Otherwise, when ccache is enable the following issue occurs:
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 CROSS_COMPILE=aarch64-oe-linux- PLAT=imx8qx LD=aarch64-oe-linux-ld CC=ccache aarch64-oe-linux-gcc bl31
| make: *** No rule to make target 'aarch64-oe-linux-gcc'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
3 years agoMerge pull request #970 from tprrt/tprrt/fix-optee-overrides
Otavio Salvador [Wed, 2 Feb 2022 13:52:37 +0000 (10:52 -0300)]
Merge pull request #970 from tprrt/tprrt/fix-optee-overrides

optee: fix override syntax

3 years agoMerge pull request #972 from tprrt/tprrt/fix-optee-test-depends
Otavio Salvador [Wed, 2 Feb 2022 13:50:43 +0000 (10:50 -0300)]
Merge pull request #972 from tprrt/tprrt/fix-optee-test-depends

optee-test: replace old pycrypto with pycryptodome

3 years agoMerge pull request #968 from YoeDistro/yoe/mut
Otavio Salvador [Wed, 2 Feb 2022 13:47:36 +0000 (10:47 -0300)]
Merge pull request #968 from YoeDistro/yoe/mut

kernel-module-nxp89xx: Pin to imx machine kernel

3 years agooptee-test: replace old pycrypto with pycryptodome 972/head
Thomas Perrot [Wed, 2 Feb 2022 11:29:20 +0000 (12:29 +0100)]
optee-test: replace old pycrypto with pycryptodome

For security reason, pycrypto is no longer available, but it can be replaced by
pycryptodome.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
3 years agooptee-test: correct TA_DEV_KIT_DIR 970/head
Thomas Perrot [Wed, 2 Feb 2022 11:05:21 +0000 (12:05 +0100)]
optee-test: correct TA_DEV_KIT_DIR

The value is either ${STAGING_INCDIR}/optee/export-user_ta_arm32/ or
${STAGING_INCDIR}/optee/export-user_ta_arm64/

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
3 years agooptee-os: fix an override syntax
Thomas Perrot [Wed, 2 Feb 2022 09:36:25 +0000 (10:36 +0100)]
optee-os: fix an override syntax

Correct a forgotten change when switching to the new syntax.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
3 years agooptee-client: fix an override syntax
Thomas Perrot [Wed, 2 Feb 2022 09:35:59 +0000 (10:35 +0100)]
optee-client: fix an override syntax

Correct a forgotten change when switching to the new syntax.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
3 years agokernel-module-nxp89xx: Pin to imx machine kernel 968/head
Khem Raj [Wed, 2 Feb 2022 05:42:20 +0000 (21:42 -0800)]
kernel-module-nxp89xx: Pin to imx machine kernel

It fails to build with linux-yocto 5.15 e.g.

TOPDIR/build/tmp/work/qemumips-yoe-linux/kernel-module-nxp89xx/git-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c:1405:49: error: 'RX_PKT_FATE_DRV_DROP_NOBUFS' undeclared (first use in this function)
 1405 |                                                 RX_PKT_FATE_DRV_DROP_NOBUFS,
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 years agoMerge pull request #967 from angolini/add_nxp89xx
Otavio Salvador [Tue, 1 Feb 2022 16:24:57 +0000 (13:24 -0300)]
Merge pull request #967 from angolini/add_nxp89xx

Add nxp89xx

3 years agoimx-base: Install the driver when nxp8987 in MACHINE_FEATURES 967/head
Daiane Angolini [Tue, 1 Feb 2022 13:47:50 +0000 (10:47 -0300)]
imx-base: Install the driver when nxp8987 in MACHINE_FEATURES

Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
3 years agokernel-module-nxp89xx: Add recipe based on NXP lf-5.10.72_2.2.0
Daiane Angolini [Tue, 1 Feb 2022 13:40:17 +0000 (10:40 -0300)]
kernel-module-nxp89xx: Add recipe based on NXP lf-5.10.72_2.2.0

NXP Wi-Fi driver for module 88w8997/8987 is not available as part of the
kernel tree on the 5.10-based BSP releases, only via recipe.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
3 years agoweston-init: Enable screen sharing 965/head
Tom Hochstein [Sat, 29 Jan 2022 21:28:05 +0000 (15:28 -0600)]
weston-init: Enable screen sharing

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoweston: Adjust base patch for fork
Tom Hochstein [Fri, 28 Jan 2022 17:25:21 +0000 (11:25 -0600)]
weston: Adjust base patch for fork

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoweston: Upgrade to L5.10.72-2.2.0 release
Tom Hochstein [Fri, 28 Jan 2022 00:22:53 +0000 (18:22 -0600)]
weston: Upgrade to L5.10.72-2.2.0 release

Fixes:
```
26da63a4 screen-share: weston screen-share poor performance with g2d-renderer
f8ce046f g2d-renderer: weston screenshare fail to work on rdp-backend with g2d-renderer
74ae3012 drm-backend: rename NV12_10LE40 to NV15
78e17706 backend-fbdev: MIPI display recovery slowly after suspend resume
e73c641e LF-4317 launcher-logind: weston sometimes failed to start when booting up from eMMC
d5ad97f2 g2d-renderer: use dmabuf.attributes.stride for video stride
23166110 LF-3992 state-propose: fix chromium cannot show on 8mq platform
```

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoweston: Update base portion of recipe
Tom Hochstein [Thu, 27 Jan 2022 23:59:12 +0000 (17:59 -0600)]
weston: Update base portion of recipe

Update the base portion of the i.MX fork recipe to the latest OE-core
recipe c8aa0222ce2be647911114aaebcbb0d55d7caf87.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoweston: Rework SRC_URI
Tom Hochstein [Thu, 27 Jan 2022 23:28:45 +0000 (17:28 -0600)]
weston: Rework SRC_URI

Rework the i.MX SRC_URI override so it's clear what is changed and what
is inherited.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agowayland-protocols: Upgrade to 1.22.imx
Tom Hochstein [Thu, 27 Jan 2022 19:11:25 +0000 (13:11 -0600)]
wayland-protocols: Upgrade to 1.22.imx

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-gpu-apitrace: Upgrade to 10.0.0
Tom Hochstein [Thu, 27 Jan 2022 18:14:29 +0000 (12:14 -0600)]
imx-gpu-apitrace: Upgrade to 10.0.0

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-g2d-samples: New recipe for G2D sample apps
Tom Hochstein [Wed, 26 Jan 2022 23:39:29 +0000 (17:39 -0600)]
imx-g2d-samples: New recipe for G2D sample apps

The G2D sample apps are now available as source. Note that the package
is currently limited to GPU-based G2D and is not compatible with
DPU-based G2D. A future release will add DPU support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-gpu-g2d: Upgrade to 6.4.3.p2.4
Tom Hochstein [Wed, 26 Jan 2022 23:35:43 +0000 (17:35 -0600)]
imx-gpu-g2d: Upgrade to 6.4.3.p2.4

This version has the sample apps removed, available now in the new
recipe imx-g2d-samples.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-g2d: Consolidate G2D recipes in single folder
Tom Hochstein [Wed, 26 Jan 2022 22:29:32 +0000 (16:29 -0600)]
imx-g2d: Consolidate G2D recipes in single folder

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agokernel-module-isp-vvcam: Upgrade to 4.2.2.16.0
Tom Hochstein [Wed, 26 Jan 2022 21:57:03 +0000 (15:57 -0600)]
kernel-module-isp-vvcam: Upgrade to 4.2.2.16.0

b2321c0 compand compress curve update
724df72 BSLRM865-189:Image quality with HDR mode is worse than Linear mode
16ffd85 BSLRM865-200: sensor_driver: Sensor api change because 5.15 kernel change
1bedecf Update Release P16 20211003 from Verisilicon
841f438 Update Release P15 from Verisilicon

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agokernel-module-imx-gpu-viv: Upgrade to 6.4.3.p2.4
Tom Hochstein [Wed, 26 Jan 2022 21:48:52 +0000 (15:48 -0600)]
kernel-module-imx-gpu-viv: Upgrade to 6.4.3.p2.4

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoimx-gpu-viv: Upgrade to 6.4.3.p2.4
Tom Hochstein [Wed, 26 Jan 2022 20:48:42 +0000 (14:48 -0600)]
imx-gpu-viv: Upgrade to 6.4.3.p2.4

- x11 is no longer supported
- dri is no longer supported
- remove vestiges of 64-bit framebuffer on Wayland, which is no longer supported

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agolibdrm: Upgrade to 2.4.107.imx
Tom Hochstein [Tue, 25 Jan 2022 18:44:06 +0000 (12:44 -0600)]
libdrm: Upgrade to 2.4.107.imx

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 years agoMerge pull request #962 from Freescale/topic/fix-multilib-support
Otavio Salvador [Tue, 25 Jan 2022 20:11:36 +0000 (17:11 -0300)]
Merge pull request #962 from Freescale/topic/fix-multilib-support

fsl-vivante-kernel-driver-handler.bbclass: Fix multilib support