diff options
| -rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.13.0.bb | 4 |
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 | ||
| 24 | do_install:append() { | 24 | do_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 | ||
| 29 | python do_package:prepend() { | 31 | python do_package:prepend() { |
