summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2015-04-08 14:36:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:43 +0100
commit2bb285d6b8747fb0daf1bee6d5aaad95d8b45a7c (patch)
treeade8192f3b2b11c5da6dd61d82f436c48c36750e /meta/recipes-connectivity
parent5553c4cd8d22033640242cd6129e18b73782c479 (diff)
downloadast2050-yocto-poky-2bb285d6b8747fb0daf1bee6d5aaad95d8b45a7c.zip
ast2050-yocto-poky-2bb285d6b8747fb0daf1bee6d5aaad95d8b45a7c.tar.gz
connman: Create connman.service at proper moment
ConnMan commit ac332c5d01b0737c18cb58c8ccc67cf6b0427e1d changes how the connman.service file is created from .in file. After that commit, the file is created by Makefile instead of configure. This means that we need to tweak the service file in compile time instead of configure time because the generated file will not be there after the configuration. This commit can be used even with older ConnMan version as the connman.service file is there when the compilation happens. (From OE-Core master rev: 32839103727d92a6580f916b6dd8e4439b2347c8) (From OE-Core rev: 66d8cec7225cae7269c539d9372a1364c9cefc0d) Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index e281e39..d068ba8 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -71,16 +71,14 @@ SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
inherit autotools pkgconfig systemd update-rc.d
-do_configure_append () {
- sed -i "s#ExecStart=#${SYSTEMD_WIRED_SETUP}\nExecStart=#" ${B}/src/connman.service
-}
-
# This allows *everyone* to access ConnMan over DBus, without any access
# control. Really the at_console flag should work, which would mean that
# both this and the xuser patch can be dropped.
do_compile_append() {
sed -i -e s:deny:allow:g ${S}/src/connman-dbus.conf
sed -i -e s:deny:allow:g ${S}/vpn/vpn-dbus.conf
+
+ sed -i "s#ExecStart=#${SYSTEMD_WIRED_SETUP}\nExecStart=#" ${B}/src/connman.service
}
do_install_append() {
OpenPOWER on IntegriCloud