From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 9F6B97842D for ; Tue, 19 Dec 2017 17:22:20 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id vBJHMKGv005998 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 19 Dec 2017 17:22:21 GMT Message-ID: <1513704140.16507.66.camel@linuxfoundation.org> From: Richard Purdie To: Otavio Salvador , OpenEmbedded Core Mailing List Date: Tue, 19 Dec 2017 17:22:20 +0000 In-Reply-To: <20171219171706.396-1-otavio@ossystems.com.br> References: <20171219171706.396-1-otavio@ossystems.com.br> X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at dan X-Virus-Status: Clean Subject: Re: [PATCH] image_types_wic.bbclass: Ensure '-c image_wic' works 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: Tue, 19 Dec 2017 17:22:22 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Tue, 2017-12-19 at 15:17 -0200, Otavio Salvador wrote: > The 'wic' image may use files which has been deployed (e.g in > do_deploy) for some partitions that may need to be copied in a > specific partition or filesystem (e.g a bootloader). > > When using 'bitbake -c image_wic', from a clean build, the > contents of do_deploy must also be available so we need to ensure all > do_build of the image dependencies has been complete. > > Reported-by: Fabio Berton > Signed-off-by: Otavio Salvador > --- > >  meta/classes/image_types_wic.bbclass | 3 +++ >  1 file changed, 3 insertions(+) > > diff --git a/meta/classes/image_types_wic.bbclass > b/meta/classes/image_types_wic.bbclass > index 222ae00433..4d7305a3a3 100644 > --- a/meta/classes/image_types_wic.bbclass > +++ b/meta/classes/image_types_wic.bbclass > @@ -41,6 +41,9 @@ WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % > os.path.exists('${WKS_FULL_PATH} >  do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" >  do_image_wic[depends] += "${@' '.join('%s- > native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', > 'dosfstools', 'mtools'))}" >   > +# We ensure all artfacts are deployed (e.g virtual/bootloader) > +do_image_wic[recrdeptask] += "do_build" Shouldn't that be do_deploy instead of do_build? Cheers, Richard