From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6517147827419742208 X-Received: by 10.80.144.177 with SMTP id c46mr11928022eda.8.1517391723104; Wed, 31 Jan 2018 01:42:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls2782736ede.4.gmail; Wed, 31 Jan 2018 01:42:02 -0800 (PST) X-Google-Smtp-Source: AH8x226UrCMam/PBZ4MbpsVaQsn//pb24wVO0ijhf84o1teMjv3Mssn1UJo7zNCovGB3WAZgnb4k X-Received: by 10.80.204.74 with SMTP id n10mr11938347edi.12.1517391722535; Wed, 31 Jan 2018 01:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517391722; cv=none; d=google.com; s=arc-20160816; b=r7Z91KkmbgU6yzQqXYRGRNLRRyXhHzKhwcW3lz1URorz+CsHstdcSxOuBQaFrdhtcD o+EbYLb2OcmONWac0d/WzaDtP7L7CR/T36/N0fbeszHT8WdF8zT1eezWwwF+5kvENyG9 HS17BHFm434+vZ+TRf3Vufgybh1Iv1tTYMCYVGiQ3mA1VQ+PyTzZqoIRrXK1YoXKMVnj LlnruCmZMeGWJscPi03lpmK0KwugqCInTpSStavT92tnxkKnV2zyZFGnaL5p0m1r/d00 JDUYCqO1cp+T793uaJ/GYFdchzuTR63/4gubZtIh6N+HbCPvNDhIuf8HHkhr3046Ftf5 6rNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=+0iCx4xjZsu0A89CwSssYedURDdxuDmEW597TCpwvfw=; b=frgYA+zAQTLUaIS1K55DuJBGYVGoZsRZASf/VzK4SGc4odvEeF/mm0RdGgLetxcTxO BvyDNghApp6VUwh4zrGXLeCVsfyfjMVCTLi/+a1dfxOnxdLbW3kGHwTTJRyeHOwwzJDQ I/8LN+lW3dV4i47GSKZzeHwrmRJ9JWdi2hlI1mKP41tPzC0njAEplMBWbr3CkXtUQqpo 68oz1jHHyeHZrO8tnvnrRXyl0Uon+ri0C/FFrQSGShDrdud4eVbkn9X1Mb1PM29tcxIY Pd0s/F35NvwRYyPDi2oPay5DlJNBLK1nXDovaQImsqoUnS0yHNBloJypV2TJ5PkSzfh3 h1uQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id m19si1701474edd.4.2018.01.31.01.42.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 01:42:02 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w0V9g1V6008786 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 31 Jan 2018 10:42:02 +0100 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w0V9g1aU008484; Wed, 31 Jan 2018 10:42:01 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH 0/9] first wic integration Date: Wed, 31 Jan 2018 10:41:51 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 X-TUID: dpD4Ry2U4vZu This is the first official post of a series that aims to do two things. 1. integrate wic into Isar so it does not need to be called after bitbake 2. get our copy of wic back to an unmodified version from OE Many people have been asking for the first, so i think i do not need to motivate that change. Things this series already brings is control over the partition sizes, that we did not have before. The choice in working wks files is still limited. The plugins dealing with bootloaders (isolinux, syslinux etc.) will probably need to be forked (like the efigrub one). The second one is important so we can update wic in the future and developers do not get confused. Having a fork instead of a copy, without a very good reason, is not a good idea. I found that wic does not need to be changed and plugins can be forked. Henning Henning Schild (9): classes: image: introduce size measuring function, for before do_*_image images: new class wic-img for wic intregration wic: add a bootimg-efi-isar plugin outside the wic tree Revert "wic: Make the bootimg-efi plugin generate usable images" Revert "wic: Introduce the `WicExecError` exception class" Revert "wic: Work around mcopy error" Revert "wic: Use sudo instead of pseudo" Revert "wic: Remove sysroot support" wic: now truly go for the wic version we claim to have .../scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +- .../lib/wic/plugins/source/bootimg-efi-isar.py | 307 +++++++++++++++++++++ meta/classes/ext4-img.bbclass | 7 +- meta/classes/image.bbclass | 19 ++ meta/classes/wic-img.bbclass | 64 +++++ scripts/lib/wic/canned-wks/qemux86-directdisk.wks | 2 +- scripts/lib/wic/engine.py | 7 +- scripts/lib/wic/filemap.py | 6 +- scripts/lib/wic/help.py | 2 - scripts/lib/wic/ksparser.py | 4 +- scripts/lib/wic/partition.py | 197 ++++++++----- scripts/lib/wic/pluginbase.py | 11 +- scripts/lib/wic/plugins/imager/direct.py | 66 +++-- scripts/lib/wic/plugins/source/bootimg-efi.py | 78 +----- .../lib/wic/plugins/source/bootimg-partition.py | 6 +- scripts/lib/wic/plugins/source/bootimg-pcbios.py | 68 ++--- scripts/lib/wic/plugins/source/fsimage.py | 56 ++++ .../lib/wic/plugins/source/isoimage-isohybrid.py | 28 +- scripts/lib/wic/plugins/source/rawcopy.py | 2 +- scripts/lib/wic/plugins/source/rootfs.py | 4 +- scripts/lib/wic/utils/misc.py | 33 +-- scripts/lib/wic/utils/runner.py | 74 ++++- scripts/wic | 27 +- scripts/wic_fakeroot | 37 +++ 24 files changed, 846 insertions(+), 261 deletions(-) create mode 100644 meta-isar/scripts/lib/wic/plugins/source/bootimg-efi-isar.py create mode 100644 meta/classes/wic-img.bbclass create mode 100644 scripts/lib/wic/plugins/source/fsimage.py create mode 100755 scripts/wic_fakeroot -- 2.13.6