Commit Graph

215 Commits

Author SHA1 Message Date
Javier Viguera 7f6bbf14e1 meta-digi-dey: enable wayland-protocols and weston for ccimx93
meta-freescale does not provide the proper overrides for imx93, so add
them here.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:29:21 +01:00
Javier Viguera 3e0d3bd18d qtwayland: update to support ccimx93
Native X11 is not supported for ccimx93 (dropped by NXP), so remove
xcomposite-egl and xcomposite-glx packageconfig options.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:29:09 +01:00
Javier Viguera b72a3425b1 wayland: clean up recipe and remove not needed patch files
Cleaned code comes from older yocto versions (not needed anymore), and is
causing a build failure when building the nativesdk package.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-04 10:53:45 +01:00
Javier Viguera 2e9528df40 meta-digi: remove outdated overlayed recipes
A new set of meta-freescale updates made these recipes outdated.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 15:07:52 +01:00
Javier Viguera 7acf3a58e0 meta-digi: remove some more overlayed recipes
There are new versions of these recipes in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-28 10:40:06 +01:00
Javier Viguera 99a61e12a1 meta-digi: delete outdated opencv bbappend
A new set of meta-freescale updates broke our layer, because they
updated opencv package and our bbappend does not apply anymore.

The build fails at parsing:

ERROR: No recipes in default available for:
  meta-digi/meta-digi-dey/dynamic-layers/freescale-layer/recipes-support/opencv/opencv_4.5.2.imx.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-28 10:32:53 +01:00
Javier Viguera 272edd8af7 meta-digi: remove obsolete overlayed recipes
Code clean up, remove recipes that have been updated in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-14 11:09:43 +01:00
Javier Viguera df572d0ef3 meta-digi: delete linux 5.4 recipe
No supported platform is using kernel version 5.4.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-08 14:20:51 +01:00
Javier Viguera 526cb3cae0 weston: remove deprecated recipe
meta-freescale updated to version '10.0.0.imx', so our bbappend fails
with:

ERROR: No recipes in default available for:
  ... meta-digi-dey/dynamic-layers/freescale-layer/recipes-graphics/wayland/weston_9.0.0.imx.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-31 11:58:36 +02:00
Tatiana Leon 25c699e05b wayland: crank: add 'libwayland-egl.so' link to the wayland package
Required for some Crank engine libraries. They are linked against libwayland-egl
library without version, 'libwayland-egl.so'.

https://onedigi.atlassian.net/browse/DEL-7969

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-25 18:19:27 +02:00
Javier Viguera bb82f40238 imx-alsa-plugins: convert to bbappend
The base recipe is in meta-freescale

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 13:43:48 +02:00
Javier Viguera 90a664b4ad meta-digi-dey: delete obsolete wayland-protocols recipe
Version 1.25 is available in meta-freescale

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 13:42:36 +02:00
Arturo Buzarra a8d7b3c623 wpewebkit: limit number of parallel threads to fix a build issue
Building the wpewebkit recipe with more than 16 threads throws an unexpected
error "ninja: build stopped: subcommand failed.", so this commit limits it
to a safe value.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:08:04 +02:00
Arturo Buzarra 5fa91adcd6 webkit: add support for dey-image-webkit for ccmp15 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:08:04 +02:00
Arturo Buzarra e6ab5ffd70 stm-st-stm32mp: add cairo bbappend to support EGL
This commit adds a cairo bbappend from meta-st-openstlinux layer to add support
to EGL and libgles2 graphical libaries.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:04:39 +02:00
David Escalona 4b8eec17c2 images: include 'connectcore-demo-example-webkit' in webkit images
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona a84f588cd1 meta-digi-dey: webkit: add recipe to install webkit version of 'connectcore-demo'
The Webkit version of the ConnectCore demo implements some new functionality:
- The COG browser is automatically started when the device boots loading the demo in the
  primary display.
- A new Multimedia section is available to reproduce some demo videos and WebGL examples
  in the device's browser.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona cce6b23957 meta-digi-dey: webkit: remove 'digi-webkit-examples' recipe
The ConnectCore Demo will be installed by default in all the platforms, so this recipe
is no longer required.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona f229fc7171 meta-digi-dey: webkit: move 'video-examples' and 'webglsamples' recipes to 'recipes-digi'
The video examples and WebGL samples will be part of the new ConnectCore Demo, so move these
recipes to a more appropriate folder. While on it, remove dependencies with 'digi-webkit-examples'
recipe as it will be obsoleted.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
Javier Viguera f9a4103459 stm-st-stm32mp: configure properly qtbase compilation
Otherwise it fails with: ERROR: The OpenGL functionality tests failed!

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-14 15:44:41 +02:00
Javier Viguera 8d123d7451 kirkstone migration: delete deprecated or duplicated recipes
Remove deprecated versions of recipes updated in other general layers
(poky, meta-openembedded). Also remove duplicated IMX specific recipes that
are available in other BSP layers (meta-freescale, meta-fsl-demos, etc).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 2452e85a6b kirkstone migration: cosmetic, clean build warnings
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 065cf3e9c4 kirkstone migration: general update to the new override syntax
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Mike Engel 8b8ab29ba0 drm: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 71ce2842ba packagegroups: move gstreamer packagegroup into NXP dynamic-layers
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 025b78fc97 openvc: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel b3dc263dc3 ml-security: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 7ebe759e0b nxp-afe: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 0317bf1133 imx-vpuwrap: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 5299bb6f03 imx-sw-pdm: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 6b48437166 imx-dspc-asrc: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel ffc039ea20 imx-dsp: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 0fe6f5d5ba imx-codec: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel bd80f573f2 imx-parser: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 9014ce6f7f tinycompress: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 798510ad64 alsa: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel fab1962b15 libgpuperfcnt: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 0acf9400eb qt5: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel e5d5520ab9 gstreamer: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel b9de1544d4 wayland: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel dfc2ce9024 imx-gpu-viv: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel d147b1ee36 imx-g2d: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Gabriel Valcazar 668b4e8138 cog: adapt patches to v0.12.0
Now that the "--platform" parameter is optional, we don't need to hardcode the
platform anymore, so remove the first patch.

In this version, the FDO platform has been renamed to WL, and since the default
PACKAGECONFIG is meant to work with older cog versions, we need to manually
append the "wl" PACKAGECONFIG to build the wayland platform.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-25 12:58:22 +01:00
Gabriel Valcazar c39b855807 hardknott: refpolicy: update patches for latest revision
Update a patch so it applies cleanly and remove another one, since it has
already been applied upstream

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 2079aec5e0 hardknott: cog: remove drm PACKAGECONFIG for ccimx6/ccimx6qp
This PACKAGECONFIG existed in gatesgarth, but it's included by default in
hardknott and it pulls in libgbm as a dependency. This package isn't available
for i.MX6 platforms, causing the build to fail immediately. Remove this from
the ccimx6 PACKAGECONFIG and leave it how it was on gatesgarth.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar dceae2dc3e hardknott: webkit: remove our recipes
We initially added newer versions of the recipes related to WPE Webkit in order
to incorporate performance improvements, but the hardknott branch of
meta-webkit includes even newer versions, so we can remove our recipes.

Reflect this change in our distro config file.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 1e19618157 linux-dey: add config fragment to enable SELinux configuration options
These options should only be enabled when using SELinux, so apply them only
when "selinux" is in the DISTRO_FEATURES. The fragment is a copy of the one in
meta-selinux with the addition of DEFAULT_SECURITY_DAC and LSM.

https://onedigi.atlassian.net/browse/DEL-7641

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar abba0948a9 refpolicy: adapt reference policy to DEY prebuilt image features
The default policy provided by meta-selinux breaks a lot of the features in
DEY, so adapt it to make most features work. Note that this is simply an
example, end users should create their own policies for their own needs.

Make these changes toggleable so that users can use the reference policy
instead.

https://onedigi.atlassian.net/browse/DEL-7641

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar a7b8288511 images: include packagegroup-core-selinux if "selinux" is in DISTRO_FEATURES
This packagegroup includes all of the userspace packages needed to use SELinux.
For now, use the same variant of the packagegroup, which contains all available
packages.

Since the meta-selinux layer isn't available in all platforms, implement this
change via a dynamic layer.

https://onedigi.atlassian.net/browse/DEL-7641

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar 2c7f14ba98 webkit: stop hardcoding versions in .bbappend files
By default, we only support the latest versions of the webkit packages anyway,
so use a wildcard so we don't have to update the recipes every time a new
version is available.

https://onedigi.atlassian.net/browse/DEL-7578

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-23 12:36:44 +02:00
Gabriel Valcazar 4219e6c36c webkit: upgrade packages to include i.MX performance improvements
Igalia has included performance improvements for i.MX platforms in the latest
versions of different packages related to webkit. Even though the recipes for
these versions are not yet available in meta-webkit, we can add our own to
meta-digi to take advantage of these improvements.

Update the cog patches so they apply cleanly over v0.9.90.

https://onedigi.atlassian.net/browse/DEL-7578

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-23 12:36:44 +02:00
Gabriel Valcazar cf7a87f6c3 wpewebkit: adapt .bbappend to Yocto 3.2
Update version from 2.28.1 to 2.32.0, remove patch that is already included in
the source tarball and stop removing the qtwpe PACKAGECONFIG, since it's no
longer being included by default.

https://onedigi.atlassian.net/browse/DEL-7545

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-29 21:39:39 +02:00
Gabriel Valcazar 00e1167f7c cog: adapt .bbappend to Yocto 3.2
Update the version from 0.7.1 to 0.8.0 and remove two patches that are already
being applied in meta-webkit.

https://onedigi.atlassian.net/browse/DEL-7545

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-29 21:39:39 +02:00
Arturo Buzarra 4342546a01 gatesgarth migration: features_check class replaces distro_features_check
The 'distro_features_check' class has had its functionality expanded, as
a result the class has now been renamed to 'features_check'

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Gabriel Valcazar cca44221b9 digi-webkit-examples: adapt to new landing page design
The landing page for the WebKit examples has gone through a visual overhaul to
improve the overall user experience, so adapt its recipe accordingly. Since the
page now contains resources that are relatively large (such as images and
extensive stylesheets), remove its elements from the recipe directory and
obtain them from Digi's FTP server instead.

https://jira.digi.com/browse/DEL-7365

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 11:57:14 +01:00
Gabriel Valcazar 142c1e2fcf wpewebkit: remove qtwpe from PACKAGECONFIG
The Qt WPE plugin has an implicit dependency with libgbm, which is only
available on i.MX8 platforms. Also, it pulls in several Qt dependencies,
increasing the total rootfs image size by about 50MiB. Remove said plugin to
completely separate Qt and WebKit functionality.

https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-17 09:33:42 +01:00
Gabriel Valcazar 0fd7e03fc8 digi-webkit-examples: add recipe for video examples
This recipe installs some videos that can be used to test the WebKit's hardware
acceleration during video decoding. Modify the landing page to be able to
access these videos.

https://jira.digi.com/browse/DEL-7314
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-17 09:33:42 +01:00
Gabriel Valcazar 1d58cb6c7f packagegroup-dey-webkit: include digi-webkit-examples by default
While at it, change cog's home page to the examples' landing page.

https://jira.digi.com/browse/DEL-7314
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-17 09:33:42 +01:00
Gabriel Valcazar 04cd7aafe7 digi-webkit-examples: add recipe for main landing page
This recipe installs the main page of the WebKit examples, from which all other
examples can be accessed. For now, only include the WebGL examples.

Since the landing page recipe needs to know which WebGL demos are being
installed and the webserver path where everything is installed, move some of
the variables used in the webglsamples recipe into an *.inc file to be able to
re-use said variables in different recipes.

Use the Digi embedded documentation CSS file for now, so the landing page looks
more on-brand.

https://jira.digi.com/browse/DEL-7314
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-17 09:33:42 +01:00
Gabriel Valcazar 4b94979d98 digi-webkit-examples: create recipe for WebGL samples
This recipe installs a subset of the samples available at
https://webglsamples.org/ onto the target's web server, to be able to run said
examples locally without needing internet access. Make sure not to install any
source files to avoid making the package too large.

https://jira.digi.com/browse/DEL-7314
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:40 +01:00
Gabriel Valcazar cfa11005ee cog: add small usability improvements
Add two patches to improve user experience, such as making the browser
fullscreen and removing the otherwise necessary --platform parameter.

Also, make www.digi.com the default URI to avoid having to explicitly pass a
URI when launching cog.

https://jira.digi.com/browse/DEL-7311
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:40 +01:00
Gabriel Valcazar 590b824967 wpewebkit: make sure the webkit can only be built for graphical images
The WebKit is not supported on framebuffer images yet. While at it, set
wpebackend-fdo as the default WPE backend.

https://jira.digi.com/browse/DEL-7311
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:40 +01:00
Gabriel Valcazar 3a3ca20ec2 wpewebkit: add patch to fix video playback on the ccimx8x
The i.MX8X video decoder requires a specific NXP video converter, otherwise
videos will appear with several glitches. This patch adds said plugin in the
WPE webkit's internal gstreamer pipeline.

https://jira.digi.com/browse/DEL-7311
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:40 +01:00
Gabriel Valcazar b13339839e cog: fix crash due to EGL library errors
The EGL library provided by NXP in the v5.4.47 BSP has a bug where a NULL
pointer is returned by eglGetProcAddress() when trying to obtain the entrypoint
for a specific function used throughout the cog code. This caused cog to crash
immediately after launching it.

Recently, a fix was made available in the cog repo, so backport it to the
latest available revision of cog in meta-webkit and apply it.

https://jira.digi.com/browse/DEL-7311
https://jira.digi.com/browse/DEL-7312
https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:40 +01:00
Gabriel Valcazar f91cb8d6bd Add support for the dey-image-webkit image
This image is very similar to dey-image-qt, but it includes the WebKit
packagegroup instead of the Qt one. Said packagegroup contains all of the
elements needed to run a WebKit-based browser environment in DEY.

This image requires the meta-webkit layer, so include it in our default
bblayers template. For now, include all WebKit related recipes in a dynamic
layer, because the ccimx6ul doesn't support WebKit and its projects don't need
meta-webkit at all.

https://jira.digi.com/browse/DEL-7339

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-14 11:49:33 +01:00