Commit Graph

4819 Commits

Author SHA1 Message Date
Arturo Buzarra 576c0283f0 stm-st-stm32mp: fip-stm32mp: add a custom .bbappend to fix the deployment of the final FIP artifact
This commit integrates a custom .bbappend to fix a deployment issue of the
final FIP artifact, where the SoC name does not match with the FIP device tree
name.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra ebadb27d60 ccmp2: don't include custom kernel headers in the toolchain
This commit removes kernel headers from the SDK package list to prevent
overwriting the default ones, as there are currently no ST-specific headers
required.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 2db49f3a4a ccmp25-dvk: sync default FIP generation variables
This commit updates the default FIP generation variables to align with the
common stm32mp2 configuration files from the latest meta-st-stm32mp layer,
based on the openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0
(Scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 661d1dc620 stm-st-stm32mp: weston: sync weston recipes with v13.0.1
This commit removes all outdated weston recipes and synchronizes it with the
latest v13.0.1 from the meta-st-openstlinux layer, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra d29d7149a7 stm-st-stm32mp: remove outdated recipes and unnecessary files
This commit removes all unnecessary files after the integration of the latest
ST BSP, based on the openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for
Yocto 5.0 (Scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 1c26e84dd1 u-boot-dey: use version v2023.10 for ccmp2
Update ccmp2 platform to use the latest U-Boot v2023.10 based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 52cbd8eb17 linux-dey: use kernel version v6.6 for ccmp2
Update ccmp2 platform to use the latest Linux kernel v6.6.48 based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra af95fadd97 stm-st-stm32mp: wayland-protocols: sync recipe to v1.33
This commit removes the outdated wayland-protocols recipe and synchronizes it
with the latest v1.33 from the meta-st-openstlinux layer, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 0b12b51044 stm-st-stm32mp: gstreamer: sync gstreamer recipes with v1.22.12
This commit removes all outdated gstreamer recipes and synchronizes it with the
latest v1.22.12 from the meta-st-openstlinux layer, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 9c502ca5b8 stm-st-stm32mp: gcnano: remove gcnano recipes from meta-digi
This commit removes the gcnano recipes integrated into meta-digi, as a new
version (v6.4.19) has been released in the latest ST BSP, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (Scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra da6311bb3b stm-st-stm32mp: scp-firmware: remove recipe integrated in optee-os v4.0.0
This commit removes the scp-firmware recipe, as it has been integrated into the
optee-os recipe with the latest v4.0.0 from the ST BSP release. This update is
based on the openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0
(Scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 13a12520fe stm-st-stm32mp: optee-os: sync optee-os-stm32mp2 recipe with v4.0.0
This commit removes all outdated OPTEE-OS recipes and synchronizes the Digi custom
.bbappend with the latest v4.0.0 from the ST BSP release, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 8b0aada42d stm-st-stm32mp: tf-a: sync arm-trusted-firmware recipe with v2.10
This commit removes all outdated TF-A recipes and synchronizes the Digi custom
.bbappend with the latest v2.10 from the ST BSP release, based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Gabriel Valcazar 51655b11dd swupdate: fix build errors in ubivol rdiff handler patch
This patch includes code that only gets compiled for platforms that use a NAND
as the internal storage. Recent changes in swupdate's "copyfile" API caused
this code to stop building.

Using the normal rdiff handler code as reference, update our custom handler to
fix the build errors. While at it, include another change to prevent a warning.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-12-04 11:23:05 +01:00
Gabriel Valcazar 655ab0cc36 swupdate: adapt patches to v2024.12
In this version, Config.in files have been renamed to Kconfig, which prevented
one of our patches from applying correctly. Rework the patch to account for
this name change and while at it, update its context.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-12-03 12:55:29 +01:00
Isaac Hermida ca9d8162df bluetooth-init: cc9: do not unload the btnxpuart on reboot
Do not take any action such as removing the btnxpuart module When
the system is being restarted (poweroff or reboot), as the driver
tries to restore the UART baudrate when removing the module, and if
the system is being off, some of the entries might be dissapeared in the
middle of the process, leading to a NULL pointer and preventing the
system of being rebooted.
The btnxpuart can be removed on suspend/resume safely, so add the logic
to detect if the system is being rebooted.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-11-28 15:41:41 +01:00
Gabriel Valcazar 17cbe3dda3 dey-toolchain: add a few IMAGE_FEATURES to include missing dev packages
This slightly increases the SDK's size, but it adds packages that are required
for common use cases such as integration with weston/x11.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-28 11:40:17 +01:00
Gabriel Valcazar 5315d84350 dey-toolchain: avoid installing kernel binaries in the toolchain
This saves a few megabytes

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-27 14:20:25 +01:00
Gabriel Valcazar 74b2a65a19 Move common SDK modifications to a new bbclass, dey-image-sdk
Our new dey-toolchain recipe was missing the logic needed to create the
"dey-version" file in the SDK's installation path. Move this logic from the
dey-image bbclass to a new bbclass meant exclusively for SDK logic, and inherit
it where needed. While at it, move other common SDK modifications to this
class.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-27 13:49:27 +01:00
Gabriel Valcazar db613ceff9 classes/images: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables
This is a cosmetic commit that mirrors poky commit 6fd8af0d30e5.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-27 12:41:39 +01:00
Gabriel Valcazar 2070d83e0b toolchains: don't overwrite default SDKIMAGE_FEATURES contents
This variable is used to determine the types of complementary packages included
in the SDK: dbg-pkgs, dev-pkgs, doc-pkgs, src-pkgs...

We added staticdev-pkgs to this variable back in Yocto 2.0 (45de4d6943), but
instead of appending it to the original list, we redefined it with its original
value ("dev-pkgs dbg-pkgs") plus "staticdev-pkgs".

However, the default value of SDKIMAGE_FEATURES in poky has changed over time:

    * Starting in Yocto 2.3 (eb345ca720e5), doc-pkgs is included if
      "api-documentation" is in DISTRO_FEATURES. We don't include this feature
      by default, but if a customer were to include it manually, the doc
      packages wouldn't get included in their custom SDKs.
    * Starting in Yocto 2.7 (ba3aa5311291), bitbake changed the default
      PACKAGE_DEBUG_SPLIT_STYLE value so debug packages get split in two: one
      for binaries with debug symbols and another for the source code. In turn,
      src-pkgs was added to the default SDKIMAGE_FEATURES so that SDKs wouldn't
      change behavior, but since we overwrite the default value, we aren't
      including src-pkgs in our SDKs, only dbg-pkgs.
    * Any future changes would be ignored as well, which could potentially lead
      to unexpected behavior.

Make sure we don't overwrite the default SDKIMAGE_FEATURES value to include
src-pkgs in our SDKs, as well as the optional doc-pkgs logic. Also, include
staticdev-pkgs in our recently created dey-toolchain recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-26 18:36:34 +01:00
Gabriel Valcazar 248c3c7f4f sdk: build.sh: only build dey-toolchain when building SDKs
Instead of having one toolchain per image, we now provide one per platform.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-26 18:36:34 +01:00
Gabriel Valcazar 7f6898e1c6 recipes-core: add new recipe for dey-toolchain, a general DEY toolchain
For many DEY releases, we've been providing one SDK per image type, per
platform. In the case of graphical images, this was redundant for a few
reasons:

    * Most of the SDK's contents were identical, save for the specific packages
      in each image (qt, webkit, lvgl...) and their dependencies. With each SDK
      occupying over 1.5 GiB, this results in a lot of storage space overhead
      in our servers.
    * For some images, namely webkit and lvgl images, their respective SDK
      packages aren't necessary for the expected development use cases, so it's
      perfectly possible to use the qt SDK instead.

Create a separate recipe for a general-use SDK. Said toolchain includes qt5/qt6
packages by default, except for headless platforms. The advantages of this are:

    * We only provide one prebuilt SDK per platform, all with the same base
      name. The SDK should cover most if not all of the expected development
      use cases, and customers are still able to create their own custom SDKs
      if needed.
    * Having a separate recipe for the toolchain, not tied to a specific image
      type, allows us to fine tune its contents without affecting images and
      their recipes. With time, we can incorporate new packages as needed.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-26 18:36:34 +01:00
Isaac Hermida 43451b06a8 cc9: standby: do not disable bluetooth on suspend if power is on
If the power domain is kept on in suspend, do not disable the Bluetooth as
no new initialization is needed.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-11-25 17:29:29 +01:00
Gabriel Valcazar 6b5402e3a1 freescale-layer: weston: make sure wayland-protocols gets included in the SDK
After poky commit 4705dd264681d908f144dd4d9bf1f6175f68d8b9, soft dependencies
for complementary packages no longer get included by bitbake's internal package
managers. Make weston's dependency with wayland-protocols a hard one to include
wayland-protocols in our SDKs, which is how it used to be in older DEY
releases.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-22 10:26:32 +01:00
Javier Viguera 58effcfc11 u-boot: disable version v2017.03 for ccimx8x
U-Boot version v2024.04 does support ccimx8x now.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-20 18:57:34 +01:00
Javier Viguera 3d2718abb7 trustfence-sign-artifact: fix AHAB-containerizing command for ccimx91
The ccmx91 uses the same AHAB-containerizing command as the ccimx93,
so fix the code to remove the hardcoding check for the ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-20 18:57:24 +01:00
Javier Viguera 437899bb95 linux-trustfence.inc: use the correct DTB file for signing
This commit in Poky:

https://git.yoctoproject.org/poky/commit/?id=fbace4111441d36026c3b5cd2ef690250ca8c448

changed the naming/symlinking of the different dtb files installed in
the deploy directory. In Yocto 4.0 we had:

146432 nov 19 14:37 ccimx8x-sbc-pro--5.15-r0.6-ccimx8x-sbc-pro-20241119124717.dtb
    61 nov 19 14:37 ccimx8x-sbc-pro-ccimx8x-sbc-pro.dtb -> ccimx8x-sbc-pro--5.15-r0.6-ccimx8x-sbc-pro-20241119124717.dtb
    61 nov 19 14:37 ccimx8x-sbc-pro.dtb -> ccimx8x-sbc-pro--5.15-r0.6-ccimx8x-sbc-pro-20241119124717.dtb

while in Yocto 5.0:

    19 nov 19 17:57 ccimx8x-sbc-pro--6.6-r0.0-ccimx8x-sbc-pro-20241119164948.dtb -> ccimx8x-sbc-pro.dtb
    19 nov 19 17:57 ccimx8x-sbc-pro-ccimx8x-sbc-pro.dtb -> ccimx8x-sbc-pro.dtb
151552 nov 19 17:57 ccimx8x-sbc-pro.dtb

Now, the regular file does not have timestamps or platform name suffixes,
so adjust the signing code to reflect this change.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-20 18:57:24 +01:00
Francisco Gil 8f78f71d3a recovery: ccmp1: update regex to include ubi1 for update partition
In single boot layout the ccmp1 platforms have two UBI devices:

ubi0: Contains uboot_config_r, linux, and recovery.
ubi1: Contains rootfs, data, and update.
The regular expression used for the update partition needs
to be updated to include the ubi1 device, ensuring proper
handling of the update partition.

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

Signed-off-by: Francisco Gil francisco.gilmartinez@digi.com
2024-11-20 15:25:53 +01:00
Javier Viguera 469868b64f trustfence-fscrypt: migrate to version 0.2 for arm64
Optee client library updated its major version due to a ABI breaking
change:

3eac340a78

This update provides a new build of the trustfence-fscrypt app, linking
to the new version of libteec.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-18 16:03:56 +01:00
Gonzalo Ruiz 26a7addc27 digi-sc-firmware: update to v1.17.0.1
This update fixes a wrong HWID programming in some variant -13
modules.

https://onedigi.atlassian.net/browse/DUB-1090

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2024-11-15 17:57:35 +01:00
Isaac Hermida e28c7a1000 p2plink: make script more robust
Upon a p2p link, an auxiliar iface "p2p-iface-[0-9]" is created. If
it is not specified to the wpa_cli command, a different interface may
be used (eg, wlan0), leading to a failure.
Make the script more robust by detecting the new interface.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-11-15 13:03:37 +01:00
Gabriel Valcazar 171e5a5db1 trustfence.bbclass: copy public key to fs only if TRUSTFENCE_SIGN is enabled
Commit 998598415a moved this logic to the
trustfence.bbclass file, but in doing so, it removed the TRUSTFENCE_SIGN check
it used to have. The check is needed for two reasons:

* The signing of SWU packages only occurs when TRUSTFENCE_SIGN is enabled, so
  there's no need to copy the key if it's disabled
* When building a project from scratch that has Trustfence enabled but
  TRUSTFENCE_SIGN disabled, a PKI is never generated and the key doesn't exist.
  Because of this, the key won't be found and an error will occur. Note that
  if your project is already pointing to a populated PKI, the error won't
  happen, only if there's no PKI to begin with.

Although the PKI is guaranteed to exist by the time the rootfs is populated,
make sure to check that it has been properly generated and create it if it
doesn't exist. This logic depends on the trustfence-gen-pki.sh from
trustfence-sign-tools-native, so add it as a dependency for
dey-image-recovery-initramfs. The dependency is already there for another
feature in the dey-image recipes, so simply reflect this new dependency in a
comment.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 8e52c27d5a8e8071c3a17754e91c1819bcceee15)
2024-11-14 13:30:03 +01:00
Isaac Hermida 1f38abf896 linux-virtualization: expand docker config extract for kernel v6.6
enable missing options for full cgroup support on a v6.6 kernel

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-11-13 13:30:07 +01:00
Javier Viguera cf9a74982c Revert "orc: fix native build on ubuntu 18"
Poky updated orc to version 0.4.40. This patch is no longer needed.

This reverts commit bee97587cb.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-11 11:35:27 +01:00
Gabriel Valcazar a274463266 dey-image: inherit populate_sdk_qt[5/6] only in dey-image-qt to avoid SDK bloat
When it comes to inheriting this qt bbclass, we used to do so for every image
inheriting the "dey-image" bbclass that had "dey-qt" in its IMAGE_FEATURES. In
theory, only dey-image-qt follows these requirements.

However, starting in DEY 3.0, we added support for multiple graphical images,
all of them sharing the same characteristics save for a defining IMAGE_FEATURE.
To implement this, all images have the IMAGE_FEATURE "dey-${GRAPHICAL_CORE}",
with GRAPHICAL_CORE having a default value of "qt" and being overwritten in
each image recipe with its respective value: "qt", "webkit", "crank" or "lvgl".
The problem is that, when checking whether to inherit populate_sdk_qt[5/6] or
not, it's still very early in the recipe parsing process and GRAPHICAL_CORE
still has its default value of "qt", meaning the "dey-qt" IMAGE_FEATURE is
considered present for all graphical images. In turn, this results in qt
packages being included in all graphical image SDKs.

Move the inherit clause to the dey-image-qt recipe and remove the check so
that the qt packages only get installed in the dey-image-qt SDK.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 593ff866578e6d341ec4d8a09581922c6390e2a4)
2024-11-08 10:30:52 +01:00
Arturo Buzarra 984def64fd meta-digi-dey: sysinfo: fix build info filename from "build" to "buildinfo"
Commit 99f1425340 ("image-buildinfo: Improve and extend to SDK coverage too")
in the Poky layer changes the name of the default build information file from
"build" to "buildinfo", so this commit reflects this change by adapting the
sysinfo script.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-11-07 12:33:07 +01:00
Javier Viguera d83cb9b914 ccimx93: update ML package for NXP release 6.6.36-2.1.0
https://onedigi.atlassian.net/browse/DEL-9257

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:17:02 +01:00
Javier Viguera c0bd349874 opencv: upgrade to version 4.10.0.imx
This is the fork that NXP utilizes for release version 6.6.36_2.1.0.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:17:02 +01:00
Javier Viguera 7228eb4738 u-boot-dey: use version v2024.04 for ccimx93
It also includes U-Boot-related recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:16:59 +01:00
Javier Viguera 1290bb044b linux-dey: use kernel version v6.6 for ccimx93
https://onedigi.atlassian.net/browse/DEL-9257

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:15:50 +01:00
Javier Viguera 0dcf68840a imx-digi-base: re-sync with meta-freescale's imx-base
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:15:50 +01:00
Arturo Buzarra f1ab3bcc69 u-boot-dey: use version v2024.04 for ccimx8x
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-11-05 17:18:29 +01:00
Gabriel Valcazar 732975b722 qt6-layer: NXP: sync with meta-imx scarthgap-6.6.36-2.1.0
Remove any content that has been upstreamed to meta-freescale and update the
recipes with the latest changes in meta-imx, while keeping our customizations.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-11-04 13:05:12 +01:00
Mike Engel a38c7599fd digi-sc-firmware: upgrade to version 1.17
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-10-31 16:47:27 +01:00
Isaac Hermida 5451a0f4bc bluetooth-init: ccimx6ul: validate FW was correctly loaded
Sporadically, the BT FW is uploaded but the interface is not functional
as it is not up and its entries are not populated. Validate the FW
was correctly set, if not, rely on the retry mechanism.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-10-31 09:59:42 +01:00
Mike Engel 5f3a9fd7da alsa-state: change audio card name
This commit changes the audio card name for the
asound configuration and state of the following
platforms:

* CCiMX8X
* CCiMX8M
* CCiMX6UL

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-10-30 13:30:46 +01:00
Gabriel Valcazar 401e99d3f0 trustfence-cst: update to cst 3.4.1
Now that the tool supports OpenSSL 3.2.3, the same version provided by Yocto
5.0 poky, we can simply use the regular Yocto version of the package and link
to it dynamically instead of building a separate version specific for the tool.
Reflect this change in the recipe and include the new binary "mac_dump" in the
package.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-29 12:14:03 +01:00
Gabriel Valcazar f02d6f9f3c trustfence-cst: use the same toolchain when building internal openssl and cst
An internal build of openssl is compiled as part of the cst build process,
which is later linked statically to the tool. When building the nativesdk
version of cst, openssl's internal "Configure" tool chooses Yocto's nativesdk
compiler for its compilation (x86_64-deysdk-linux-gcc). However, cst's Makefile
uses host tools by default, meaning it will compile its C files with the host's
gcc and link the final binary with the host's ld. This can lead to errors due
to the Yocto nativesdk compiler including symbols in the openssl libraries that
are unknown to the host's linker.

For example, when attempting to build nativesdk-trustfence-cst in Yocto 5.0 on
Ubuntu 2020.04, the following linker error appears multiple times:

undefined reference to `__isoc23_strtol'

Fix this by making sure cst uses the same toolchain as the one used when
building the internal openssl libraries (and ultimately, when the final binary
is linked together). This doesn't affect the native version of cst, which uses
the host's toolchain.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-28 16:22:16 +01:00
Gabriel Valcazar 3bf06c2c6f packagegroup-qt6-addons: only add qtpdf when "webengine" is a DISTRO_FEATURE
This was always the case until commit 498e94c9132e90fc1c406b8422e4554c6801918e
in meta-qt6, which was meant to reorganize some packages depending on the
target architecture, but removed the check for this package in the process
(while maintaining the check for other related packages). We haven't tried
building qtpdf until now, and since it's causing build errors out of the box,
we might as well remove it for now because it's only meant to be an addon
exclusive to the SDK.

Since the new package qtdoc has a dependency with qtpdf, remove it as well.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-24 13:03:09 +02:00