| Message ID | 20211104181848.4185983-3-adrian.freihofer@siemens.com |
|---|---|
| State | Changes Requested |
| Headers | show
Return-Path: <swupdate+bncBCX6VENNTAPRBFOISCGAMGQEPRKOZXQ@googlegroups.com>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Authentication-Results: bilbo.ozlabs.org;
dkim=pass (2048-bit key;
unprotected) header.d=googlegroups.com header.i=@googlegroups.com
header.a=rsa-sha256 header.s=20210112 header.b=pBhvvH5A;
dkim=pass (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20210112 header.b=bqgqrP/b;
dkim-atps=neutral
Authentication-Results: ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com
(client-ip=2a00:1450:4864:20::53c; helo=mail-ed1-x53c.google.com;
envelope-from=swupdate+bncbcx6venntaprbfoiscgamgqeprkozxq@googlegroups.com;
receiver=<UNKNOWN>)
Received: from mail-ed1-x53c.google.com (mail-ed1-x53c.google.com
[IPv6:2a00:1450:4864:20::53c])
(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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HlX312X8Cz9sXN
for <incoming@patchwork.ozlabs.org>; Fri, 5 Nov 2021 05:19:07 +1100 (AEDT)
Received: by mail-ed1-x53c.google.com with SMTP id
g3-20020a056402424300b003e2981e1edbsf6586958edb.3
for <incoming@patchwork.ozlabs.org>;
Thu, 04 Nov 2021 11:19:07 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1636049942; cv=pass;
d=google.com; s=arc-20160816;
b=Pq578Yka+yvlGWVK4zTebTNfCTMK5rg2eXEBhV/oEH6Aypq8JL2dAN/BmGyG2jpFSj
uJoYIOpTR65lgcT2Ak9fTjKGe7+MbCwWZnB3+dk4gYWxO/Czw6nbDt+lCR7zuzvqCySZ
dSgpTqF959uj7lawFGgd0jSmCz8MlnaJajpYBBaKwL7Cbo9VlvE53K++kYgfGSKt5J/u
O6JmwQd1J0rBcJ0XDwwgraK19mShD3ENCjpntybIAuU2wdk1vuRKtnpoSm3BD7VaA7e7
HMVdyBpbXKINiNnSOQD4+zpc5Zn3eagBa3ZRMzF6MGJKb3iKPLactHjjhYosPQnHDUgl
TscQ==
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:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:sender:dkim-signature
:dkim-signature;
bh=7Me/2t/9e02o1AlFLxwFh5Tpte045TROFasJ24lGN3U=;
b=o4Yzr28Sjd8eM8b7gI9hxNLfSpnGtcvCjP8l62coIqbKNGGqtKGn44iz0tTn69BwDF
fibrSrF3vfHVNXA9sTYWs3vJ44i3c+nhqy5Pjqq4sjTmdN1DVps6BbxzyIWg4kGIDU5X
XpN/na8zWJejMmruvR/f+LpvTQg0eojo541+CSiqoAyhUbjLRPMC7askSYaajciVRb9C
fUg66FBXOwDHZZj2SOS39Lc3sBR6DQtn1DUYElyPc/1KjZjxyfQXBs00XFG8NWhkuwsa
TH8wYnfk0Y33WXmPmpzSVj+mQOjYbBjQkPAdYedkQkQZkCOWkb2w4W2her8rFYgIfwOj
j3SA==
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@gmail.com header.s=20210112 header.b=DsyE024i;
spf=pass (google.com: domain of adrian.freihofer@gmail.com designates
2a00:1450:4864:20::535 as permitted sender)
smtp.mailfrom=adrian.freihofer@gmail.com;
dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20210112;
h=sender:from:to:cc:subject:date:message-id:in-reply-to:references
:mime-version:x-original-sender:x-original-authentication-results
:precedence:mailing-list:list-id:list-post:list-help:list-archive
:list-subscribe:list-unsubscribe;
bh=7Me/2t/9e02o1AlFLxwFh5Tpte045TROFasJ24lGN3U=;
b=pBhvvH5AQMSPGwn7q9Xy3vrlckuBeZKigqFDJ2XV8axaR1PRfS/apoY+KEBuwaYhVM
jJ2sVHV8X0P1gJFk8Yi8k/eo1EBglO5cnUrZzhHVdpLVSIlJKJO6ItfZUAJkDE4jmWrK
SxuB+IA9xcnuHdkIvMZbZfG1jxt9m5mIwqA9cu5Pws45s0EdBOLgzGnlw46Pj+j/Wqrj
F/cLp/ikQAHWz0bfoiqSGqoWeS1ZD1vnFfEaEOfQejWw0/tDh/JoIlqBmbSsNARMrQYB
6/mwPzubOnhnla2SEusixHcgYH8wqYELg6W1wYOgQgl79Gk1p2877V1jyjWnDqOx9jJ5
oqkA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=from:to:cc:subject:date:message-id:in-reply-to:references
:mime-version:x-original-sender:x-original-authentication-results
:precedence:mailing-list:list-id:list-post:list-help:list-archive
:list-subscribe:list-unsubscribe;
bh=7Me/2t/9e02o1AlFLxwFh5Tpte045TROFasJ24lGN3U=;
b=bqgqrP/bnPqADEQhnIE0mTB885tIr5ZZ0YKglsSadUsBue4xq3Q8gS/x+fzcZik1IR
f8vBfhjN/BHc9MCtW82AfvVkLZbXkvTX+bWrkVUjTpZrCtqVWjIJXzCbMBHh8FcnZjho
DImbTuVTK5xoYbMlAGlRVt9HZYJmh4bhTtpWGr817fWncaM47+OfqV8Lc9ZbHHIesGDa
NZJFBLqOJfGpMY6aQP4XMzQltQ/UV4xY9zOzRu3EpM4DUEbc2gBbwiDr/aQgXGj1tCRz
20Hu3rXe31qmjDtB8qrm57VsLL9WwGAjBDk+9efKfE3z7tw8iT7dB0zjsEeIzhONIRmr
P5zQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=sender:x-gm-message-state:from:to:cc:subject:date:message-id
:in-reply-to:references:mime-version: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=7Me/2t/9e02o1AlFLxwFh5Tpte045TROFasJ24lGN3U=;
b=4gm8l2oxw84tFh4/0wpPFHsAlY8g3zIIfrf2THGKtJtIkK+zsSAvDZnf02nKAVzYHW
SsxtxhjlhhKJyvTX8hd3Mleu6BSOteXP3X+0gQ1TJpQAqid2pHtvtdaiWns7sL/GE1ev
IqFKMmo6JmoJmRqihenwyUoIZzUfKBmpoFdVpT2UEYntoPcTTqHNkobKwPVuAgqJHQcx
Tvb1SmVga1pE52ijN6ZEQ4Md3TKgNO1cMN79y5VU488I86Kz1in4NvQyyBAt4sRSm0wl
IQbJD2EXgt640r1Oq+p2R4RAD+vDU9sJrCpJSNyORzRvsAQVf/XqSKMzpRh1Ysx2T1Wz
66Rg==
Sender: swupdate@googlegroups.com
X-Gm-Message-State: AOAM532uG39SvMSy/QN4AthZxa4cd6Xmj6O2wi5rKhPgyGNnckVwBNh1
jv5F1G1mWymjadZp6kdqrA8=
X-Google-Smtp-Source:
ABdhPJwiut69j7K3XZycZMOj7LdWjyOePi38VOu3LhbumDBS/4Gwr5xi9GKkI5LCD8Xpa75dBi7F8Q==
X-Received: by 2002:a17:906:9b8f:: with SMTP id
dd15mr57718227ejc.99.1636049941790;
Thu, 04 Nov 2021 11:19:01 -0700 (PDT)
X-BeenThere: swupdate@googlegroups.com
Received: by 2002:a17:907:7292:: with SMTP id dt18ls976505ejc.7.gmail; Thu, 04
Nov 2021 11:19:00 -0700 (PDT)
X-Received: by 2002:a17:906:e115:: with SMTP id
gj21mr8397909ejb.348.1636049940840;
Thu, 04 Nov 2021 11:19:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1636049940; cv=none;
d=google.com; s=arc-20160816;
b=g+ZlCVfFzPFBY2NcTlpyOXV0vmOMA8J0/3lQs5DvOKVbD/u9PAjIrwQnpG3v0CIsMI
waYqEWSSFux3f9ZFvisAaOyis8+oEMCfo5TxDgbPZSL+Jfl6NrJkv3kL0bsK1I4LNkng
TfXjThZUzPZ8etrd8RJIENeo2vyL9yc16ebZvupYoLH23SBHGaXnj1yQ5034NYNi4c/9
VulOg/8/S97IbGZyJ7evMeu9tSdau61xpKFOBBgYgxmmSGZNmrhkMo9Mn1MLprFZRO6/
k5jc3oBiea71tVfGgdS7E7cphFZ8NumLByRzLz4DaKjqFJEzEcE6FQcJsMPvH775MGPH
ITwQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=tvWZGluWiLmfP+/ZUWO2R2iJxeqe2Mk7zuixNr3Saeg=;
b=F9VWQTMbA7Qe0AK1AGit0cURgk7k/BCxUuTn5lTf21QZlMvB1qyrmQQh8h8mpTiGDb
RqMsohR6D3eTbjcxKDUSlJAXOYUi0GmqayoIk5HmpG+4QEEzabdp0gdudT2MzJJN3TRD
du9vNJGF6JJgtW5n21t8Os9HsduwhUKzpLnrMJysiU2epR0xIwGMvoseFfX0hBRcSxxX
dpjvrViQgsR2MYkqblkSHsmwsaxHDCw/9KkyMlD+a2unSyXQGfUFyV1NIsi03wt6cNbw
GmP9Pl6PZ93odsMvB8JEI1g3zvFa6fKptjySTNHROKdzFJP57FWukZa5CpQymoneDY9C
dPgA==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@gmail.com header.s=20210112 header.b=DsyE024i;
spf=pass (google.com: domain of adrian.freihofer@gmail.com designates
2a00:1450:4864:20::535 as permitted sender)
smtp.mailfrom=adrian.freihofer@gmail.com;
dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com.
[2a00:1450:4864:20::535])
by gmr-mx.google.com with ESMTPS id
q4si380368edj.3.2021.11.04.11.19.00
for <swupdate@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Thu, 04 Nov 2021 11:19:00 -0700 (PDT)
Received-SPF: pass (google.com: domain of adrian.freihofer@gmail.com
designates 2a00:1450:4864:20::535 as permitted sender)
client-ip=2a00:1450:4864:20::535;
Received: by mail-ed1-x535.google.com with SMTP id f8so24700106edy.4
for <swupdate@googlegroups.com>; Thu, 04 Nov 2021 11:19:00 -0700 (PDT)
X-Received: by 2002:a17:906:1e82:: with SMTP id
e2mr62444674ejj.32.1636049939945;
Thu, 04 Nov 2021 11:18:59 -0700 (PDT)
Received: from md2ramxc.lan.ffah.ch ([62.32.0.69])
by smtp.gmail.com with ESMTPSA id
g9sm2890402ejo.60.2021.11.04.11.18.59
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 04 Nov 2021 11:18:59 -0700 (PDT)
From: Adrian Freihofer <adrian.freihofer@gmail.com>
To: swupdate@googlegroups.com
Cc: Adrian Freihofer <adrian.freihofer@siemens.com>
Subject: [swupdate] [meta-swupdate][PATCH 2/2] swupdate-image: remove
sw-description copy
Date: Thu, 4 Nov 2021 19:18:48 +0100
Message-Id: <20211104181848.4185983-3-adrian.freihofer@siemens.com>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20211104181848.4185983-1-adrian.freihofer@siemens.com>
References: <20211104181848.4185983-1-adrian.freihofer@siemens.com>
MIME-Version: 1.0
X-Original-Sender: adrian.freihofer@gmail.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@gmail.com header.s=20210112 header.b=DsyE024i; spf=pass
(google.com: domain of adrian.freihofer@gmail.com designates
2a00:1450:4864:20::535 as permitted sender)
smtp.mailfrom=adrian.freihofer@gmail.com;
dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list swupdate@googlegroups.com;
contact swupdate+owners@googlegroups.com
List-ID: <swupdate.googlegroups.com>
X-Spam-Checked-In-Group: swupdate@googlegroups.com
X-Google-Group-Id: 605343134186
List-Post: <https://groups.google.com/group/swupdate/post>,
<mailto:swupdate@googlegroups.com>
List-Help: <https://groups.google.com/support/>,
<mailto:swupdate+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/swupdate
List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>,
<mailto:swupdate+subscribe@googlegroups.com>
List-Unsubscribe:
<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/swupdate/subscribe>
|
| Series |
fix build-time signing issues
|
expand
|
diff --git a/classes/swupdate-image.bbclass b/classes/swupdate-image.bbclass index d405fe1..d1a3403 100644 --- a/classes/swupdate-image.bbclass +++ b/classes/swupdate-image.bbclass @@ -10,27 +10,10 @@ inherit swupdate-common.bbclass -S = "${WORKDIR}/${PN}" - SRC_URI += "file://sw-description" -SWUPDATE_IMAGES += "${IMAGE_BASENAME}" - -python do_swupdate_copy_swdescription() { - - import shutil - - workdir = d.getVar('S', True) - image = d.getVar('IMAGE_BASENAME', True) - filespath = d.getVar('FILESPATH') - sw_desc_path = bb.utils.which(filespath, "sw-description") - shutil.copyfile(sw_desc_path, os.path.join(workdir, "sw-description")) - - if d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image) is None: - bb.fatal("SWUPDATE_IMAGES_FSTYPES[%s] is not set !" % image) -} +SWUPDATE_IMAGES += "${IMAGE_LINK_NAME}" -addtask swupdate_copy_swdescription before do_image_complete after do_unpack -addtask swuimage after do_swupdate_copy_swdescription do_image_complete before do_build +addtask swuimage after do_image_complete before do_build # Read all variables from sw-description file and add them to the vardeps of the do_swuimage task. Bitbake # cannot know that the do_swuimage task which evaluates the templated sw-description file needs to be executed
Since the taskdeps should now be fixed in swudpate-common, do_swupdate_copy_swdescription is redundant. do_unpack should be executed whenever it is needed. It will now use IMAGE_LINK_NAME instead of IMAGE_BASENAME. IMAGE_BASENAME contains a timestamp which sporadically causes errors during creation. The problem is that if the image files were created by a previous bitbake call and bitbake skips the task of creating them again, swupdate fails when searching for images with the current build job's timestamp in the file name. In any case, the link points to the last available build. Setting S to WORKDIR should not be necessary. It is the default from bitbake.conf. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> --- classes/swupdate-image.bbclass | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-)