From patchwork Tue Dec 7 08:36:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50EDFC433F5 for ; Tue, 7 Dec 2021 08:36:47 +0000 (UTC) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by mx.groups.io with SMTP id smtpd.web11.64550.1638866204788880389 for ; Tue, 07 Dec 2021 00:36:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o4OUNkFh; spf=pass (domain: gmail.com, ip: 209.85.208.53, mailfrom: adrian.freihofer@gmail.com) Received: by mail-ed1-f53.google.com with SMTP id v1so53891620edx.2 for ; Tue, 07 Dec 2021 00:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xYG30e9rgmVrb9m9rbDsktfaPRWT/XngDRJKHJlG6JM=; b=o4OUNkFhool16xv10CJ87UCFU5QakZcKEN1cu5Qso1NoWiZfFKUxqk2lxn5jf6Qa71 JDzdxbw/62TxHNg3xVJOhLfLBu9cUZeevWzBPSkx7QR7edNSh0RMJ5gGITUfPS5hKHeR 9bmxK164JOehowF432UbdXf6D1R2ZtCZdKBG4VklNIdfTrKqHNllPbSaAVFBqRo/2ocM pfz6aBlDid9BU0NG22QQJa1pcqsC6UknIZ3T7VNLxuV0obaeagTeQ0pvg0kGjp9ezFIN Ek0/guJ5zysliidkoA/i2ZPo9nd5QBo+5jeyEvM7xswZth1S49S17bFadLhi602kqvWH NLBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xYG30e9rgmVrb9m9rbDsktfaPRWT/XngDRJKHJlG6JM=; b=nbbP4+vs4i0Ub8nE9u2S79fWdyhK4v4XxE29WVgUQDsf0Iok/WC3Uf/u9iEHeHrBst 1Eefttw7UZAv3vRK17V8htRnzZtzL8GmljtoGCavi2twTPE+FwwdxmHl3syvJztCsbGk 2EIGPD8nQvkW1gRhIF/DzuHfgpWGr7SVeJbqCRemikux+B9zHVaHH4niqkQFO2tqjR47 opG9bpxpM4bM5tOv2XbMrvATIMwvuWa6lNNVdvWt7oqpXpWxxDqg590DLOwIQPQkVmQP M99AmUDCB8fxp3O1A9yga9O4AFu7TDOrNI6VZW4eugcUZSK5iTR4Q37+eTvufvvMrWRM Kesw== X-Gm-Message-State: AOAM531A9Gzaf2pE79mowpOYclzJgq1lCF7DjOyK8qDLmlnjoEi24IcP Jfr8OXK+k5rqQfgDFOtQWiKh1CLc+efeiA== X-Google-Smtp-Source: ABdhPJzQl/oVtdQ1o40gSy8IuOKuMzr5+XJwdm1xHTO0nrxoD0SEKQbdN7Za36oTM6JJTbKWfMkFww== X-Received: by 2002:a50:8d47:: with SMTP id t7mr6854617edt.14.1638866202833; Tue, 07 Dec 2021 00:36:42 -0800 (PST) Received: from md2ramxc.ad001.siemens.net ([62.32.0.69]) by smtp.gmail.com with ESMTPSA id dz18sm10289335edb.74.2021.12.07.00.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 00:36:42 -0800 (PST) From: Adrian Freihofer X-Google-Original-From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH] qemuboot.bbclass: do_write_qemuboot_conf after wic Date: Tue, 7 Dec 2021 09:36:05 +0100 Message-Id: <20211207083605.845470-1-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Dec 2021 08:36:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/159283 Allow to run do_write_qemuboot_conf later. The use case is to create a cryptographically signed firmware image with wic and boot it with runqemu. The signatures are generated by wic and forwarded to runqemu. Therefore do_write_qemuboot_conf must be allowed to run after do_image_wic. Signed-off-by: Adrian Freihofer --- meta/classes/qemuboot.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index 7a5afe0c1d..12c5501a99 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass @@ -89,7 +89,7 @@ QB_ROOTFS_EXTRA_OPT ?= "" QB_DRIVE_TYPE ?= "/dev/sd" # Create qemuboot.conf -addtask do_write_qemuboot_conf after do_rootfs before do_image +addtask do_write_qemuboot_conf after do_rootfs before do_image_complete IMGDEPLOYDIR ?= "${WORKDIR}/deploy-${PN}-image-complete" def qemuboot_vars(d):