Return-Path: Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mail.openembedded.org (Postfix) with ESMTP id 967DD7E511 for ; Sat, 8 Jun 2019 08:00:10 +0000 (UTC) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x5880Acp025439 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 8 Jun 2019 10:00:10 +0200 Received: from dev.vm6.ccp.siemens.com ([139.22.37.201]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id x58808kQ007600; Sat, 8 Jun 2019 10:00:08 +0200 Received: from dev.localdomain (localhost [127.0.0.1]) by dev.vm6.ccp.siemens.com (Postfix) with ESMTP id 1377A2273143; Sat, 8 Jun 2019 10:00:08 +0200 (CEST) From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Date: Sat, 8 Jun 2019 09:59:48 +0200 Message-Id: <20190608075948.30537-5-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190608075948.30537-1-adrian.freihofer@siemens.com> References: <20190608075948.30537-1-adrian.freihofer@siemens.com> Cc: Adrian Freihofer Subject: [meta-oe][PATCH v3 4/4] runqemu: add wic-fs and wic-wm paramters 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: Sat, 08 Jun 2019 08:00:11 -0000 This is an optional follow up for the previous commit. It allows to define if wic images are handled as vm or as fs type images by command line argument. Signed-off-by: Adrian Freihofer --- scripts/runqemu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/runqemu b/scripts/runqemu index 71894c9ca8..c730a72168 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -76,6 +76,8 @@ of the following environment variables (in any order): publicvnc - enable a VNC server open to all hosts audio - enable audio [*/]ovmf* - OVMF firmware file or base name for booting with UEFI + wic-fs - Start Qemu with -kernel parameter for wic images (default if -machine virt) + wic-vm - Start Qemu without -kernel parameter for wic images (default otherwise) tcpserial= - specify tcp serial port number biosdir= - specify custom bios dir biosfilename= - specify bios filename @@ -455,6 +457,10 @@ class BaseConfig(object): self.rootfs = arg elif arg.startswith('ovmf'): self.ovmf_bios.append(arg) + elif arg == 'wic-fs': + self.wic_fs = True + elif arg == 'wic-vm': + self.wic_fs = False else: # At last, assume it is the MACHINE if (not unknown_arg) or unknown_arg == arg: -- 2.11.0