summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2021-08-26 12:56:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-27 11:54:34 +0100
commit91a29ab9e9c99fc75cb854827016bc739332e12b (patch)
tree7a673560469c5171af15aad155b88334e2a6ea7b
parent7768da3fe88619eefce38ab8f785fd95a544a794 (diff)
downloadpoky-91a29ab9e9c99fc75cb854827016bc739332e12b.tar.gz
lttng-modules: do not search in non-existing folder during install
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. (From OE-Core rev: de0aa1700ed4e6f04b0a233eb1f6d2ac598e7ed8) Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb4
1 files changed, 3 insertions, 1 deletions
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 109f5d6933..72d912eaf6 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"
23 23
24do_install:append() { 24do_install:append() {
25 # Delete empty directories to avoid QA failures if no modules were built 25 # Delete empty directories to avoid QA failures if no modules were built
26 find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \; 26 if [ -d ${D}/${nonarch_base_libdir} ]; then
27 find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \;
28 fi
27} 29}
28 30
29python do_package:prepend() { 31python do_package:prepend() {