From: Muhammad Shakeel <muhammad_shak...@mentor.com> If systemd is not supported DISTRO_FEATURE than there is no need to package related service files.
Signed-off-by: Muhammad Shakeel <muhammad_shak...@mentor.com> --- meta/classes/systemd.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 0447e53..9763faa 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -161,3 +161,12 @@ python systemd_populate_packages() { } PACKAGESPLITFUNCS_prepend = "systemd_populate_packages " + +python rm_systemd_unitdir (){ + import shutil + if "systemd" not in d.getVar("DISTRO_FEATURES", True).split(): + systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) + if os.path.exists(systemd_unitdir): + shutil.rmtree(systemd_unitdir) +} +do_install[postfuncs] += "rm_systemd_unitdir " -- 1.7.9.5 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core