From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com ([143.182.124.37]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TvD3I-00087L-3e for openembedded-core@lists.openembedded.org; Tue, 15 Jan 2013 21:24:13 +0100 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 15 Jan 2013 12:08:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,475,1355126400"; d="scan'208";a="244286471" Received: from sentry (HELO localhost.localdomain) ([10.237.105.30]) by azsmga001.ch.intel.com with ESMTP; 15 Jan 2013 12:08:43 -0800 From: Cristian Iorga To: openembedded-core@lists.openembedded.org Date: Tue, 15 Jan 2013 22:08:46 +0200 Message-Id: <1358280527-14078-3-git-send-email-cristian.iorga@intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1358280527-14078-1-git-send-email-cristian.iorga@intel.com> References: <1358280527-14078-1-git-send-email-cristian.iorga@intel.com> Subject: [PATCH V4 2/3] connman-conf: configures connman in qemu machines X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 20:24:31 -0000 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. Signed-off-by: Cristian Iorga --- meta/conf/layer.conf | 1 + meta/recipes-connectivity/connman/connman-conf.bb | 18 ++++++++++++++++++ .../connman/connman-conf/qemuall/main.conf | 3 +++ 3 files changed, 22 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/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