summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
authorChris Laplante <mostthingsweb@gmail.com>2021-01-11 12:52:49 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-27 09:32:45 +0000
commit349d741c3958ae212cc0ece10eae3e276c974bb8 (patch)
tree43a896877aa46c4947cecae60c852a87e66e9734 /meta/classes/systemd.bbclass
parenta4d614791ba9b7e98e4b7a67657fadf82b88a345 (diff)
downloadpoky-349d741c3958ae212cc0ece10eae3e276c974bb8.tar.gz
systemd.bbclass: improve error message when a service unit specified in SYSTEMD_SERVICE is not found
The previous message was fairly useless without diving into the bbclass. (From OE-Core rev: f4fd434292d3f2d7e4a3dd97ae55ad5714357d9f) Signed-off-by: Chris Laplante <mostthingsweb@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ef6117b148be65536e89409a83cbfd22049c652e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 9e8a82c9f1..a4bff732b9 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -174,7 +174,8 @@ python systemd_populate_packages() {
174 if path_found != '': 174 if path_found != '':
175 systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) 175 systemd_add_files_and_parse(pkg_systemd, path_found, service, keys)
176 else: 176 else:
177 bb.fatal("SYSTEMD_SERVICE_%s value %s does not exist" % (pkg_systemd, service)) 177 bb.fatal("Didn't find service unit '{0}', specified in SYSTEMD_SERVICE_{1}. {2}".format(
178 service, pkg_systemd, "Also looked for service unit '{0}'.".format(base) if base is not None else ""))
178 179
179 def systemd_create_presets(pkg, action): 180 def systemd_create_presets(pkg, action):
180 presetf = oe.path.join(d.getVar("PKGD"), d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg) 181 presetf = oe.path.join(d.getVar("PKGD"), d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg)