diff options
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd/0001-build-certs.py-use-usr-bin-env-for-python3.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd/0001-fu-lzma-common.c-reduce-lzma-compression-level-from-.patch | 47 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd_2.0.16.bb (renamed from meta-oe/recipes-bsp/fwupd/fwupd_2.0.12.bb) | 4 |
3 files changed, 1 insertions, 78 deletions
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd/0001-build-certs.py-use-usr-bin-env-for-python3.patch b/meta-oe/recipes-bsp/fwupd/fwupd/0001-build-certs.py-use-usr-bin-env-for-python3.patch deleted file mode 100644 index 3a4ecb1f29..0000000000 --- a/meta-oe/recipes-bsp/fwupd/fwupd/0001-build-certs.py-use-usr-bin-env-for-python3.patch +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | From 2c3896878ba8118b48c55528c6bac98f05f223f3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
| 3 | Date: Thu, 3 Jul 2025 13:34:21 +0000 | ||
| 4 | Subject: [PATCH] build-certs.py: use /usr/bin/env for python3 | ||
| 5 | |||
| 6 | Avoids errors if python3 install path is not | ||
| 7 | in /usr/bin. | ||
| 8 | |||
| 9 | Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
| 10 | --- | ||
| 11 | data/tests/build-certs.py | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://github.com/fwupd/fwupd/pull/8998] | ||
| 15 | |||
| 16 | diff --git a/data/tests/build-certs.py b/data/tests/build-certs.py | ||
| 17 | index 3b8503b72bcf..222e8a4a0f8b 100755 | ||
| 18 | --- a/data/tests/build-certs.py | ||
| 19 | +++ b/data/tests/build-certs.py | ||
| 20 | @@ -1,4 +1,4 @@ | ||
| 21 | -#!/usr/bin/python3 | ||
| 22 | +#!/usr/bin/env python3 | ||
| 23 | # SPDX-License-Identifier: LGPL-2.1+ | ||
| 24 | |||
| 25 | import os | ||
| 26 | -- | ||
| 27 | 2.43.0 | ||
| 28 | |||
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd/0001-fu-lzma-common.c-reduce-lzma-compression-level-from-.patch b/meta-oe/recipes-bsp/fwupd/fwupd/0001-fu-lzma-common.c-reduce-lzma-compression-level-from-.patch deleted file mode 100644 index b0d3863eaa..0000000000 --- a/meta-oe/recipes-bsp/fwupd/fwupd/0001-fu-lzma-common.c-reduce-lzma-compression-level-from-.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From c96668ab830d016eeff977d5ca4f99d288cf38c0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
| 3 | Date: Tue, 8 Jul 2025 07:05:02 +0000 | ||
| 4 | Subject: [PATCH] fu-lzma-common.c: reduce lzma compression level from 9 to | ||
| 5 | default 6 | ||
| 6 | |||
| 7 | xz manual page says default is 6 and levels higher than that can cause | ||
| 8 | huge CPU and memory usage. On yocto qemu target, the fwupd tests | ||
| 9 | fail to run with compression level 9: | ||
| 10 | |||
| 11 | FuSelfTest:ERROR:../sources/fwupd-2.0.12/libfwupdplugin/fu-self-test.c:6342:fu_lzma_func: assertion failed (error == NULL): failed to set up LZMA encoder rc=5 (FwupdError, 10) | ||
| 12 | not ok /fwupd/lzma - FuSelfTest:ERROR:../sources/fwupd-2.0.12/libfwupdplugin/fu-self-test.c:6342:fu_lzma_func: assertion failed (error == NULL): failed to set up LZMA encoder rc=5 (FwupdError, 10) | ||
| 13 | |||
| 14 | With default compression level 6 the tests pass. | ||
| 15 | |||
| 16 | https://linux.die.net/man/1/xz | ||
| 17 | |||
| 18 | -6 ... -9 | ||
| 19 | Excellent compression with medium to high memory usage. | ||
| 20 | These are also slower than the lower preset levels. | ||
| 21 | The default is -6. Unless you want to maximize the compression ratio, | ||
| 22 | you probably don't want a higher preset level than -7 due to | ||
| 23 | speed and memory usage. | ||
| 24 | |||
| 25 | Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
| 26 | --- | ||
| 27 | libfwupdplugin/fu-lzma-common.c | 2 +- | ||
| 28 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 29 | |||
| 30 | Upstream-Status: Submitted [https://github.com/fwupd/fwupd/pull/9019] | ||
| 31 | |||
| 32 | diff --git a/libfwupdplugin/fu-lzma-common.c b/libfwupdplugin/fu-lzma-common.c | ||
| 33 | index a64ec773da91..d381ed52e135 100644 | ||
| 34 | --- a/libfwupdplugin/fu-lzma-common.c | ||
| 35 | +++ b/libfwupdplugin/fu-lzma-common.c | ||
| 36 | @@ -89,7 +89,7 @@ fu_lzma_compress_bytes(GBytes *blob, GError **error) | ||
| 37 | strm.next_in = g_bytes_get_data(blob, NULL); | ||
| 38 | strm.avail_in = g_bytes_get_size(blob); | ||
| 39 | |||
| 40 | - rc = lzma_easy_encoder(&strm, 9, LZMA_CHECK_CRC64); | ||
| 41 | + rc = lzma_easy_encoder(&strm, 6, LZMA_CHECK_CRC64); | ||
| 42 | if (rc != LZMA_OK) { | ||
| 43 | lzma_end(&strm); | ||
| 44 | g_set_error(error, | ||
| 45 | -- | ||
| 46 | 2.43.0 | ||
| 47 | |||
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd_2.0.12.bb b/meta-oe/recipes-bsp/fwupd/fwupd_2.0.16.bb index a40fa923f3..31b17486cb 100644 --- a/meta-oe/recipes-bsp/fwupd/fwupd_2.0.12.bb +++ b/meta-oe/recipes-bsp/fwupd/fwupd_2.0.16.bb | |||
| @@ -17,11 +17,9 @@ DEPENDS = "\ | |||
| 17 | 17 | ||
| 18 | SRC_URI = "\ | 18 | SRC_URI = "\ |
| 19 | https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ | 19 | https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ |
| 20 | file://0001-build-certs.py-use-usr-bin-env-for-python3.patch \ | ||
| 21 | file://0001-fu-lzma-common.c-reduce-lzma-compression-level-from-.patch \ | ||
| 22 | file://run-ptest \ | 20 | file://run-ptest \ |
| 23 | " | 21 | " |
| 24 | SRC_URI[sha256sum] = "83eab17ef2e65249491aef5e99419827b43ac56d40c5b0747b59ee94b147215e" | 22 | SRC_URI[sha256sum] = "79cce6b61d9ea531de0ef3b13e7f2682c699901b11f410b2ed91192618e1620e" |
| 25 | 23 | ||
| 26 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | 24 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" |
| 27 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" | 25 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" |
