From: Cristian Iorga <cristian.iorga@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH V3 2/2] connman-conf: configures connman in qemu machines
Date: Fri, 11 Jan 2013 12:53:38 +0200 [thread overview]
Message-ID: <1357901618-21786-3-git-send-email-cristian.iorga@intel.com> (raw)
In-Reply-To: <1357901618-21786-1-git-send-email-cristian.iorga@intel.com>
For qemu machines, connman should not configure
virtual wired interfaces. Wired interfaces (eth0)
are assigned static IP addresses by the virtual machine
manager (qemu). This packages places the eth0 interface in
a list of blacklisted interfaces, forbiding connman
administering wired interfaces for qemu machines.
Fixes [YOCTO #3227].
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
meta/conf/layer.conf | 1 +
meta/conf/machine/include/qemu.inc | 2 ++
meta/recipes-connectivity/connman/connman-conf.bb | 18 ++++++++++++++++++
.../connman/connman-conf/qemuall/main.conf | 3 +++
4 files changed, 24 insertions(+)
create mode 100644 meta/recipes-connectivity/connman/connman-conf.bb
create mode 100644 meta/recipes-connectivity/connman/connman-conf/qemuall/main.conf
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index 78ceae9..3259e5c 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -22,6 +22,7 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
shadow-securetty \
opkg-config-base \
netbase \
+ connman-conf \
formfactor \
xserver-xf86-config \
pointercal \
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc
index 5d59a7f..c1012ab 100644
--- a/meta/conf/machine/include/qemu.inc
+++ b/meta/conf/machine/include/qemu.inc
@@ -10,6 +10,8 @@ XSERVER ?= "xserver-xorg \
MACHINE_FEATURES = "apm alsa pcmcia bluetooth irda usbgadget screen"
+MACHINEOVERRIDES .= ":qemuall"
+
IMAGE_FSTYPES += "tar.bz2 ext3"
ROOT_FLASH_SIZE = "280"
diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb
new file mode 100644
index 0000000..7c7ef26
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-conf.bb
@@ -0,0 +1,18 @@
+#connman config to ignore wired interfaces on qemu machines
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI_append_qemuall = " file://main.conf"
+
+PR = "r0"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_install() {
+ #Blacklist ethn network interface in case of qemu* machines
+ if test -e ${WORKDIR}/main.conf; then
+ install -d ${D}${sysconfdir}/connman
+ install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman
+ fi
+}
diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/main.conf b/meta/recipes-connectivity/connman/connman-conf/qemuall/main.conf
new file mode 100644
index 0000000..01973e7
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-conf/qemuall/main.conf
@@ -0,0 +1,3 @@
+[General]
+
+NetworkInterfaceBlacklist = eth
--
1.7.10.4
next prev parent reply other threads:[~2013-01-11 11:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 10:53 [PATCH V3 0/2] connman 1.10 upgrade and qemu networking fix Cristian Iorga
2013-01-11 10:53 ` [PATCH V3 1/2] connman: upgrade to 1.10 Cristian Iorga
2013-01-11 10:53 ` Cristian Iorga [this message]
2013-01-11 11:27 ` [PATCH V3 2/2] connman-conf: configures connman in qemu machines Martin Jansa
2013-01-11 12:01 ` Iorga, Cristian
2013-01-11 12:22 ` Enrico Scholz
2013-01-11 13:00 ` Iorga, Cristian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357901618-21786-3-git-send-email-cristian.iorga@intel.com \
--to=cristian.iorga@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.