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 C91E87317D for ; Mon, 28 Dec 2015 13:00:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id tBSD0pBw016919 for ; Mon, 28 Dec 2015 13:00:51 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c3uAzsESn10D for ; Mon, 28 Dec 2015 13:00:51 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id tBSD0nW9016911 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 28 Dec 2015 13:00:50 GMT Message-ID: <1451307649.4129.20.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Mon, 28 Dec 2015 13:00:49 +0000 X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Subject: [RFC PATCH 1/3] image.bbclass: Separate out image generation into a new task, do_image 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: Mon, 28 Dec 2015 13:00:52 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Signed-off-by: Richard Purdie diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d2f8105..bee7d63 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -334,7 +334,6 @@ do_rootfs[prefuncs] += "rootfs_runtime_mapping" fakeroot python do_rootfs () { from oe.rootfs import create_rootfs - from oe.image import create_image from oe.manifest import create_manifest # generate the initial manifest @@ -342,11 +341,20 @@ fakeroot python do_rootfs () { # generate rootfs create_rootfs(d) +} + +fakeroot python do_image () { + from oe.image import create_image # generate final images create_image(d) } +do_images[dirs] = "${TOPDIR}" +do_image[lockfiles] += "${IMAGE_ROOTFS}.lock" +do_image[umask] = "022" +addtask do_image after do_rootfs before do_build + insert_feed_uris () { echo "Building feeds for [${DISTRO}].."