Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mail.openembedded.org (Postfix) with ESMTP id 7A4046C4FF for ; Thu, 22 Nov 2018 09:25:59 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2018 01:26:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,265,1539673200"; d="scan'208";a="93126090" Received: from andromeda02.png.intel.com ([10.221.183.11]) by orsmga006.jf.intel.com with ESMTP; 22 Nov 2018 01:25:59 -0800 From: Yeoh Ee Peng To: openembedded-core@lists.openembedded.org Date: Thu, 22 Nov 2018 17:10:46 +0800 Message-Id: <1542877846-77570-5-git-send-email-ee.peng.yeoh@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542877846-77570-1-git-send-email-ee.peng.yeoh@intel.com> References: <1542877846-77570-1-git-send-email-ee.peng.yeoh@intel.com> Subject: [PATCH 4/4 v2] testimage: Add support for slirp X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 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: Thu, 22 Nov 2018 09:25:59 -0000 Enable testimage to support qemu slirp. Configure "QEMU_USE_SLIRP" & "TEST_SERVER_IP" variables to enable slirp. [YOCTO#10713] Signed-off-by: Yeoh Ee Peng --- meta/classes/testimage.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 92e5686..82cbb06 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -236,6 +236,10 @@ def testimage_main(d): else: kvm = False + slirp = False + if d.getVar("QEMU_USE_SLIRP"): + slirp = True + # TODO: We use the current implementatin of qemu runner because of # time constrains, qemu runner really needs a refactor too. target_kwargs = { 'machine' : machine, @@ -247,6 +251,7 @@ def testimage_main(d): 'boottime' : boottime, 'bootlog' : bootlog, 'kvm' : kvm, + 'slirp' : slirp, } # TODO: Currently BBPATH is needed for custom loading of targets. -- 2.7.4