diff mbox series

make-mod-scripts: exclude rm_work

Message ID 20231025115933.1006-1-jose.quaresma@foundries.io
State New
Headers show
Series make-mod-scripts: exclude rm_work | expand

Commit Message

Jose Quaresma Oct. 25, 2023, 11:59 a.m. UTC
- Add the recipe to the RM_WORK_EXCLUDE

With rm_work active, external module signing throws an error:
scripts/sign-file: error while loading shared libraries: libcrypto.so.3: can not open shared object file: No such file or directory
Preserve libraries that sign-file script needs during runtime.

Some solutions [1][2] for this problem have already been submitted
on the mailing list but none of them get merged:

[1] Fix using RM_WORK_EXCLUDE_ITEMS
    https://lists.openembedded.org/g/openembedded-core/message/180113

[2] Fix using static linking
    https://lists.openembedded.org/g/openembedded-core/message/182024

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
index f6f47cfff5..6dcca738a8 100644
--- a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
+++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb
@@ -10,6 +10,8 @@  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 S = "${WORKDIR}"
 
+RM_WORK_EXCLUDE += "${PN}"
+
 do_configure[depends] += "virtual/kernel:do_shared_workdir openssl-native:do_populate_sysroot"
 do_compile[depends] += "virtual/kernel:do_compile_kernelmodules"