When CONFIG_TRACEPOINTS is not enabled in kernel config - module
compilation is skipped, which causes the ${D}/${nonarch_base_libdir} not
to be created.

This fails later in do_install:append() due to the fact that find
command in executed for non-existing folder.

Check for folder existence before find command in executed.

Signed-off-by: Andrey Zhizhikin <[email protected]>
---
 meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb 
b/meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb
index 109f5d69335..72d912eaf63 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb
@@ -23,7 +23,9 @@ MODULES_MODULE_SYMVERS_LOCATION = "src"
 
 do_install:append() {
        # Delete empty directories to avoid QA failures if no modules were built
-       find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \;
+       if [ -d ${D}/${nonarch_base_libdir} ]; then
+               find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec 
rmdir {} \;
+       fi
 }
 
 python do_package:prepend() {
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#155356): 
https://lists.openembedded.org/g/openembedded-core/message/155356
Mute This Topic: https://lists.openembedded.org/mt/85160193/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to