From patchwork Wed Oct 23 21:10:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Freihofer, Adrian" X-Patchwork-Id: 1182494 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::13b; helo=mail-lf1-x13b.google.com; envelope-from=swupdate+bncbaabb34dypwqkgqeithh2gi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="JBMq6CiM"; dkim-atps=neutral Received: from mail-lf1-x13b.google.com (mail-lf1-x13b.google.com [IPv6:2a00:1450:4864:20::13b]) (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 46z32Z51Pxz9sPh for ; Thu, 24 Oct 2019 08:11:17 +1100 (AEDT) Received: by mail-lf1-x13b.google.com with SMTP id c27sf4499026lfj.19 for ; Wed, 23 Oct 2019 14:11:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571865071; cv=pass; d=google.com; s=arc-20160816; b=TsWJdPlm7lrAr1SgoD9Smi8UTzeMj2tH2XHHXMGDL0UveJgRztzuIdhqUj+y1d2wp1 F7LmdvvoZm+dNxr8kvf74PQWhuFi5obxFkfyW1DLWrE8bdenYQS+FvMPNuLYKaDaWjCS oJLBqtWAVjtOa8sL65ef9TImDiaXo5GOIIFiGYQWaUl2CqNrUxT0sDpNXQELfqewoNA2 11kIedvhHiUXr6coBKDCQd5Uq01QQczoqvCXVGFKujfllhlK6IFpVzPmkF9DYFLSSNNt m8/7lJav7kpNZFrtk/sBIfEeBAmZvUev6ykfPY+6TY6tyEYpgF2bCdLqMTpeuuwJYq+M +TAg== 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:cc:to:from :mime-version:sender:dkim-signature; bh=kPuCYModiIZBg3Ch8WONFhyU4sNf1JQJHaL0NCDS8M4=; b=0ZC2eTtfbLPMW0OM/nsTWblWALEUFkhl6BKsSKEx0pZ12PT2M9HXY1ppayXKTIixgx bCyq/EwL+lUMY4chje/5GuvhDSqzHsTLmOJ64uGbSpm4QX7CLFsLJ1Y0XQIkSXUfIdMY yqVujhJv3uJs12PHMNI45J2rJ08A7rcktLf7AFHC6naNbT7PmVb4ijlxRNNmMgaMlB1x PILQnCuEmYbIWvCnYIusuZ0hFJxWHHAI35W3NkeBm8eIZP+8dI2xAWjnMn7MK+V0ohS4 uvZvqwyfEyyD7fB/uUxMgEQ6m8hxjDLGwr32olkCo6St8VqhH4Ede/Zpq9vXxNUkg0ra pNDA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of adrian.freihofer@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=adrian.freihofer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc: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=kPuCYModiIZBg3Ch8WONFhyU4sNf1JQJHaL0NCDS8M4=; b=JBMq6CiMtso+iIGy47c+8q0RAbxGFxvVShBmVPlJkTxEKrGksAjsgq5WlEUWIhNzgB kwFlhNqfzKsd+KmBFVSOmo72nx6bxgx66UWBT53kC0qbjMSwMinHbOn79cFH6RIw3/HN EEmp2vXWz2NyKB6JTnR37OCDx287KK6nukiXdn/JfstHia0Y79weoHrNWkVv6tpLCWLc 6SnMc/ES8kohj9+GYgk5MmEBx4t84+r5RJJ5MhsRi1kRbYnRQCIblMw3swQAapogVra0 fZ1BWnmZ6v0hQKRzgq7jnlyoPREKBCrVG1lxK203ozD1rZxvQJnntiug0QT0smca72rn Oybg== 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:cc: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=kPuCYModiIZBg3Ch8WONFhyU4sNf1JQJHaL0NCDS8M4=; b=lC2zbOSVIHxFPWat3sY0ONuKlg+r4YCW0PbtSF+gSY5dl8qhlIOBUOLar6sKP/JIAy lXjKh/1FzxfVKizPm7aCqCMnZTuGmldb0CHx7k1/RbZOBlOkORgm9CYxqDjo3tJK+r/B SttBUUa949ZO51KOVXuDnqZUIYhH4EcGT1eeIqrjNZ++v/Z/9RhIdMarKI42Q8FeJrZS CrUogKTDMRQlTxlvDqswgbWmf6UMR1brLbv43wG8ZPf2B3AFsCdZ6v27atcfCWbAv0yi /2zAw3QxjeExRl/aCb5UPaLxh817f6NdIG2pIN8vo48AVFcLkPBOGFJnz9+d20hmzKEj Dm8g== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAX7GeoY+cxAS0iVerO+NONrVeQeBCEXsHv8Wh2bkxBD4Ih7DqHK PZIzVeQ04eS/PEdkZOLzywY= X-Google-Smtp-Source: APXvYqzDFvjT/hm/s+A1NkOdVtoVUFhbqkwSBxxnMWMt60IRIPDTAfAVy6x2dt+4Jl17U+i6u+Qcjg== X-Received: by 2002:a19:6759:: with SMTP id e25mr22960328lfj.80.1571865071387; Wed, 23 Oct 2019 14:11:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:95d4:: with SMTP id y20ls482625ljh.15.gmail; Wed, 23 Oct 2019 14:11:11 -0700 (PDT) X-Received: by 2002:a2e:547:: with SMTP id 68mr7194092ljf.150.1571865071087; Wed, 23 Oct 2019 14:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571865071; cv=none; d=google.com; s=arc-20160816; b=X4Kw8HHtTK+BTcF9jb5FT07AfnQTMc4U9+tswRIAidJIFPIbkruabBOb5wInLcm1BP Tev1ErDIugttnpt3g/qcsWnlPsNtVnpM6olX/h1srquKYH7ZuQNVqv7KOIPjNa8SADDb jx67B8/N0T5tZivE3YHUHTpL6nDfo19/f70Wa2N5Wi/Sa5tmzdz1lg7+7o/QrDtA4l5o u6G2wXZ4Ne5O294+UP0FISLroj7JN724OBMmX6Pg5695NngK+tTS+9pDg69hP885fLON VTrgrxyXWViSEklrJy4oaJB2lkCgmymo5VpmiWvixdQBVctuCL6pCVz/P8pxIxEW9F4t semQ== 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; bh=oG9SoJ1+feijmeaY23+tev3p9WLJzwkzLAqFvRV/2WM=; b=p3n3XUouS+8Hr7lXl8InGkAWmYjuZXvzCsP0iOn3a/qt029jvhEM//VfdM/NFxcoBG Bv/ENZFWcaG2yar/rF+ednM1Mn9G9Qwma/CoUhdIAQKc879QGBeS+2iusy5Jn/wLAFxW GYttosF5dCrhGy675itMfVvcAg5MKtAaqAim4BlJ84ejyHsHCxoY3MgLNhS2ruxjnLgo Oahc8ymWUZoix1/YvFyEi6wKpk+zjTNwtMTqjy6eVAb4S/brInuZacNomejLAedg7rEk KXkH2TAXYMfi/zJeuDv/XxUcFSR0rP2YLewInBuFgTmluXeH5U1qzB3+5FMiQZsVWED9 mIOA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of adrian.freihofer@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=adrian.freihofer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id z9si1578601ljj.4.2019.10.23.14.11.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2019 14:11:11 -0700 (PDT) Received-SPF: pass (google.com: domain of adrian.freihofer@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x9NLBAEu007392 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 23 Oct 2019 23:11:10 +0200 Received: from dev.vm6.ccp.siemens.com ([167.87.32.70]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x9NLB8tK012707; Wed, 23 Oct 2019 23:11:09 +0200 Received: from dev.localdomain (localhost [127.0.0.1]) by dev.vm6.ccp.siemens.com (Postfix) with ESMTP id 0AB402353A50; Wed, 23 Oct 2019 23:11:08 +0200 (CEST) From: Adrian Freihofer To: swupdate@googlegroups.com Cc: Adrian Freihofer Subject: [swupdate] [meta-swupdate][PATCH 00/12] simplify swupdate config Date: Wed, 23 Oct 2019 23:10:49 +0200 Message-Id: <20191023211101.16591-1-adrian.freihofer@siemens.com> X-Mailer: git-send-email 2.11.0 X-Original-Sender: adrian.freihofer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adrian.freihofer@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=adrian.freihofer@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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: , The main goal of this patch series is to simplify the configuration of swupdate. It's tested with systemd but not with an init script based DISTRO. Adrian Freihofer (12): swupdate: simplify find images added to swu swupdate: ensure scripts are added before images swupdate: support signed image with variable name libubootenv: bump git srcrev libubootenv: git define PV swupdate git define PV swupdate: bump git srcrev swupdate: add missing rdepends swupdate: improve systemd config swupdate: update, fixes in do_install swupdate-enc: add missing $ swupdate: install key, cert README | 9 +- classes/swupdate-common.bbclass | 8 +- classes/swupdate-enc.bbclass | 28 +++++- classes/swupdate.bbclass | 100 +++++++++++++++------ recipes-bsp/libubootenv/libubootenv_git.bb | 4 +- .../swupdate-progress.service | 0 .../swupdate-usb.rules | 0 .../swupdate-usb@.service | 0 .../swupdate.service | 0 .../systemd-tmpfiles-swupdate.conf | 0 recipes-support/swupdate/swupdate.inc | 60 +++++++------ recipes-support/swupdate/swupdate_2019.04.bb | 28 +++++- recipes-support/swupdate/swupdate_git.bb | 8 +- recipes-support/swupdate/swupdate_tools.inc | 24 ----- 14 files changed, 181 insertions(+), 88 deletions(-) rename recipes-support/swupdate/{swupdate => swupdate-2019.04}/swupdate-progress.service (100%) rename recipes-support/swupdate/{swupdate => swupdate-2019.04}/swupdate-usb.rules (100%) rename recipes-support/swupdate/{swupdate => swupdate-2019.04}/swupdate-usb@.service (100%) rename recipes-support/swupdate/{swupdate => swupdate-2019.04}/swupdate.service (100%) rename recipes-support/swupdate/{swupdate => swupdate-2019.04}/systemd-tmpfiles-swupdate.conf (100%) delete mode 100644 recipes-support/swupdate/swupdate_tools.inc