diff options
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 76f0e7da1f3..8ec4992db36 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -168,6 +168,9 @@ python rm_systemd_unitdir (){ systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) if os.path.exists(systemd_unitdir): shutil.rmtree(systemd_unitdir) + base_libdir = oe.path.join(d.getVar("D", True), d.getVar('base_libdir', True)) + if (os.path.exists(base_libdir) and not os.listdir(base_libdir)): + os.rmdir(base_libdir) } do_install[postfuncs] += "rm_systemd_unitdir " |