Commit Graph

31981 Commits

Author SHA1 Message Date
Leonard Göhrs
08934d75ae
panel-mipi-dbi.bbclass: initial addition of the firmware blob class
The `panel-mipi-dbi.bbclass` can be used to build a firmware file for use
with the `panel-mipi-dbi` Linux driver.

The class uses the `mipi-dbi-cmd` from `panel-mipi-dbi-native` to
assemble a human readable list of init commands into a firmware file
for use with the `panel-mipi-dbi` Linux driver.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-01 06:43:16 -07:00
Leonard Göhrs
6cf665bde8
panel-mipi-dbi: initial addition of the firmware blob assembler
This python script assembles a list of human readable commands into
a firmware blob.

The firmware blob is interpreted by the `panel-mipi-dbi` Linux driver
to initialize a MIPI DBI display panel and its controller.

MIPI DBI is not to be confused with MIPI DSI.
The former is usually used to drive small displays that are attached
via SPI, while the latter is a fast communication standard using
differential signaling, that is also suitable for larger displays.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-01 06:43:16 -07:00
Johannes Schneider
4a05d9a185
signing.bbclass: add label length check
Add a (more helpful) error message in case the Package-Name exceeds a
certain length which would have the softhsm tools error out.

The $PN is used as 'label' in the softhsm, which is a
"CK_UTF8CHAR paddedLabel[32]" in softhsm2-util.cpp,
so it must not be longer.

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-01 06:43:15 -07:00
Johannes Schneider
a825b85363
signing.bbclass: add certificate ca-chain handling
Add handling of ca-chains which can consist of more than one
certificate in a .pem file, which need to be split off, processed and
stored separately in the softhsm - as the tool-chain
signing.bbclass::signing_import_cert* -> softhsm -> 'extract-cert'
only supports one-per-file, due to using/expecting "plain" x509
in-/output.

The added signing_import_cert_chain_from_pem function takes a <role>
basename, and iterates through the input .pem file, creating numbered
<role>_1, _2, ... roles as needed.

Afterwards the certificates can be used or extracted one-by-one from
the softhsm, using the numbered roles; the only precondition - or
limitation - is that the PKI structure has to be known beforhand;
e.g. how many certificates are between leaf and root.

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-01 06:43:15 -07:00
Yoann Congal
4990a36eb4
zfs: fix host-related reproducibility
The zfs package content varies depending the host distro.
To fix this, force target distribution ("vendor") to Debian to match
default values for things like: NFS server service name, bash completion
path, configuration files, ...
The Debian values do match the OpenEmbedded ones.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 12:04:02 -07:00
Markus Volk
52c7dc2a2b
mpv: cleanup and improvements
- add PACKAGECONFIG for lcms2
- fix dependencies for vulkan and vdpau
- replace leftover from autotools EXTRA_OECONF -> EXTRA_OEMESON
- vaapi-x-egl option has been removed
- gl-wayland option has been renamed to egl-wayland
- explicitly disable shaderc which is only required for windows builds

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 12:04:02 -07:00
Martin Jansa
b2a66eead1
python3-django: rename .inc file to BPN.inc
* this one has 2 versions, so the .inc file cannot be folded into .bb files
  but we can at least rename it to start with BPN for consistency

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:26 -07:00
Martin Jansa
b8ce4f282b
python3-flask-sijax: fold .inc file into .bb
* python2 is long dead, kill .inc file as well

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:26 -07:00
Martin Jansa
770a55c38d
python3-flask-bootstrap: fold .inc file into .bb
* python2 is long dead, kill .inc file as well

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
d59fc4da5b
python3-django-south: fold .inc file into .bb
* python2 is long dead, kill .inc file as well

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
b4e8b40874
python3-rfc3986-validator: drop unnecessary FILESEXTRAPATHS
* rename python-rfc3986-validator to BPN python3-rfc3986-validator
  which is included in default FILESPATH

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
137456e900
python3-flask-xstatic: drop unnecessary FILESEXTRAPATHS and fold .inc into .bb
* python2 is long dead, kill .inc file as well

* rename python-flask-xstatic to BPN python3-flask-xstatic
  which is included in default FILESPATH

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
6f709c10f0
python3-pykickstart: drop unnecessary FILESEXTRAPATHS
* 'files' was always in default FILESPATH, no need to add it again with FILESEXTRAPATHS

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
9413b9c1c3
python3-m2crypto: drop unnecessary FILESEXTRAPATHS
* python-m2crypto directory doesn't exist since:
  commit b8bbcd4dea
  Author: Khem Raj <raj.khem@gmail.com>
  Date:   Sat May 1 12:04:27 2021 -0700

    python3-m2crypto: Upgrade to 0.37.1

    Unifiy .inc into .bb
    Add patches to fix issues with openssl 1.1.x
    Remove m2crypto-0.26.4-gcc_macros patch, its no longer needed
    Refresh existing patches

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
77cf4b81ee
colord-native: rename directory and drop unnecessary FILESEXTRAPATHS
* ${BPN}-native is weird work around for ${P} and ${PN} being dropped
  from default FILESPATH in 2012 with:
  https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=fb359583b659cda643973fa285002aaffb729a51

  better to just rename directory to something which is included
  in the default value (like BPN) the filename are different in
  target and native colord build so they don't need to be in
  separate directories.

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:25 -07:00
Martin Jansa
b7a096064b
perfetto: drop unnecessary FILESEXTRAPATHS
* we already have a common directory in default FILESPATH called 'files'

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:24 -07:00
Martin Jansa
8a676c670c
libgpiod: improve FILESEXTRAPATHS
* I thought that PN in FILESEXTRAPATHS worked as everywhere else and
  as described in:
  https://lore.kernel.org/all/2261745fc01a4e3887ee98f98a425e88@vivavis.com/T/

* but surprisingly (to me)
  FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
  ends with effectively ${BPN}-2.x in bitbake -e (and the build doesn't fail
  to fetch file://gpio-manager.init in lib32-libgpiod build

* I've tried with kirkstone and dunfell as well and it ends with
  "libgpiod-2.x" for all 3 PNs:
  dunfell $ grep ^FILESEXTRAPATHS= env.* | sed 's@/OE.*dunfell/@@g'
  env.lib32-libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:"
  env.libgpiod:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:"
  env.libgpiod-native:FILESEXTRAPATHS="meta-oe/meta-oe/recipes-support/libgpiod/libgpiod-2.x:__default:"

  dunfell $ grep ^PN= env.*
  env.lib32-libgpiod:PN="lib32-libgpiod"
  env.libgpiod:PN="libgpiod"
  env.libgpiod-native:PN="libgpiod-native"

  There is the QA check for PN in SRC_URI, maybe I took it a bit
  further and updated all FILESEXTRAPATHS references as well in our
  layers (in 2023) even when it wasn't causing build failures, e.g.:
  38d3cbf010

* so it's not so important to use BPN, but it's a bit clearer as that's
  what it ends evaluated into and what default FILESPATH is using as well:

  meta/classes-global/base.bbclass:FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
  meta/conf/bitbake.conf:#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"

  BPN was added in denzil 2009 (and FILESPATH moved to base.bbclass,
  bitbake.conf has commented-out value since then):
  https://git.openembedded.org/openembedded-core/commit/?h=denzil&id=94c895aad5ad286f172b04bc33ba670220d5eba8

  PF was dropped in dylan 2012:
  https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=3efa13cd76bbd5611805021945fc9def88d9fd93

  P and PN were dropped shortly after in dylan 2012:
  https://git.openembedded.org/openembedded-core/commit/?h=dylan&id=fb359583b659cda643973fa285002aaffb729a51

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 08:13:24 -07:00
Andrea Ricchi
06ac0733cc
asyncmqtt: add recipe
async_mqtt is an C++ library for asynchronous MQTT communication.
The library is header-only using C++17 and Boost libraries; the main
features are client and server support, MQTT v3.1.1 and v5.0 support,
continuous packet sending and auto acquiring/mapping topic alias is
supported.

Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-31 06:24:13 -07:00
Bartosz Golaszewski
ec67268d5e
libgpiod: selectively enable GObject introspection
The oe-core bbclass for GObject introspection sets GI_DATA_ENABLED if
the relevant distro feature is enabled. That means that it's up to the
inheriting recipe to disable it if needed.

For libgpiod: we only want to enable it if any of the GLib based
packages is being generated (GLib bindings, D-Bus daemon or ptest).

This also effectively reverts commit 78a332939f (libgpiod_2.2: depend
on glib-2.0) which indiscriminately pulls in GLib for all packages
generated by this recipe which feels like shooting a fly with a cannon.

Fixes: 9626e8a2c8 ("libgpiod: update to v2.2")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 15:57:12 -07:00
Jan Vermaete
0f692c3ab7
swagger-ui: OpenAPI (aka swagger) website (v5.17.14)
New recipe with the static version of the Swagger UI.

This is *not* a NPM version of the website (swagger-ui, swagger-ui-dist, swagger-ui-react).
But the static release.

  Plain old HTML/CSS/JS (Standalone)

  The folder /dist includes all the HTML, CSS and JS files needed to run SwaggerUI on a static website or CMS, without requiring NPM.

      Download the latest release.
      Copy the contents of the /dist folder to your server.
      Open swagger-initializer.js in your text editor and replace "https://petstore.swagger.io/v2/swagger.json" with the URL for your OpenAPI 3.0 spec.

  -- https://github.com/swagger-api/swagger-ui/blob/HEAD/docs/usage/installation.md#plain-old-htmlcssjs-standalone

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 12:34:00 -07:00
Martin Jansa
40396e20b3
libgpiod: drop wrong S assignment
* the default from bitbake.conf:
  S = "${WORKDIR}/${BP}"
  works better, because it points to correct directory even with e.g. when
  building lib32-libgpiod with multilib

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 09:37:22 -07:00
Hieu Van Nguyen
0e2ed14c7a
libmtp: enable stack memory protection
Add 0002-util-mtp-hotplug.c-Enable-stack-memory-protection.patch:
Use "return 0" instead of "exit(0)" to let the program exit normally
by returning from the main function. This allows the compiler to
perform necessary cleanup operations, including stack canary checks.

Signed-off-by: Hieu Van Nguyen <hieu2.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 08:24:31 -07:00
Alex Kiernan
cedfa1be3a
mdns: Upgrade 2200.140.11 -> 2559.1.1
Add local fixes for:

* definition for MAX()
* missing `limit` declarations

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 08:24:30 -07:00
Max Krummenacher
78a332939f
libgpiod_2.2: depend on glib-2.0
In my setup a build fails with

| checking for gobject-introspection... configure: error: gobject-introspection-1.0 is not installed
| NOTE: The following config.log files may provide further information.
| NOTE: /var/home/krm/build/oe-core_master/build/tmp/work/cortexa55-tdx-linux/libgpiod/2.2/build/config.log
| ERROR: configure failed

From config.log this seems to be related to glib-2.0 not found:

| configure:22484: $PKG_CONFIG --exists --print-errors "gobject-introspection-1.0"
| Package glib-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `glib-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| Package 'glib-2.0', required by 'gobject-introspection-1.0', not found
| configure:22487: $? = 1
| configure:22491: error: gobject-introspection-1.0 is not installed

Note that glib-2.0.pc is present in recipes-sysroot-native but not
in recipes-sysroot.

Adding glib-2.0 to depends allows successful build of libgpiod 2.

Fixes: 117d09ce43c7 ("libgpiod: update to v2.2")
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-29 18:13:41 -07:00
Jan Vermaete
ab095d3ab4
python3-apispec: Upgrade 6.6.1 to 6.7.0
Bug fixes:

    Fix handling of fields.Dict() with values unset

Other changes:

    Officially support Python 3.13
    Drop support for Python 3.8

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-29 14:15:42 -07:00
Khem Raj
8ca014a96d
python3-pydantic: Upgrade to 2.9.2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:23 -07:00
Khem Raj
51baa456a2
python3-pydantic-core: Upgrade to 2.25.0
Needed for py 3.13 support in pydantic 2.9 recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:23 -07:00
Khem Raj
e17b039f92
python3-eventlet: Add new thread attributes from Python 3.13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:22 -07:00
Khem Raj
36a2ea12eb
python3-pylint: Upgrade to 3.3.1 release
brings python 3.13 support

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:22 -07:00
Khem Raj
79e2872817
python3-pint: Backport a proposed fix to support python 3.13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:22 -07:00
J. S.
67e8416273
libxml-sax-writer-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:35 -07:00
J. S.
09c818c5c4
libxml-libxml-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:35 -07:00
J. S.
2a3c32bf89
libxml-filter-buffertext-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:35 -07:00
J. S.
2061abfecf
libtext-iconv-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:35 -07:00
J. S.
37c9547082
libproc-waitstat-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
93ed9d3540
libnet-telnet-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
a3c65bd1e8
libnet-ssleay-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
590f3f4674
libnet-libidn-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
aba72f4c1e
libnet-dns-sec-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
079e4d1f1d
libnet-dns-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
a4c3553a74
libmime-types-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:34 -07:00
J. S.
23e18360ad
libipc-signal-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
2b70f0b0c9
libhtml-parser-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
d3e823611f
libfile-slurp-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
87ee1a0786
liberror-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
ea3c8d155e
libenv-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
96f4424363
libdigest-sha1-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:33 -07:00
J. S.
f034aea85e
libdigest-hmac-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:32 -07:00
J. S.
a52b31d2a5
libdata-hexdump-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:32 -07:00
J. S.
f505d18cc9
libconfig-tiny-perl: Use ${CPAN_MIRROR}
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 17:54:32 -07:00