Add variables for path of systemd's unit files 39/4439/2
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Wed, 9 Dec 2015 04:27:29 +0000 (13:27 +0900)
committerGerrit Code Review <gerrit@172.30.200.200>
Wed, 9 Dec 2015 17:07:20 +0000 (17:07 +0000)
To use systemd user mode from recipes, it convenient that
some variables are available, which point proper paths for unit files.
For that, backport 2 variables which has been added latest poky.

(From Poky rev:319a69f1d757a577b50a2ca9c8fbf845eba8e274)

When upgrading poky in future, these variables should be removed
from poky-agl.conf.

Change-Id: I8ba7594b488ecd6421caf7dde484eb6b091ff0de
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
meta-agl/conf/distro/poky-agl.conf

index 58abfcd..2f80f3f 100644 (file)
@@ -18,6 +18,11 @@ PREFERRED_PROVIDER_udev-utils ?= "systemd"
 VIRTUAL-RUNTIME_init_manager = "systemd"
 VIRTUAL-RUNTIME_initscripts = ""
 
+# Backport from poky:319a69f1d757a577b50a2ca9c8fbf845eba8e274
+export systemd_system_unitdir = "${nonarch_base_libdir}/systemd/system"
+export nonarch_libdir = "${exec_prefix}/lib"
+export systemd_user_unitdir = "${nonarch_libdir}/systemd/user"
+
 # Override these in poky based distros
 AGL_DEFAULT_DISTRO_FEATURES = "systemd opengl wayland pam bluetooth bluez5"
 AGL_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"