From patchwork Tue Feb 16 09:52:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 1440861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23c; helo=mail-lj1-x23c.google.com; envelope-from=swupdate+bncbda3zhwu2icrb7nlv2aqmgqegfvfx6i@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=Qxh4jDMX; dkim-atps=neutral Received: from mail-lj1-x23c.google.com (mail-lj1-x23c.google.com [IPv6:2a00:1450:4864:20::23c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dfx9g5tBWz9sVX for ; Tue, 16 Feb 2021 20:53:09 +1100 (AEDT) Received: by mail-lj1-x23c.google.com with SMTP id 19sf5996708ljq.13 for ; Tue, 16 Feb 2021 01:53:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613469181; cv=pass; d=google.com; s=arc-20160816; b=mCNZfjIWuBuYchE2S8uD2ZUHUJzxP8lo37l3SOGxQbKZUQElfZz06nBt1xcm14hLNR WyJ/sajJd310MG/rmBeIFdghbt74bGBsit7yKzAEXdhkZEmvAx6VIy9hxGhFvkYUqY73 tgp0slrgWrvZDNbdJFSCnSTsidMSO5SsMneXcUAfvysqwO3ndGgKmtlwCSq0yeGUkyiJ ST1TC5AbKpHoj48I8UY+QRtHLWBJEygGxsGHq3+RbiCM5Mb+CQosLZzrCIOEFXam8KLP F0EXLNloHt0TqmPlHGIaqRQEEGrMzKy1ZInwPyvF0r9pqFfiYuLl54m3o/Jy3o5A3dhI 955Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:to:from :mime-version:sender:dkim-signature; bh=9VoKtV+/JPWuq68nhXtcQ4VoapUriyo0ZVqCfuIbyO0=; b=rwv6rCPc3VcL4Y34Ck7sJItl8/yiEY+zN9A3xDrwr+ul5b3IggtxDCHk4KzGoUQoVb CVo6rcBzgPizhH5P6ZLsDYgv4hIt3dd3qcPyvIqTzXr7I9PPi/l7oc2xeRq7Z99guX8C ceuAeh3aVHz4L73zRgc6u/010oTrLEPdiPQAhgmTNKrphunBDPXGW23qsFeBZih3KU3+ mPYCgzjvhcxRuIunZc7U4lCwrtD3fNYy/MvBCxMAAZlvZZQzt3J6bemuqq6OyIDU4Rni wn9OX+8wnaYfiBe8HRZFm5BOXs6Q8HlWKmOjeiUtfBXBaI2tjoUtGZMFqEBTdrIW8myH /BZw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9VoKtV+/JPWuq68nhXtcQ4VoapUriyo0ZVqCfuIbyO0=; b=Qxh4jDMXaa4MNWfqC7QaAsQknveeVXXC8oTXllF7Qh8Pb75Kw1/EkfyjOIr54mcoii ozhzQp+Cmmui7SS/K3pOBgpztNtI6XW9HzxLjb/XYyqRbh0u5gPkT+QuU570PuHEbeTp zPu6qBen61VMlQ5LB2AnJ1aZP9n/CmU4VunS4XGwJRbImFaRCNbp6xyZ/bYHqsmKV2LK sql7MmFXpZwP8YqAzOl3Aocr03pFSFsRNpwIdlMu60SuS3huASFPZ6rxevDiWHKioBLY 43Dt4LU36k+JhE/fdBucqHJsLXwsVnB4iX/0NcphbveF0dNdf1wyt2X6ML3sDE+0GJ17 gowA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=9VoKtV+/JPWuq68nhXtcQ4VoapUriyo0ZVqCfuIbyO0=; b=eZ+MibuSZEkiUtUj3speKAtcpPsbwmD+2wZLsIjp8YyrSnh6u5P1bHtu/hi5eKraAC nIkyDyCpT65wi/wS9S6wqvunUU6O0jg26okEm/+g+fAd7/nYFZCxbOLrSeRe18lLO+tD l9TwkUPwsQHG8JC/deJCZ2Er8kgbtF+Upo6S4ZXcU07SN6JZ9++4xzTXvIoGWcUHvp9l akluFTliAFrEZLfr+GR16tjpKoiA26RnCuVoYM3mK6jhVnKQLPdPuEd8g6HqDN+M9H+s GJHglR2cwxVDZ/cZ3+BiSgOk8gsRf0SOQ7T6FOJEMmfZYBQ1q5jCX8OMzoFgXgajOMNL Mpyw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5324NRz0v14U6MkhoRqXWbKIbbQH8QM7x6l/ev2lauS+I2Ljbsm9 VHODllX1fMjfrCQzgGzDEwo= X-Google-Smtp-Source: ABdhPJybVO2iEJXf4PgiksFRVSG1QXKw/CyxtqamSL5TLyOgDmGPpJO++zxUAsfusSyWbYIOiNHq7Q== X-Received: by 2002:a2e:985a:: with SMTP id e26mr3729848ljj.370.1613469181816; Tue, 16 Feb 2021 01:53:01 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3993:: with SMTP id j19ls1752822lfu.3.gmail; Tue, 16 Feb 2021 01:53:00 -0800 (PST) X-Received: by 2002:ac2:4da7:: with SMTP id h7mr11953667lfe.310.1613469180585; Tue, 16 Feb 2021 01:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613469180; cv=none; d=google.com; s=arc-20160816; b=ni1yf6Bax6cBo+S2GKZQIAOnqdk13nkCu0CA11JMgcnl/7q45SW1tQpoMvii39nStf MC/RSqMbpewdZWiEpqnRBAnW5FHnknhe3maPdPp81TCxMH3KedX9LgMJKGmrPaHHWtKI Z67olbmxlVUGwErdRTqlRA3vEk3BNpj/fazAw9NFSm4jdyg/xPgB7Chh1oQJQ87ZgHm+ 5Ni+KvXX36ZdaPYvQ5d1Gz36DdAnHh2rHotDq0DREgJdduHMWZGJ7o+VEN4r8inkIZ0x qjv2Nk5DfyroNxuogmfejCeRVapVo4q9PfpZz2YmCcTamUmLOCmhsPrYUk1PN7RByTTd 7B5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from; bh=SIKcI3/jdUyra3tci/Wui0Fiefm2ncCWqManiMdXMbU=; b=y2I8JXE1+3YG1K6ISo1gp/HVnyRiAlXL7ZqJe/pH5T0xK8oRxQehjh0HwuuZVDuApf 9lIo6aDvpgOYFLLHR3Q8+oVy/S2VP0UcWFQahxxewQRtejMMc684+BFlggEg6VtD6P28 Y0uWuCkozEUqbNKeVvc2HoSRYbdVou3iPFc4XVBwByMGDkX6t13borvFtny5laBE671Z fzMYixiG9nOCJLwIW4yPgjhZrnw87X1TRw5j+/oM34ht1hYDcWR1VyjLAt8Cg6xI+toc 5oGCpAfvTuu2MN3nzg9dK8twWR+Zyqlrk72pPz6ejgxj97Cl5dBSzHbDmpLdki+qZjxM E6Bw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id 28si818480lft.12.2021.02.16.01.53.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2021 01:53:00 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of agust@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Dfx9S0Szmz1qsjg for ; Tue, 16 Feb 2021 10:53:00 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Dfx9S0MPFz1r13j for ; Tue, 16 Feb 2021 10:53:00 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id sIymBQOA0CRq for ; Tue, 16 Feb 2021 10:52:59 +0100 (CET) X-Auth-Info: MgXWNSdAm8aGYyTcCPPmChrSkKrTo2JHw9LbJ5BM/eo= Received: from crub.agik.hopto.org (p508b6a6d.dip0.t-ipconnect.de [80.139.106.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Tue, 16 Feb 2021 10:52:59 +0100 (CET) From: Anatolij Gustschin To: swupdate@googlegroups.com Subject: [swupdate] [meta-swupdate][PATCH v2 0/3] Extend swupdate class to support swu image fstype Date: Tue, 16 Feb 2021 10:52:55 +0100 Message-Id: <20210216095258.514-1-agust@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: agust@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of agust@denx.de) smtp.mailfrom=agust@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Building .swu images with meta-swupdate-boards does not work when building them by devtool in installed eSDK: $ devtool build-image update-image ... ERROR: Specified recipe update-image is not an image recipe This series adds swu image fstype to swupdate class, so that it is possible to generate .swu images via normal image recipes extended by appended options. With these patches applied, the swu image building works in eSDK by "devtool build-image core-image-full-cmdline". Patch 3 is an example how an image recipe can be extended to enable .swu image generation (tested for 'wandboard' machine). Changes v2: - conditionally add do_image_complete dependency, drop patch 2/4 - add image_types_swu.bbclass - prepare core-image-full-cmdline bbappend for meta-swupdate-boards Anatolij Gustschin (3): swupdate_class: prepare to use SRC_URI in image recipes Enable building .swu images via swu image fstype core-image: add example for .swu image generation classes/image_types_swu.bbclass | 21 ++++++ classes/swupdate.bbclass | 31 +++++++- .../images/core-image-full-cmdline.bbappend | 28 ++++++++ .../wandboard/emmcsetup.lua | 12 ++++ .../wandboard/sw-description | 71 +++++++++++++++++++ 5 files changed, 160 insertions(+), 3 deletions(-) create mode 100644 classes/image_types_swu.bbclass create mode 100644 recipes-extended/images/core-image-full-cmdline.bbappend create mode 100644 recipes-extended/images/core-image-full-cmdline/wandboard/emmcsetup.lua create mode 100644 recipes-extended/images/core-image-full-cmdline/wandboard/sw-description