Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 98E3F770A7 for ; Fri, 2 Oct 2015 15:25:23 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id t92FPNDp022130 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 2 Oct 2015 08:25:23 -0700 (PDT) Received: from msp-dhcp23.wrs.com (172.25.34.23) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.235.1; Fri, 2 Oct 2015 08:25:22 -0700 From: Mark Hatle To: Date: Fri, 2 Oct 2015 10:25:20 -0500 Message-ID: <1443799521-198903-1-git-send-email-mark.hatle@windriver.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Cc: david.reyna@windriver.com Subject: [PATCH v3] "Finish" the IMAGE_GEN_DEBUGFS implementation 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: Fri, 02 Oct 2015 15:25:28 -0000 Content-Type: text/plain V3: (hopefully final) Fixed the comparison by adding the prefix into the image_cmd data structure. That ensures we're only comparing the prefix and not the whole pathname. Also changed the bb.note slightly to indicate which path we tool through the processing in case of future problems. V2: By adjusting the _write_script function (and associated _get_imagecmds) the script may optionally pass in a prefix for the generated script. This solves one of the problems in the prior version. (No more script name collisions.) The second issue is that the datastore is used to find various parameters (which are different in the DEBUGFS datastore) when doing the final symlink generation. So we do have to switch (based on the script prefix) which datastore we should be using. (Note, I'm not completely sure that the switch is 'safe', so this is an area that should be verified.) V1: It was noticed today that the IMAGE_GEN_DEBUGFS implementation was not complete. The version that was merged back in May only contained the filesystem generation pieces, but not the pieces for creating the image from that filesystem. The code has been tested and is working. The only thing that I don't particularly like is that the processing code and loop is a duplicate of the code that runs just before. Unfortunately the only way around this is to change the way that way the parallel bits are processed to support multiple datastores.. (or create "another" function..) Any feedback appreciated, but without this the feature is broken! Mark Hatle (1): lib/oe/image.py: Add image generation for companion debug filesystem meta/conf/documentation.conf | 2 ++ meta/conf/local.conf.sample.extended | 9 +++++++ meta/lib/oe/image.py | 46 +++++++++++++++++++++++++++++------- 3 files changed, 48 insertions(+), 9 deletions(-) -- 1.9.3