Commit Graph

141 Commits

Author SHA1 Message Date
Jun Zhu
6153ca0fbd fmc: Update to commit 63c8ac9
Integrate new commits:
 63c8ac9 Deny HC usage on fmc cleanup
 3def2b9 Check if valid FMan handle exists when create devices
 a8a257b Rename COPYING to LICENSE

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2023-07-01 22:55:57 +08:00
Khem Raj
80fd227f1d mpv: Do not enable x11 when using vivante graphics driver
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-08 07:48:47 -07:00
Clément Péron
58577f6254 dynamic-layers: meta-arm: tf-a: only set target for supported machines
This layer set the ARM TF-A build and install target for all board.

Only set those variables to the supported machines.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
2023-05-11 18:06:27 +02:00
Khem Raj
245e9fbc7f xdg-desktop-portal-wlr: Disable when using vivante gpu driver
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-13 15:53:55 -07:00
Khem Raj
4bf24dd514 qtmultimedia: Fix build of dependencies when using vivante gpu drivers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-13 14:34:05 -07:00
Khem Raj
090079a62f xdg-desktop-portal-wlr: Disable build when using imx gpu driver
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-13 11:01:10 -07:00
Khem Raj
9a1e1243b4 vlc: Disable x11 when using imx gpu driver
It does not provide glx implementation which is needed for vlc x11
support

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-13 10:26:46 -07:00
Mauro Salvini
98b3dec7e2
qt4-imx-support.inc: fix append syntax
Change the "+=" in "=", we are using the :append

Signed-off-by: Mauro Salvini <m.salvini@koansoftware.com>
2023-02-13 12:37:12 +01:00
Chris Dimich
fd3289315d chromium-ozone-wayland: remove bbappend and patches
Removing because they are based on older version of chromium
(101.0.4951.54) and do not apply on latest/HEAD.

Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com>
2023-02-08 11:20:04 -08:00
Walter Schweizer
c731dcbe2d imx-cst: fix build issue for Ubuntu 22.04(LTS)
On Ubuntu 22.04(LTS) cst fails to link with libcrypto.

NXP uses weaken to solve a conflict in linking.
The linker in Ubuntu seems to ignore weak symbols does
not link libcrypto at all.

The patch fixes the conflict in the code itself.
It restricts the scope of err_msg to the module.

Signed-off-by: Walter Schweizer <walter.schweizer@siemens.com>
2023-02-04 11:03:24 +01:00
Chris Dimich
23bdb51b78 chromium-ozone-wayland: add bbappend and patches as per NXP 5.15.71_2.2.0 rel
Changes include:

    - support on i.MX 8 series platform.
    - 8MM/8MP/8MQ support h264/hevc/vp8/vp9 hardware decoding.
    - 8QM/8QXP support h264/hevc/vp8 hardware decoding.
    - support seek, playrate change and resolution change.
- support video acceleration for online media platform such as
Youtube, bilibili.

Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com>
2023-01-09 10:52:50 -08:00
Tom Hochstein
f17b502396 weston-init: Drop redundant xwayland=true setting
The main recipe now sets xwayland=true in weston.ini, so drop it from
here.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-12-15 09:42:13 -07:00
Jun Zhu
db67bdf59c Switch NXP QorIQ repositories to github.com
Fetch QorIQ's source code from github.com/nxp-qoriq,
as original source.codeaurora.org/external/qoriq will
stop to access from April 2023.

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2022-12-15 11:47:18 +08:00
Tom Hochstein
cb85cf427d qt6-layer: Add Qt6 support
Copy the qt5-layer bbappends with the following modifications:
- qtbase: Use eglfs for KMS backend for i.MX 8 with GPU on NXP BSP
- qtbase: Drop build config patches no longer needed

Testing is done using the quick3d and webengine examples.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-11-15 15:50:12 -07:00
Mauro Salvini
3abc09fe62 qt4-imx-support: fix typo
Signed-off-by: Mauro Salvini <m.salvini@koansoftware.com>
2022-10-07 12:25:31 +02:00
Mauro Salvini
d2107e1927 qt4-imx-support: change format of patches added by commit 4aed4a5
Patches are the same but now are in git format ad have Signed-off-by
and From fields as required

Signed-off-by: Mauro Salvini <m.salvini@koansoftware.com>
2022-10-03 12:09:20 +02:00
Mauro Salvini
4aed4a5833 qt4-imx-support: fix build for imxgpu2d SOCs
Before this change, when imxgpu2d is selected, the qt4 do_configure
fails with the following error:

| EGL (EGL/egl.h) auto-detection... ()
| compiling egl.cpp
...
| /home/wrk/yocto/build-qt4/tmp/work/imx8mmevk-fslc-linux/qt4-embedded/4.8.7-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:150:10: fatal error: X11/Xlib.h: No such file or directory
|   150 | #include <X11/Xlib.h>
|       |          ^~~~~~~~~~~~
| compilation terminated.
| Makefile:178: recipe for target 'egl.o' failed
| make: *** [egl.o] Error 1
| EGL (EGL/egl.h) disabled.
| EGL (GLES/egl.h) auto-detection... ()
...
| /home/wrk/yocto/build-qt4/tmp/work/imx8mmevk-fslc-linux/qt4-embedded/4.8.7-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:150:10: fatal error: X11/Xlib.h: No such file or directory
|   150 | #include <X11/Xlib.h>
|       |          ^~~~~~~~~~~~
| compilation terminated.
| Makefile:178: recipe for target 'egl4gles1.o' failed
| make: *** [egl4gles1.o] Error 1
| EGL (GLES/egl.h) disabled.
| The EGL functionality test failed!

This is because the -DLINUX=1 and -DEGL_API_FB=1 flags added to QT_CONFIG_FLAGS
are not pushed down during these configuration tests.

This commit adds these two flags directly to the related .pro files
in Qt4 sources.

Since it's been a long time that meta-qt4 is not updated anymore,
the patch can be backported to LTS releases.

Signed-off-by: Mauro Salvini <m.salvini@koansoftware.com>
2022-09-28 17:00:31 +02:00
Andrey Zhizhikin
cbea2c3647 dynamic-layers: add meta-arm to provide upstream TF-A
Default upstream TF-A implementation resides in the separate layer [1],
which needs to be included in the bblayers.conf file. Per default,
upstream recipe does not define any machine to be compatible, this
compatibilty needs to be defined by the layer that pulls meta-arm TF-A
package. This however cannot be listed as dependency, since not all BSP
flavors do require upstream TF-A, therefore direct layer dependency
cannot be added.

Add meta-arm to dynamic-layers and define compatible machines in the
bbappend, which are supported by upstream TF-A version.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Link: [1]: https://github.com/jonmason/meta-arm/tree/master/meta-arm/recipes-bsp/trusted-firmware-a
2022-06-14 18:55:57 +00:00
Khem Raj
91df95b441 imx-cst: Use specific BSD license
Fixes
WARNING: imx-cst-3.3.1-r0 do_populate_lic: QA Issue: imx-cst: No generic license file exists for: BSD in any provider [license-exists]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-14 10:30:49 -07:00
Tom Hochstein
286385e3b2 dynamic-layers: Update SOC overrides
Fix dynamic layer overrides missed by the script.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-03-02 09:56:39 -06: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
Pierre-Jean Texier
bef00d6e4f recipes: use https protocol and add explicit branch parameter
Due to https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
it is required to use https protocol for github repo accessing.

Update created with oe-core/scripts/contrib/convert-srcuri.py (see [0])

Fixes:

WARNING: /work/meta-freescale/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb: URL: git://github.com/Freescale/u-boot-fslc.git;branch=2021.07+fslc uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.

[0] - https://git.openembedded.org/openembedded-core/tree/scripts/contrib/convert-srcuri.py

Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
2021-11-03 22:27:01 +01:00
Ting Liu
203f407a9e qoriq: Convert to new override syntax
* change `virtclass-native`` to ``class-native`
* add fixes for ls2088a

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2021-10-13 15:01:28 +08:00
Khem Raj
2acbec4cc3 imx-cst: Correct SRC_URI to use static SRCREV instead of tag
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-04 12:02:22 -07: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
Thomas Perrot
98797c540f
imx-cst: introduce the recipe for the version 3.3.1
It provides a code signing tool for signing images for i.MX-based NXP processors
using High Assurance Boot (HABv4) library in the internal boot ROM or the
Advanced High Assurance Boot (AHAB) subsystem.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
2021-08-12 16:30:45 +02:00
Pierre-Jean Texier
0df4075e78 recipes-graphics: clutter/cogl: move bbappend to dynamic layers
As it breaks the build on master since [1]. Move bbappend files to
dynamic layers since recipes were moved to meta-gnome

Fixes:

ERROR: No recipes in default available for:
  /home/bdx-iot/ci/meta-freescale/recipes-graphics/clutter/clutter-1.0_%.bbappend
  /home/bdx-iot/ci/meta-freescale/recipes-graphics/cogl/cogl-1.0_%.bbappend

[1] - http://git.openembedded.org/openembedded-core/commit/?id=c4f167d05f58f35a6b94e8dbc4721ab67e7e71eb

Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
2021-06-04 14:34:47 -03:00
Tom Hochstein
3e515c5af4 qtbase: Add reference for pending patch
Note the Qt ticket for the pending patch.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-04-30 13:46:54 -03:00
Pablo Saavedra
02eb3ffd5a conf/layer.conf: Rename browser-layer as chromium-browser-layer
This commit updates the directory name of the browser-layer
dynamic-layer because the changes introduced in
https://github.com/OSSystems/meta-browser/pull/470. This browser-layer
doesn't exist anymore in the meta-browser layer being replaced by a new
chromium-browser-layer.

For backwards compatibility this changes keeps the entries associated to
the former browser-layer pointing to the new chromium-browser-layer.

Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
2021-03-26 08:37:10 -03:00
Tom Hochstein
e2abe05253 weston-init: Update weston.ini for IVI
- Set core idle-time to 0 to align with non-IVI setting
- Add repaint-window for all i.MX 8 to support 4K display
- Add enable-overlay-view option as comment
- Enable touchscreen_calibrator

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-02-11 21:39:44 -03:00
Pierluigi Passaro
d0973b6c9c qtwayland: fix configuration errors for both mx6 and mx7 machines
QtWayland configuration task fails for xwayland distros.
Just remove the conflicting options.

Signed-off-by: Pierluigi Passaro <pierluigi.p@variscite.com>
2021-01-31 12:36:40 -03:00
Ting Liu
8fe7b1d6a2 ipsec-demo: remove as it depends on ipsec-tools
ipsec-tools has security issues and has been ABANDONED. Recipe was removed
from meta-networking too.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16 08:39:03 -03:00
Ting Liu
2fa0ce38cb fmc: update to c2ed7c2
New commits:
c2ed7c2 XML config files update for proper syntax
3a1566e Use MIT license for lexical analyzer files
1ebdcb4 Use MIT license for config files

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16 08:38:13 -03:00
Tom Hochstein
30234f745c opencv: Drop removal of v4l support
In the past, i.MX gstreamer camera didn't work well with OpenCV v4l,
so v4l was disabled. Now that i.MX gstreamer is no longer using
OpenCV, v4l support can be restored.

Fixes #475

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-09-14 13:25:44 -03:00
Khem Raj
e1b169c907 qtbase: Define empty PACKAGECONFIG_VULKAN
In cases where non imxgpu and non-fsl SOCs are target do_configure results in

ERROR: qtbase-5.15.0+gitAUTOINC+f6fe4bbab7-r0 do_configure: QA Issue: qtbase: in
valid PACKAGECONFIG: ${@bb.utils.contains('DISTRO_FEATURES', [invalid-packagecon
fig]

Therefore having empty value helps in avoiding this case

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-05 08:07:10 -03:00
Tom Hochstein
22408f5766 qtbase: Drop upstreamed patch
Drop patch 0015-Add-eglfs-to-IMX-GPU.patch. It is upstream and
no longer necessary.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-06-02 09:18:25 -03:00
Tom Hochstein
b37a332b13 qtbase: Add i.MX 8 configuration
- 8M Quad has 3D but no 2D, so fix the override for GPU patches
- Add gbm and kms for all i.MX 8 with GPU
- Add vulkan for all i.MX 8 with GPU except 8M Mini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-06-02 09:18:25 -03:00
antznin
eaefe96561 qtbase: Fix patch fuzz for mkspecs/linux-oe-g++/qmake.conf
The current version of the patch causes a fuzz because of context
change.

Signed-off-by: antznin <agodard@witekio.com>
2020-05-05 11:58:53 -03:00
Otavio Salvador
2f4e04cb97 qtbase: Allow easy override of the mainline BSP GL backend
Using a weak setting, allow distributions to override it and make
customizations if need (use gl, for example).

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: Id1ee47764148e07feba86e16cd7d282a37dcf9e9
2020-05-05 08:43:07 -03:00
Otavio Salvador
e1b7bce0bd Revert "qtbase: Do not pin gles2 when using open source graphic stack"
This reverts commit 1cf9efd20f.

The qtbase configure fail to find any suitable GL library, so it fails
with:

,----
| WARNING: No QPA platform plugin enabled! This will produce a Qt that
| cannot run GUI applications.  See "Platform backends" in the output of
| --help.
|
| ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition
| '(config.win32 && !config.winrt && !features.opengles2
|     && (config.msvc || libs.opengl))
|  || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)' failed.
|
| ERROR: Feature 'eglfs' was enabled, but the pre-condition
|   '!config.android && !config.darwin && !config.win32 && !config.wasm
|   && features.egl' failed.
`----

Fixed: #378

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-05-05 08:43:07 -03:00
Max Krummenacher
340f3f2bcc glmark2: don't build drm flavours for machines not supporting it
imx-gpu-viv_6.4.0.p1.0-aarch32 does not provide virtual/libgbm and thus
a build with drm* in PACKAGECONFIG does fail.
Thus remove drm* from PACKAGECONFIG for those machines.

| ERROR: Nothing PROVIDES 'virtual/libgbm' (but .../glmark2_git.bb DEPENDS on or otherwise requires it)
| gpulib PROVIDES virtual/libgbm but was skipped: incompatible with machine

fixes: 7801868f glmark2: Remove bbappend

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-16 09:16:20 -03:00
Joshua Watt
7801868f49 glmark2: Remove bbappend
The default PACKAGECONFIG for glmark2 builds just fine on imxgpu3d and
imxgpu2d platforms, and doing so enables support for the drm based
tests.

Tested on imx8mq and imx8qm

Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
2020-03-12 13:20:42 -03:00
Tom Hochstein
66989b7d07 weston-init: Move weston.ini install to weston-init
OE-core now installs weston.ini from weston-init, so align our
recipe to do the same.

The IVI dynamic layer now has a copy of the weston.ini file
that is normally produced by the weston build.

The AGL dynamic layer now uninstalls the weston.ini installed
upstream.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2019-11-18 10:16:54 -03:00
Tom Hochstein
fed50e2afc weston: Improve weston.ini selection logic
Add a variable WESTON_INI_INSTALL_FILE to make it easy to customize
the selection of the weston.ini file.

The main recipe now performs only a generic install of the selected file.

For AGL and IVI, we use the BBFILES_DYNAMIC mechanism to specify no
file and an IVI-specific file respectively.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2019-11-04 15:40:00 -03:00
Christopher Boyd
218e7c48e6 fix(qtbase): remove unnecessary patch 2019-10-23 18:14:36 -03:00
Khem Raj
7f3a9bf233 opencv: Adjust the bbappend for version 4.x
The patch is no longer needed, relevant code no more present in opencv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-16 10:49:48 -03:00
Chunrong Guo
abd3f860db fmc: install all config files
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-07-12 17:18:34 -03:00
Max Krummenacher
a2f542394e qtwayland: drop xcomposite-egl, xcomposite-glx packageconfig for mx8
NXP dropped native X11 support for i.MX 8(X).

with xcomposite-glx:
qtwayland fails in configure with:

| ERROR: Feature 'xcomposite-glx' was enabled, but the pre-condition 'features.wayland-client && features.opengl && !features.opengles2 && features.xlib && libs.xcomposite && libs.glx' failed.
| ERROR: Feature 'xcomposite-glx' was enabled, but the pre-condition 'features.wayland-server && features.opengl && !features.opengles2 && libs.xcomposite && libs.glx' failed.

with xcomposte-egl:
qtwayland fails during compile starting with:

| .../qwaylandxcompositeeglclientbufferintegration.cpp:140:59: error: cannot convert 'Display*' {aka '_XDisplay*'} to 'EGLNativeDisplayType' {aka 'wl_display*'}
|       integration->mEglDisplay = eglGetDisplay(integration->mDisplay);
|                                                ~~~~~~~~~~~~~^~~~~~~~

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-05 16:23:48 -03:00
Fabio Berton
6122da9926 Revert "cpuburn-arm: Add armv7ve as a valid machine"
This reverts commit 0e12eb4a03.

This commit was merged in meta-openembedded/meta-oe layer.
See commit:
https://git.openembedded.org/meta-openembedded/commit/?id=ea59b56825912614d8b2acb3ed621a8e9333a23c

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2019-03-26 10:24:15 -03:00
Fabio Berton
0e12eb4a03 cpuburn-arm: Add armv7ve as a valid machine 2019-03-22 16:52:12 -03:00