diff options
| -rw-r--r-- | meta-oe/recipes-crypto/leancrypto/files/0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.0.bb (renamed from meta-oe/recipes-crypto/leancrypto/leancrypto_1.6.0.bb) | 10 |
2 files changed, 5 insertions, 45 deletions
diff --git a/meta-oe/recipes-crypto/leancrypto/files/0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch b/meta-oe/recipes-crypto/leancrypto/files/0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch deleted file mode 100644 index f05497bd1a..0000000000 --- a/meta-oe/recipes-crypto/leancrypto/files/0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | From 5a3c770b24a40a4e32154f25fdba3b685b0221d2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ayoub Zaki <ayoub.zaki@embetrix.com> | ||
| 3 | Date: Thu, 19 Mar 2026 09:29:10 +0100 | ||
| 4 | Subject: [PATCH] fix: strip absolute build paths from DWARF debug info for | ||
| 5 | reproducible builds | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://github.com/smuellerDD/leancrypto/commit/6561beeadf7376cc0815d937ee8d231a3bbbcba8] | ||
| 8 | Signed-off-by: Stephan Mueller <smueller@chronox.de> | ||
| 9 | Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com> | ||
| 10 | --- | ||
| 11 | meson.build | 13 +++++++++++++ | ||
| 12 | 1 file changed, 13 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/meson.build b/meson.build | ||
| 15 | index 03616319..ba9bbcbd 100644 | ||
| 16 | --- a/meson.build | ||
| 17 | +++ b/meson.build | ||
| 18 | @@ -121,6 +121,19 @@ endif | ||
| 19 | if get_option('dilithium_debug').enabled() | ||
| 20 | add_global_arguments([ '-DLC_DILITHIUM_DEBUG' ], language: 'c') | ||
| 21 | endif | ||
| 22 | + | ||
| 23 | +# Strip build directory paths from debug info to avoid buildpaths warnings | ||
| 24 | +# in debug packages | ||
| 25 | +if cc.has_argument('-ffile-prefix-map=/dev/null=/dev/null') | ||
| 26 | + add_global_arguments([ | ||
| 27 | + '-ffile-prefix-map=' + meson.project_source_root() + '/=', | ||
| 28 | + '-ffile-prefix-map=' + meson.project_build_root() + '/=', | ||
| 29 | + ], language: 'c') | ||
| 30 | + add_project_link_arguments([ | ||
| 31 | + '-ffile-prefix-map=' + meson.project_source_root() + '/=', | ||
| 32 | + '-ffile-prefix-map=' + meson.project_build_root() + '/=', | ||
| 33 | + ], language : 'c') | ||
| 34 | +endif | ||
| 35 | if get_option('kyber_debug').enabled() | ||
| 36 | add_global_arguments([ '-DLC_KYBER_DEBUG' ], language: 'c') | ||
| 37 | endif | ||
| 38 | -- | ||
| 39 | 2.43.0 | ||
| 40 | |||
diff --git a/meta-oe/recipes-crypto/leancrypto/leancrypto_1.6.0.bb b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.0.bb index b46e6c26f5..7c9187ab94 100644 --- a/meta-oe/recipes-crypto/leancrypto/leancrypto_1.6.0.bb +++ b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.0.bb | |||
| @@ -6,21 +6,21 @@ ML-KEM (Kyber), ML-DSA (Dilithium), SLH-DSA (Sphincs+) and many more" | |||
| 6 | HOMEPAGE = "https://leancrypto.org" | 6 | HOMEPAGE = "https://leancrypto.org" |
| 7 | LICENSE = "BSD-3-Clause | GPL-2.0-only" | 7 | LICENSE = "BSD-3-Clause | GPL-2.0-only" |
| 8 | LIC_FILES_CHKSUM = " \ | 8 | LIC_FILES_CHKSUM = " \ |
| 9 | file://LICENSE;md5=7e96f38306550c165071e7cab7b6b824 \ | 9 | file://LICENSE;md5=4cc9ea7ae2518fb4fb0bbd9d1a60cbf4 \ |
| 10 | file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \ | 10 | file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \ |
| 11 | file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \ | 11 | file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \ |
| 12 | " | 12 | " |
| 13 | SECTION = "libs" | 13 | SECTION = "libs" |
| 14 | SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https \ | 14 | SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https;tag=v${PV} \ |
| 15 | file://0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch \ | ||
| 16 | file://leancrypto-tests.sh \ | 15 | file://leancrypto-tests.sh \ |
| 17 | " | 16 | " |
| 18 | # SRCREV tagged v1.6.0 | 17 | # SRCREV tagged v1.7.0 |
| 19 | SRCREV = "38215249fbe3951d1992b12447fca3c0c5e7e245" | 18 | SRCREV = "e60fba94e8cabf1661a1da488b78b84a4fba56e9" |
| 20 | 19 | ||
| 21 | inherit pkgconfig meson | 20 | inherit pkgconfig meson |
| 22 | 21 | ||
| 23 | EXTRA_OEMESON = "-Dstrip=false" | 22 | EXTRA_OEMESON = "-Dstrip=false" |
| 23 | TARGET_LDFLAGS:append = " ${DEBUG_PREFIX_MAP}" | ||
| 24 | 24 | ||
| 25 | PACKAGECONFIG ??= "secure-exec apps tests" | 25 | PACKAGECONFIG ??= "secure-exec apps tests" |
| 26 | PACKAGECONFIG[apps] = "-Dapps=enabled,-Dapps=disabled" | 26 | PACKAGECONFIG[apps] = "-Dapps=enabled,-Dapps=disabled" |
