Message ID | 1561045268-20479-4-git-send-email-philippe.reynes@softathome.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <swupdate+bncBAABBGGSV3UAKGQEYG7AMNA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::537; helo=mail-ed1-x537.google.com; envelope-from=swupdate+bncbaabbggsv3uakgqeyg7amna@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="C3lzDddh"; dkim-atps=neutral Received: from mail-ed1-x537.google.com (mail-ed1-x537.google.com [IPv6:2a00:1450:4864:20::537]) (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 45V5dT73L9z9sBr for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2019 01:41:16 +1000 (AEST) Received: by mail-ed1-x537.google.com with SMTP id b12sf4742509ede.23 for <incoming@patchwork.ozlabs.org>; Thu, 20 Jun 2019 08:41:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561045273; cv=pass; d=google.com; s=arc-20160816; b=Jps7qkzYKpmW2wcs6SOuPzRviFLb/7HHr+AHRkI0D1zulfdOEy1kubnuGRdAhAMjbB T+J9OZZB0liosL/zuXArGS0MqlZ9eQSPn9Y9ROhKffTH2Uo6rV7MpmSwbRvzKfKn6of9 jXQMC9XAhUcjJpRH26eMCuI5WbP9dsnlfN+hy3AkHMZ/xHX5ks45QTGVtP38Glpe35tl ioBtUQutrz4tB+VzokJrHbJipISv19krl8wQShjyl8tCiRdHl21P9lIN4SbXbmK3efiP Og56vaEJ5JDWH/4Rr79XJYd83EUgQ5sdY+ZZ3D/Pk+7IxeaCtidN9xbN5mw1r5IZuQOQ QzFA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:mime-version:sender:dkim-signature; bh=GEEcOon2u2Ps080Ji3lQRA+kNlG5In1glHYvJWxqMOo=; b=xflg3hpsYGZ4ii0fHE6lBkfbIJ3gyASF9O4WWEz1EUVYp25aZo1Aicj19/VkSvbl4x JBQ++Ot+yNuxBV8En7RFQ1N95K99FB35TW0QhVYZxD2pCdR4aOJrDPAXz4GWUi5vi1Fu br/u417/8QfpBVmEm4L6pX9TUXmM7iZ2shn3+0+Wo3rRrm9IfMDXxUUIr/MO5gi/feUB 4iQbmGNvyuj7etdr1p0tDTPyKor+udrxMZC2xKI0FTVIP1WhOj2gEvjo1SE1caKFX+Q0 ktZC2fTlq8oqfUmsEKG5q5iiDJUEAhPQLwIPB7lfqhtzSxG3mpdPGVi2i4b+USKqe6qr nTgA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.33 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.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:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=GEEcOon2u2Ps080Ji3lQRA+kNlG5In1glHYvJWxqMOo=; b=C3lzDddhvNZ2bzDpIccGWw71nsVnj0zhlIXqidw6pDUzSj+5qOguzkpCyqh1YCM4zz JA8iXsi/ISJQdPPehSNdGxuSz9P9/mFB9pOs4kDeoxjlZ852ZJlbDKAXdzn+3tvVmz54 Jxcdw4RKKWMdP4LPVCfaxTcoUFvq4JEgTgn+hAWs5ETzdDN1MNZOY+mdnlR30qkIckcP M7hUdwcaIvA8UG+9WRQtDM7gcNOzxrHLNFAFgzErhmGNNnxSJQUGcJ1zVdJQPBJDadkL WYDdvQHf4TeZ0KImPSHypb1TEzfPAVf6Key4ZuamslzQXKtVTox/0lxbT6qd1myUSsh1 jt9g== 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:in-reply-to:references: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=GEEcOon2u2Ps080Ji3lQRA+kNlG5In1glHYvJWxqMOo=; b=k51q+7LnYVdst4e0ySO48U7YQLpJ5C9/esmRJ0T88A94xEr+jl2gNMz0DfkUuylhV1 siInNAsff2vBWttPU+v/X3kBB5sNd1YbhFOT4kMEpr5wm61g7AgwNFbP7o9kEu/x2+8B S9Q5SsNNwVWhCCJ+KgwU/84MzPk4I0axBbzu4V07NW2iItyxVJkBLFBsXxERvriEt39x XfUDU7rXd4+ZqWm0ekEEIoqNhDMlTkEKbgskPGs0t4FqUV82S68v9nWJVckQ2YSTpmr6 GoEwh+RLREAYP5SDp296kZmlXPz1y6YVBfG60Qj2NCzims7AvRx4wV87E6k8oSgwodxw vi/A== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAUH4xWW3SoJB1PWsLN1Y8FPGLQ5PylsmarOdF3OxiKfIFyORVTZ n52hYopkf2jratOcozuXv3U= X-Google-Smtp-Source: APXvYqzC5D96OJIT/zELB0MSmY4aB2fX2a7IwrOSLxtP4mT+UDFNpNy3vmLhLcZojYOul0dShMMd4w== X-Received: by 2002:a50:9157:: with SMTP id f23mr29692022eda.79.1561045273022; Thu, 20 Jun 2019 08:41:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a50:8efb:: with SMTP id x56ls1933680edx.9.gmail; Thu, 20 Jun 2019 08:41:12 -0700 (PDT) X-Received: by 2002:a50:f599:: with SMTP id u25mr108708333edm.195.1561045272760; Thu, 20 Jun 2019 08:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561045272; cv=none; d=google.com; s=arc-20160816; b=wymftq7N+gpnruFR+iInz7JR/xPKa4dCAGdm7ybYTpEFzlvhaaU2wwKMAefEXK+vXI Uykl533l8QpJGiwx/H764EGYHkWYKhoLQ4B4juPETr/5iBAP8PoxW/ME4ItIxUPMM5G+ DSe5cdZDmV/az61U6buzmLbHdAjc/UrH+OmwQR3fa5A6zplbeCsaMlLbq7Ansrrz1PN5 Bm+lIWkKBjYdLrvsBJNPiTxI3U5muKXnX6gJhCfKG/P/KXp+7JCC+HT2hRIZEfOhAKna Nsqc/EhK3lT0zevc7enPzRoP6FJjXfqLeFwfE/6RSIspDJRpxapP/TwOz/xVCfss3LNy +vwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=g1C1VaBBMnBEKmwHYmWTYZET922nN3kSaaq1ieTUqRE=; b=IJJJajKzdph9ghnwl+6NqTubRLUD/3jP0glWdEVfi7BD4Vx3IsMWsiIa1mv3ajf5Xd KAURdvq2FgzGlXU4JMOU6oedNPnFB/8fcfFLpLhVUTw0hkgMoehAKz4Ols1hb/HlzsGV I5BBJxNUHnQNUSRv+DcivneUQVLeVHhJpLMeo9MuFrDddeI0n2YaRbCoe14yk/8GOQvO m8eRON43OclLJUK3dFaEuHQ9lXf4Uca95Zneu6BVdwolpPvyGMytMcSdK4R09azkO1+m k0/XmX70/eAYZE7lb8B/7EIW7SDvlnlAmKNlK94uJ2Mc9+X4T037sIUHzStgnhtGbnFe w8XQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.33 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.com Received: from vrout30.yaziba.net (vrout30.yaziba.net. [185.56.204.33]) by gmr-mx.google.com with ESMTPS id 91si4653edq.3.2019.06.20.08.41.12 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 08:41:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.33 as permitted sender) client-ip=185.56.204.33; Received: from mtaout20.int.yaziba.net (mtaout20.int.yaziba.net [10.4.20.37]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by vrout30.yaziba.net (mx10.yaziba.net) with ESMTPS id 6E853520AE; Thu, 20 Jun 2019 17:41:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mtaout20.int.yaziba.net (Postfix) with ESMTP id 72E2A1602DC; Thu, 20 Jun 2019 17:41:12 +0200 (CEST) Received: from mtaout20.int.yaziba.net ([127.0.0.1]) by localhost (mtaout20.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WOMUSE1RBAou; Thu, 20 Jun 2019 17:41:12 +0200 (CEST) Received: from sahnlpt0333.softathome.com (unknown [149.6.166.170]) by mtaout20.int.yaziba.net (Postfix) with ESMTPSA id 511331601D0; Thu, 20 Jun 2019 17:41:12 +0200 (CEST) From: Philippe Reynes <philippe.reynes@softathome.com> To: sbabic@denx.de, mk@mkio.de, hamish.guthrie@kistler.com Cc: swupdate@googlegroups.com, Philippe Reynes <philippe.reynes@softathome.com> Subject: [swupdate] [PATCH 3/3 V4] parser: don't check hash for image of type ubiswap Date: Thu, 20 Jun 2019 17:41:08 +0200 Message-Id: <1561045268-20479-4-git-send-email-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561045268-20479-1-git-send-email-philippe.reynes@softathome.com> References: <1561045268-20479-1-git-send-email-philippe.reynes@softathome.com> X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: 0 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeggdelhecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhestddtredtredttdenucfhrhhomheprfhhihhlihhpphgvucftvgihnhgvshcuoehphhhilhhiphhpvgdrrhgvhihnvghssehsohhfthgrthhhohhmvgdrtghomheqnecukfhppedugeelrdeirdduieeirddujedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht X-Original-Sender: philippe.reynes@softathome.com X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.33 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.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 |
add a new handler ubiswap to swap several ubi volume
|
expand
|
diff --git a/core/parser.c b/core/parser.c index 313201f..b681867 100644 --- a/core/parser.c +++ b/core/parser.c @@ -68,10 +68,11 @@ static int check_missing_hash(struct imglist *list) LIST_FOREACH(image, list, next) { /* - * Skip "ubipartition" because there is no image + * Skip "ubipartition" and "ubiswap" because there is no image * associated for this type */ if ( (strcmp(image->type, "ubipartition")) && + (strcmp(image->type, "ubiswap")) && (!IsValidHash(image->sha256))) { ERROR("Hash not set for %s Type %s", image->fname,
When the signature is enabled, the parser check if all the images has a hash. But an image of type ubiswap don't provide a file, so no hash is provided too. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> --- core/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)