From patchwork Thu Feb 17 23:54:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 1508 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA; Fri, 18 Feb 2022 10:54:54 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oi1-f192.google.com (mail-oi1-f192.google.com [209.85.167.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id 21I9srxq001978 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 18 Feb 2022 10:54:54 +0100 Received: by mail-oi1-f192.google.com with SMTP id s184-20020aca45c1000000b002d487b30e39sf1434247oia.11 for ; Fri, 18 Feb 2022 01:54:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645178088; cv=pass; d=google.com; s=arc-20160816; b=QN21WTubeoBXzQx4YhHzjYAbvNKRtC8Fm26gGvldDzmQVBkTs+IJEsJN+h/L/3tWtS phxY1o+N85kMMvsP4uR3OPGOFLu7vspr1onF5IBt1q5hZhbFxq4UleHHT7nxFyO9nORH tgxo/hvWlf1w1N2h88wJzMKzH1ISKsp2axGrjhdEzAg7k879LYGBeLANRyVZfCWNT9Ya 8q4cXIxVnLtBPzuW7GXZvUuwLb8prBi8+i6Zilc10Ic/pbyKQxYMvqsnpoVB4kY/Hjdb vISP248hEjO6gKSfSEAZjY1/xw/V4OXMQOyRtHPNVUq8w+998zX2XNdhBbZ9VEZ3s+CY 7ekA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=ickq3W04vnRKReAXJ5hOqml4Y4dJrPQAobGORExs8yE=; b=bDPz5rpvJA9KqwY2mtKAHMEWrSBv+rjf1toXZKar9eAXMqDo+vgZJqzg4Y/OG0xSE2 ydXbs8mCHVeV3RNBMdQMCjTGcA9lJ+U8l62itkNCjXZBUyDCJ6FUMFuUoMf8DsEVccxR xLibPmHQnHtSsnQ433Y5PO08oCPpstfYZ0lM/ROGHv19pxJQWHu8AZiO/XgyOdgneVIa 3u5gsLaENlHfdpj7nINepKjpqzHj6Pqt/dhEataaU9zt1CkRzOOV2aKXNgv/mWDrryzW aMUJQLki9I3L2wB5aqVPUVHOu0rf3cwJNQ8gbDBSY6TWpLlMF7/Eqv5qHXJ2c+3oB5Y5 8ZVQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ickq3W04vnRKReAXJ5hOqml4Y4dJrPQAobGORExs8yE=; b=KbVAv+ZfJywDV76ZUxMFInpBeGzfj8nC+p9Q12KT8TwwEdJy+3fHSFReWA/LDwxmgq eIbR0qksf7CIGOE9GLj5ScC9+HaYQm9sxD3ECccwRw3ITLJu0PLlyol9UxOMeuDj0GdT tVhLgp/2pFqNHRJTNZwPLMztNXLixaqq3uOcnL+iK5DxFMaOVJEDHfv7IJKdCUdf038i 55fyaIhvokeEPxFkwhMKbUCvqHbT9cBHxmmJMotBCdTL//B7Mn2IzH2HUS1j7DDqFH6z uhKA9RYTynXYG1Wb49Q1q+4+vYs++uf6WoQyfgVrz3lVtqs/66K81OIvacGVE2gjNFGJ A7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ickq3W04vnRKReAXJ5hOqml4Y4dJrPQAobGORExs8yE=; b=s7lFlDLreeFKA7MdlKC6Zuh1gQFepzXTLjfbbeQtur3ZAmPfrkOdeg1WVfvuOznBJ9 kcVjWXE7NOqSy1KRavFy1d8GY4rmUeAwOrI8K7U5We9WoWFzM0pJpOfywPsiQzbKabcf hhBShI2U2W7q32Y0l6pRwXZfdhftCTzSFTP1AwalDMqK0KkFhOW/9d6M4lLxNNvs3PVw iVwRYtTEwUWrZTgJ0TlF40/nFM0L2qMGYZh52Ez8SuoQ0wsKnE7+5EPd0icw7zjvLPQO +RpbfwWzfZwPkysP3zitOvqDuQbL6oC5848mY53CtGKb2aXeCHYuEtQprvbTfQCPfLTY T9Ew== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530xpMF4GSfQP89lRk6XNPjVM5o7qAQMX76dA+XkKTIpUO2JIb8v dtyJq3wOjL5zpLXxsrXjjS0= X-Google-Smtp-Source: ABdhPJzp7CPsawFisQfckobCZMQzOBg+EUO9UiTqJDRvuOtd+qr0bGoptqVJCsNJw9xffVs8+XDVoQ== X-Received: by 2002:a05:6870:a108:b0:d0:1222:e90c with SMTP id m8-20020a056870a10800b000d01222e90cmr2561653oae.140.1645178087887; Fri, 18 Feb 2022 01:54:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6808:1a18:b0:2ce:5441:56cc with SMTP id bk24-20020a0568081a1800b002ce544156ccls1516884oib.6.gmail; Fri, 18 Feb 2022 01:54:47 -0800 (PST) X-Received: by 2002:a05:6808:2219:b0:2d3:13c4:3866 with SMTP id bd25-20020a056808221900b002d313c43866mr4778334oib.163.1645178087487; Fri, 18 Feb 2022 01:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645178087; cv=none; d=google.com; s=arc-20160816; b=gxV6heR23w8qgmBFSVbg4xjUYTFebtgRnvTN9Izlo0joldId3sDfowuIXmExbXw6Zn OAApFMz7PnkTABiZ5frXw2Q6CdupEUCK2h3xXkXU5E/R1IUlpvMLB00PvPxf7dKmAxbw 6gBa3uLRmlvRWzBojvXPDMU5LXZODC0pQGOtfXNF0XUCxlxmDrZEelEXN3LafQv9umlO wVd18849ifBeQAH4oQX8dhun1mgyQ462oeMfQ32c3sdKKHLm+RUqTV0ld3+08XOqYPiH MSnwPo9n+u63j2ZvEWnt7W4AMzOcMaH4zWPpYT969fc3vYEk8J3IGkY3EE/vB4/pph/g Kvmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:ironport-sdr:ironport-sdr; bh=pKr0lqTYwODfrNjmAT+np0arR2xIkVNtMGyXYeXdSs8=; b=O8NZWDurawTVUNCMEky/He+nDpUZQRFB6jy8h6+7kUANFMPd5VRL3djfnQzuP1EHxC DLjHs7KH+GTAbU7BjVqdpI3PHzch55PPso2ZSUdwXqAZIltuXAUoQJmh4KhZPE8Vhn0w qDAFt54OyPwO7BptJJVYdRH2C73qg9Jpmr20CDjV+oM9IEoFjWoGFuMth2NPnqr/gDLg yqUSjSLcesyXXYgr8fIFX23VA/DvsTjvFzbIGrgq0ytvj14Beui5OEf5kxeTqcX2KlK8 S8TleONJmRRH3+Vm+MCXiHc15r51ZKAme6rV0fFm8hXqFuHmSkagTTfbBIrsC17lEI3q g7Vw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com. [68.232.129.153]) by gmr-mx.google.com with ESMTPS id fu8si1138452oab.2.2022.02.18.01.54.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Feb 2022 01:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) client-ip=68.232.129.153; IronPort-SDR: 1MtltGtqcCSvxdq3mpx7LUd7haiXpzaYG+WKuVJWppCn+s4EXNZGeTWAO+XPPS7H96StSTsd5s 95Z1+1lToFghoFmtqZxD4D3wLliLYYqxr+xlgjNsH/e3CA8b/MEcZtWgAM2uANfCAFPCHEfm3Z zdyq4IFfxFDPsR7cqeMS8coAqKQr1To8WScG3KnPdZKHs0a8J0NU6dziUoQwPJFb7hsIm3aZcy eE6twY1//hh7Q2uO9TJdvYpBYX763EX/N3Bl73IlJPf9nU80/4M/fMCay8SGfWTiEFTtVZZm8F CakzcCjSRB2iQNWD0CwCzahZ X-IronPort-AV: E=Sophos;i="5.88,378,1635235200"; d="scan'208";a="74716081" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 18 Feb 2022 01:54:46 -0800 IronPort-SDR: VDRKvizm+iWLLpJwPUu3WLIO5lzTyTB4BVo9Debvee2ZUvAF5/VuguazYtqztdngykzdkBqfoo pctsyFYNLnPxbC6gL3s2gPhUcW26XcBiT9hN5UAenI6bp4NDdEePcnNBnjrPKxzyvkZd65YFck +8tu1kE3S6DitcuJuSayeCbDyzQU9vm6iFjyN4TmwmSfw994VQbGfmy3jR6WOekHXZbJIIYPRd 8OHvn/vt26p2f7MBkUVE+GZ9+uGfOeQOyfcF6mrP8DOeMwljHPFDcFk+Wm9/wX4MlSnFB3DdND zCA= From: Vijai Kumar K To: , , CC: Vijai Kumar K Subject: [RFC PATCH] image: Reorder do_copy_boot_files task Date: Fri, 18 Feb 2022 15:24:28 +0530 Message-ID: <20220218095428.1767282-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX There might be cases where in there are some initramfs changes in postprocess. For example, via the distro config script. In such a scenario we would have an outdated initramfs file in deploy directory. Certain downstream Wic plugins directly consume the image from deploy directory. It then uses the outdated initramfs for creating the wic image. Copy boot files after rootfs postprocess but before finalizing the rootfs. Signed-off-by: Vijai Kumar K --- RECIPE-API-CHANGELOG.md | 7 ++++++- meta/classes/image.bbclass | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index cad15a8..ef53b1a 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -342,4 +342,9 @@ The bitbake variable defines the respective environment variable which is availa When cross compiling, `cross` is added to the `DEB_BUILD_PROFILES` environment variable. Please note, that manually exported versions of the variables are overwritten. -For a list of well-known Debian build profiles and common practices, we refer to Debian's BuildProfileSpec. \ No newline at end of file +For a list of well-known Debian build profiles and common practices, we refer to Debian's BuildProfileSpec. + +### Move do_copy_boot_files task after do_rootfs_postprocess + +The boot-files(kernel, initrd, dtbs) are now shipped to tmp/deploy/images after +do_rootfs_postprocess task and before do_rootfs_finalize task. diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6d77243..d70a93b 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -170,7 +170,7 @@ do_copy_boot_files() { cp -f "$dtb" "${DEPLOY_DIR_IMAGE}/" done } -addtask copy_boot_files before do_rootfs_postprocess after do_rootfs_install +addtask copy_boot_files before do_rootfs_finalize after do_rootfs_postprocess python do_image_tools() { """Virtual task"""