summaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorEnrico Jorns <ejo@pengutronix.de>2016-09-20 09:43:29 +0200
committerEnrico Jorns <ejo@pengutronix.de>2016-09-20 09:43:29 +0200
commit5154f974e80db322c0664140263f0f6862a9aeac (patch)
tree02b28eab291b5c850e4a071309e71a25d5cc51d8 /recipes-core
parent6290766d5b78ce26144f3e2b155f7ba04dc535cb (diff)
downloadmeta-ptx-5154f974e80db322c0664140263f0f6862a9aeac.tar.gz
meta-ptx-5154f974e80db322c0664140263f0f6862a9aeac.tar.xz
rauc: explicitly set systemd and dbus paths for configure
If not set, these pathes will be determined by running pkg_config. As systemd is not in the DEPENDS of rauc, it could happen that rauc was configured before systemd was built, leading to an empty value for the unitdir path and thus the rauc.service file was not built. This led to ERROR: Function failed: SYSTEMD_SERVICE_rauc-service value rauc.service does not exist Now, the pathes are set explicitly which makes the package build correctly but avoids a build dependency on systemd. Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/rauc/rauc.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-core/rauc/rauc.inc b/recipes-core/rauc/rauc.inc
index 5cc351a..964cdad 100644
--- a/recipes-core/rauc/rauc.inc
+++ b/recipes-core/rauc/rauc.inc
@@ -34,6 +34,12 @@ RAUC_KEYRING_FILE[doc] = "Path to keyring file to be placed in rauc images"
SRC_URI += "file://${RAUC_KEYRING_FILE}"
+EXTRA_OECONF += "\
+ --with-systemdunitdir=${systemd_system_unitdir} \
+ --with-dbuspolicydir=${datadir}/dbus-1/system.d \
+ --with-dbussystemservicedir=${datadir}/dbus-1/system-services \
+ "
+
do_install_append_class-target () {
# Create rauc config dir