From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6617812835611181056 X-Received: by 2002:a37:4f0e:: with SMTP id d14mr1210294qkb.45.1540966267714; Tue, 30 Oct 2018 23:11:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a0c:99ca:: with SMTP id y10ls6083127qve.9.gmail; Tue, 30 Oct 2018 23:11:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5fB52kEzw9iDT4/DGk6hkMYCcm1l9ocrdNEYvwlQLPccnqEQFi6XxMje1s2xhu9zVnhR2v1 X-Received: by 2002:a0c:acb2:: with SMTP id m47mr1320923qvc.12.1540966267445; Tue, 30 Oct 2018 23:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540966267; cv=none; d=google.com; s=arc-20160816; b=bwKcWgZMXUpxGXX7o/ccdO7vE2FORohK/czgAT1wJQqcNaWj+AcYid/VENp6XDFGW8 YfqnXfzffs8WZ1k6nH/ftdjj0qow66ZmiP3S+xjc3NjG+/PwHTWotEhRw3FLpkbnVS85 rVYV9xsmubShTV7uZZzvKzF1AnlGZLxONlTBUbeR2kSC6G6mnmX1CSkM5ENUM9h0GPMU z2PmbanrCNgGIiKwPjdwxPpRrlbFaQKw5oCyY/+n1oHzCzIb2eBmGrrvdwArp492iOGz RmdRnrGRuLAy/WeXJmTleSdPoFCmsv4OaY0j8wfUaWfxJNUkQNHerbmpIf9VRghVvFNj LjGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=HK1rsX0PTz8NMcZaSewjBxfXZTlUustlgBqpKQgjPGk=; b=BIxmtcMuFTJ5wrzABrDgeHXjREci3qd21r6O1ZPUSJbUL0hEx49Z/1JdPMaWef70eu ArTVYjGxet9m86ijYUn7oKOcKAZb/GzTxtdlzCTmCZbsQeplhC4tV/sGqKU7pWNg7RQr B/IXGXLphXUhPqyZQEu/ylpDZKiPFz+d4Z7ZathTScUVEM5lYDvnjx6zk5/HpOr4Ts6J v/gwP85GpqfSFAIouNpQ+74VkVwSILyX26Dga0jWqcgvspN2amGcTdgdIokEF9Bk4sOI qDdJZLf9yxsiRhDlwLhOivANLiEU2TUAVqSEyd6zdUu1l7imgd0k5AKIzQlALje8VOiD K/pQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id x41-v6si1189256qth.2.2018.10.30.23.11.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 23:11:07 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gHjic-0001jm-4m from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Tue, 30 Oct 2018 23:11:06 -0700 Received: from localhost.localdomain (137.202.0.90) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 31 Oct 2018 06:11:01 +0000 From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH v2 0/2] introduce isar-image class Date: Wed, 31 Oct 2018 07:10:23 +0100 Message-ID: <20181031061025.28840-1-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181030134154.7adc8bf9@md1pvb1c.ad001.siemens.net> References: <20181030134154.7adc8bf9@md1pvb1c.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: 5ykTEpXNW0BW Reduce the previous patch series to only include the first two patches. The changes will allow users to easily create their own image recipes. Documentation was updated with instructions. The second patch refactors do_rootfs() into smaller functions to reduce its complexity (one function == one purpose/goal). It was also changed to become a Python function so it may be extended by other classes with Python code. Patches introducing ROOTFS_*_COMMAND are on hold. I will investigate use of e.g. IMAGE_TRANSIENT_PACKAGES to implement some of the features we are currently carrying in our own project layers. Cedric Hombourger (2): isar-image-base: introduce and use isar-image class isar-image: refactor do_rootfs() doc/user_manual.md | 33 ++++++++++ meta-isar/classes/isar-image.bbclass | 72 ++++++++++++++++++++++ .../files => conf/distro}/debian-configscript.sh | 0 .../files => conf/distro}/raspbian-configscript.sh | 0 meta-isar/recipes-core/images/isar-image-base.bb | 57 +---------------- 5 files changed, 108 insertions(+), 54 deletions(-) create mode 100644 meta-isar/classes/isar-image.bbclass rename meta-isar/{recipes-core/images/files => conf/distro}/debian-configscript.sh (100%) rename meta-isar/{recipes-core/images/files => conf/distro}/raspbian-configscript.sh (100%) -- 2.11.0