From patchwork Tue Jul 18 12:23:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1809208 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::440; helo=mail-wr1-x440.google.com; envelope-from=swupdate+bncbcxploxj6ikrbymi3ksqmgqeuhmisma@googlegroups.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20221208 header.b=YDCjxziC; dkim-atps=neutral Received: from mail-wr1-x440.google.com (mail-wr1-x440.google.com [IPv6:2a00:1450:4864:20::440]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R4ymm5wD3z20FK for ; Tue, 18 Jul 2023 22:24:07 +1000 (AEST) Received: by mail-wr1-x440.google.com with SMTP id ffacd0b85a97d-31437f02985sf3611632f8f.0 for ; Tue, 18 Jul 2023 05:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689683042; cv=pass; d=google.com; s=arc-20160816; b=r8bbqEUkJvZUKMrkkPRCDFB/9alMw9BGcg3l6y9kOYwEYnf/5faS6e4xUG3xUGxyeE I6UWogbvwWKm9EdWKDi45WyL2D6C4cKM//oG9SzIzP/AIg+p1mmQtwJpyBsQZVNUdHwT klepFdp7uxeUxYh2etlpNalXoi+jNi00Vum77ntoMsVlEzy26Dyu8i1tvFFWq2u+kBRO lLNin9Z5isPN7DqEzv8YHDOBC6czkzdoyCfVJGahnJ1IG8D4mtWq2ACJp2uCGh57AKBd HzMOLK+Y7bWyeTOaqF6M0/UWkmpve2O549jxBJlsNwyHbKHUrwJDiR/vgeP3Qb/rnAEY gT1w== 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; bh=z7lze2D4VNI6Fbi/ustiE9k3G1Wie28gOttCEYtPMng=; fh=lWBtl6pS9pyAnqZoOD8LO/oehp4+grVVQDFlD36xIhM=; b=JhpBHYquKqW5FEq+7qXJ/xnwKnuVlqWi2D0519eYYtct6jYXxx4W7KBjzzhyiJROLi PyYJahlAt33ybzkxSIgfNPLgMM4vdZSCj3hmI3TvzYV4DncTBn4m8fzW+wd/xUkgQsuy 9ib1YL0P/FcOJ7t+tiHux/yPsJixN0Jr0ASFSV+L0//XLwK6HOvoM5GGf+AUVrIRJL23 Tsm0Q1Ga6hsv6kL38n1xIRgYdjVTsobJOe9w1Lr+dNsFd9VH9aQX8pBS2q2z2Og7odFT xSHOjOhUD26pBJYEoT0eqUTSQg//HEhQy0ykcvAPZiGnQ0fXRshVa2SzzrmkdHP7D3Wv 4EMw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689683042; x=1692275042; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=z7lze2D4VNI6Fbi/ustiE9k3G1Wie28gOttCEYtPMng=; b=YDCjxziC2+8gTaFbK8xRYnkcCenk7/viEPm4qY1UG6uMWe9rnjWHMZG7FBgTq7rCho 1SaGBCiS/IBKbW8GlXuSV/5OsPYJvbtwEqzIRDlDJSXmFXU3VT93skwyPEPAHFk1jA6R dN5LJSWU9xyi5LCh2dxchSu9mTC3Mu+Q0Mwye+3QNEzNCjp7rWizotWabWvWg7zNH9ue Eszo25PY7cR1YuAN6DYlgQygJYVcRPc7c6+BJCs8az5CKETyV4DASKhCxN5nZbst4SzA MuQFgCzPlDe5CaY5qFllUHlUAxfonHggcK7KyKEHBjlFh8koPL6KSpsd7tDPwgaBsdyb xs8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689683042; x=1692275042; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=z7lze2D4VNI6Fbi/ustiE9k3G1Wie28gOttCEYtPMng=; b=Ct4XLd6tBG5mTGcqBeEoo6p53OdYHwaaCo83wsw40b3tsYkaVGXI2fcwWiNyZ8uyOS B6q4+L/0nx6NQef0CNpICn5Uz107MI0ytRvbg9YbXKJjUz9KlD9RWxt1sZBl884teB9Q SBee0R+bccnD9q4orBpXRYqgnoeQrGQg4rNMRarFektOs7SfRG4NyDthe7UfGL8VV8zm KrxcY+oWgDSAf1LQMd0yXFtt8Y564oLe86iP18Xkhd2rz4GHXOKVTUe9DI4ZLbIu6ILn 70Kbule94W4/VUAty5pfMPBgjdt1LbLCItu0ueGVpgtAS8/mzjDOx2JaOtYLjjTHnZZi +N+w== Sender: swupdate@googlegroups.com X-Gm-Message-State: ABy/qLb1rKphzalNq1eC26wwjohERaHtlYbdYhXBVzOAoVOFokLj4a+8 xGuH23PbMHgq7J881cqZXK4= X-Google-Smtp-Source: APBJJlGYwdm45uVHjtOWygtMsOAp9Ck3qA7Ze9rIUjvxmhMCFrB0P2t6zCO1am1Jv+8MRPXTmflVNw== X-Received: by 2002:a5d:4909:0:b0:314:3983:1465 with SMTP id x9-20020a5d4909000000b0031439831465mr12129552wrq.31.1689683041935; Tue, 18 Jul 2023 05:24:01 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:6191:0:b0:313:f4ee:a4d1 with SMTP id j17-20020a5d6191000000b00313f4eea4d1ls1018439wru.0.-pod-prod-07-eu; Tue, 18 Jul 2023 05:24:00 -0700 (PDT) X-Received: by 2002:a5d:634e:0:b0:314:f18:bc58 with SMTP id b14-20020a5d634e000000b003140f18bc58mr14316035wrw.58.1689683040058; Tue, 18 Jul 2023 05:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689683040; cv=none; d=google.com; s=arc-20160816; b=g06D+CsXoT0CRn+k+pU0LXfqIW/l86Mg59jqILF2OXE3cj3rqFftZ6mIMHX62Ks6cZ jHH082arcgpO0Tp71IKSzX0A8MYAyLJwKn6R2EuAN0FKve3g1AzHvoEznVlCLI9ImKXE jU+h8sQt1ldr/JZgl/QWkylR+189oVFPfDMxE0nT6nhumIr6GHfmMGQlLtFFL8F2UNEC gvH6Dk8TNL4jZk9CGBkMPQptodApK9pFwCX1SymgyMdwUvBRytFPpjaN21UoBQ+A4B3E SavFc9Q7QPfPE1dSEvU3SM2QK8BmNlvGo+LYNP3kf+MfjS+x6v4iA+cCTqeWAN9BFR+k xD4Q== 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; bh=uvN3eKcHIcv9aNl8s/4GWqMsAsyyt2TXDHLbgNkvg+Q=; fh=lWBtl6pS9pyAnqZoOD8LO/oehp4+grVVQDFlD36xIhM=; b=ukQF4XXFg5IcbIGueYgjjmY3N1EGnEk+gyoRyDc75jMIrAdGRzzFMTpwpHfU3XPgdW +KYtNM58YY5zRn9aseRWRqJIOyuZIxomJJ/U0THIudhodIXlpd22eHeeIhUyZ/prgbvW /Y98kiojGaJq1cMxzai0NbelGnNK4q5c9OzjYUEVR1YOYB+oZp0reZusdPOl28GEhSUR oahZ41IcqSp2CCuBTIpgvsnFPOQs3OBUlNh5NeX31UCtj0NGfUkEtBzLYdYYODN6A9gH AJ4+GIZXmyMyQhogRO0vX5BOsy/omy7wwGIOZKPDXSxvdMqbmCrCfUh0N5vq8X0WdTG1 wrQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=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 ba14-20020a0560001c0e00b0031597ce1881si102995wrb.6.2023.07.18.05.23.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2023 05:23:59 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@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 4R4ymb54l2z1r6md; Tue, 18 Jul 2023 14:23:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4R4ymb4z9wz1qqlS; Tue, 18 Jul 2023 14:23:59 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id 6Gmn5rgK1pPt; Tue, 18 Jul 2023 14:23:59 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 18 Jul 2023 14:23:59 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id B51F84540AD6; Tue, 18 Jul 2023 14:23:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ShHxNBgW2ube; Tue, 18 Jul 2023 14:23:56 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 09CA94540AD8; Tue, 18 Jul 2023 14:23:56 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [meta-swupdate][PATCH] image_types_zchunk: creates zchunk files for delta Date: Tue, 18 Jul 2023 14:23:52 +0200 Message-Id: <20230718122352.1074699-2-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230718122352.1074699-1-sbabic@denx.de> References: <20230718122352.1074699-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=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: , Delta update requires artifacts in Zchunk format. The class adds two new IMAGE_FSTYPES: - zck: this is the artifact in zchunk format and should be made available for downloading. - zck.zckheader : this is just the header extracted from the zck file. This file should be added to the SWU for delta update. Signed-off-by: Stefano Babic --- classes-recipe/image_types_zchunk.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 classes-recipe/image_types_zchunk.bbclass diff --git a/classes-recipe/image_types_zchunk.bbclass b/classes-recipe/image_types_zchunk.bbclass new file mode 100644 index 0000000..2c477ba --- /dev/null +++ b/classes-recipe/image_types_zchunk.bbclass @@ -0,0 +1,7 @@ +CONVERSIONTYPES += "zck zckheader" + +CONVERSION_CMD:zck = "zck --output ${IMAGE_NAME}.${type}.zck -u --chunk-hash-type sha256 ${IMAGE_NAME}.${type}" +CONVERSION_CMD:zckheader = "dd if=${IMAGE_NAME}.${type} of=${IMAGE_NAME}.${type}.zckheader count=1 bs=`zck_read_header -v ${IMAGE_NAME}.${type} | grep 'Header size' | cut -d ':' -f 2 | tr -d '[:space:]'`" + +CONVERSION_DEPENDS_zck = "zchunk-native" +CONVERSION_DEPENDS_zckheader = "zchunk-native"