From patchwork Tue Jul 25 03:50:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 2941 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9835E3F37D for ; Tue, 25 Jul 2023 05:51:16 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-682a4f1253asf3475023b3a.0 for ; Mon, 24 Jul 2023 20:51:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690257075; cv=pass; d=google.com; s=arc-20160816; b=tHUHxk1nnZ8EIuk7QYRCrJOtR3B9zijAp4PhsPs1SO5XupzO4HCZ23ntb/zcDXVO7X fuTCYChCzuNpU3G1DFuPDHPp+m+j7At6nBdzACTu7N2GDoq2iU69zKWgqjpDwGawOFm1 YkW3zcS8mGNeolqohEG8+avJXo5hakNUsEX05m8WfUtPQDk0JG4tYhd/S+YUJpSC5WfV tDaKKUn1ihMSSfAGxXWEI90yxGuCSkGgUYpUPdOuBLDlFK+oDhdzvUAEic4uHltR04NU mgo/LQ1GzcQuZY0MSv/K1TrzR7xOn6YLzI0z0meW9ACVXZTNgee+FIa04+y+6Y7qM3eI Lhtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2HSC18xrOvygqQiFbFp49Pqm/jO5h2cRwGKRaGWfMe8=; fh=ZtU/xXInpIejK4L8YauyoYBdqqK+nRzYacYy4t7Zzbc=; b=jkvM5tyRxsfxBCkuykYvA7uUgTwjrOgBxbXuTEeo5hPPYb8lKGiwiRFPOKjMA3GJQa afLKPdem0niNGR+fcVk3BRCLT0FBmI7t9yCb2dDlAMdVdWtqV5Qwl+k9S8yUhXBJ8dNa qU6g/dhLFWq5QqaxN2rYdCI+Noe7Ar0YcVLe3rnO1zYEdKV/FQGHTLcL7ulWLYerEHxJ 8Xn2KNVq2c9+mIDMyI/3XrLbxKKqzK8vbTll99ml3Xb5+os1/3ZT4AiLLnTYate1hwpN rsvIDjgDCzXnNhkR1EyACRRgHSKiqAuscxzw78BCz2OySnKZ5V2mhDaobACr+JGY8tGk liZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Jkpfv6/6"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1690257075; x=1690861875; h=list-unsubscribe: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:from:to:cc:subject:date:message-id:reply-to; bh=2HSC18xrOvygqQiFbFp49Pqm/jO5h2cRwGKRaGWfMe8=; b=HQFe16X/mQFPdBDrrgjN/QKke8+eU01vx/nGJyACugLo0S+ogjnnWyhix8piM7b2fz LEXEkOGI1hArr5PNU1oqw1Vo3pPPEZ5+7rwKrJU/YlvOZHie9Rv81CMX3fR9Kqsozg8j xZoUFlIZOMXpIVttryB1giuI8iokdHvIkw+wk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690257075; x=1690861875; h=list-unsubscribe: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:from:to:cc:subject:date:message-id :reply-to; bh=2HSC18xrOvygqQiFbFp49Pqm/jO5h2cRwGKRaGWfMe8=; b=RzQdXSOL+6o9SIXJ9uT5diiKfPwp73tC6iIhBeT68yd9tI+QNfUDGXBs55xPrel362 VuaOwwWbfnBmwXkXro7FWg2IfBIVz/tvKWI7Ky+C0JjjzCDnKzmcU6hcVgB2lLQk8PHN akXsCHgSwj4xCnO58q9dB2xcS+KT50QzBIKufksda067SmMLSj/gmjR04VWllsUhsbS7 PXDWxv3V8+GTTrwCTicz9JbpzdMIq5QFvWC0WwzIQMVrHu1deG2uo7STOIr6m9//GZIg K94K2y0Ga/MWWs6FNiGzK70t9gmvyKWtYc8GTtbGynhOQGzjxO6SZTpX9Drb/BbURtSc Q0qQ== X-Gm-Message-State: ABy/qLa1HpHs7IFKoSTTbSMP1vhV4J5ja/cfaoUQyGM0Q7zRwH9xLR1Q 65FSzisnpPgIYqjkfDdQmsKYHtRV X-Google-Smtp-Source: APBJJlE9zyIuW8oyskXecB6TrB7lzvuJkcs968c3tHSxm/WBMUSkGd4paMrbxc/vwDnt5x8iq49Ylg== X-Received: by 2002:a05:6a00:80f:b0:67f:830f:b809 with SMTP id m15-20020a056a00080f00b0067f830fb809mr1655568pfk.3.1690257075144; Mon, 24 Jul 2023 20:51:15 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1c16:0:b0:66a:44a0:cbb0 with SMTP id c22-20020a621c16000000b0066a44a0cbb0ls3615907pfc.0.-pod-prod-00-us; Mon, 24 Jul 2023 20:51:14 -0700 (PDT) X-Received: by 2002:a05:6a00:3a24:b0:668:98a1:5e9d with SMTP id fj36-20020a056a003a2400b0066898a15e9dmr1603542pfb.6.1690257074240; Mon, 24 Jul 2023 20:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690257074; cv=none; d=google.com; s=arc-20160816; b=aFL0B40h//y4TwtCvVZTeqksu43xLJmjdTaOuiAoaCO4H+jsEfBqDzApLlxUj9hdxJ N/v02YJG2xPQmYdWrJeVbulvWu5v64zfT9ETcCCdDN/jx0U79cNfNbwQptdUARc1fOHw Pru0CXGi2JkAUdiCvRAqjHHXOItyzhhfE9kvEp07mO4Q6c2V9VJrM5AiDMul8YXSBvfH LKAiFD7AmhRD/vhytvi0+mV5LWgABkEG7nNFH1AMZ2Een59EwZ64DfYXCbtk+9c9zplr KNgZMFfjPn8HhZbkgqRAWGaRQlljWlS2EfFYA+6BqAoh4l/crfMw6aey6JfZ7v0gqq6R dAig== 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=76n2fUzBzrLyUyMz30iEYvhw3+Fg6IfE9yWOEUmQJQ8=; fh=ZtU/xXInpIejK4L8YauyoYBdqqK+nRzYacYy4t7Zzbc=; b=cLcC8F901N/Ta8EJ1Z0ix1jHV7WdDxczRgHdyBeAsBjdFzERfBQZZlATlWTygex9cr FpXweTrkucpDrT0b58vMAElhmQOS157eTWduQFW1RQInuTuCZWTH4idxLntWeEpNOUsh f3Vlwh4vkwRU4nV7fYh3eB7tcQwVkM8vj/A0d8IBBFWGYtGp8yVNlmXcjMPJZ75Me5rG 81tV6uKCxAv3YwS3qSh+SvrFX+snyFmJMrK29edd5KRJFDrTCvXdTLLe0v/CMZdWD9O+ tQWO4hPImjYded8nW0YdJjA1mkAN0TBnR4uVj7Ssacq4Io5B9SB6DFhZRhUWhTgX31Sa wJrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Jkpfv6/6"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p1-20020a056a000a0100b006821133916csor3623465pfh.6.2023.07.24.20.51.14 for (Google Transport Security); Mon, 24 Jul 2023 20:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a20:4312:b0:128:ffb7:dcfe with SMTP id h18-20020a056a20431200b00128ffb7dcfemr1239049pzk.1.1690257073870; Mon, 24 Jul 2023 20:51:13 -0700 (PDT) Received: from localhost.localdomain ([49.204.25.25]) by smtp.gmail.com with ESMTPSA id j18-20020aa78d12000000b00679fef56287sm8658399pfe.147.2023.07.24.20.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 20:51:13 -0700 (PDT) From: Manoj Sai To: Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: Da Xue , dsx724 , linux-amarula@amarulasolutions.com, Jagan Teki , Suniel Mahesh , Manoj Sai Subject: [PATCH v2 1/4] rockchip: Add support to generate GZIP compressed U-boot binary Date: Tue, 25 Jul 2023 09:20:58 +0530 Message-Id: <20230725035101.281325-2-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230725035101.281325-1-abbaraju.manojsai@amarulasolutions.com> References: <20230630121146.513345-1-abbaraju.manojsai@amarulasolutions.com> <20230725035101.281325-1-abbaraju.manojsai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: abbaraju.manojsai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Jkpfv6/6"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for generating a GZIP-compressed U-boot binary with the help of binman, if CONFIG_SPL_GZIP is selected. Signed-off-by: Manoj Sai Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- arch/arm/dts/rockchip-u-boot.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi index 2878b80926..524d638e5b 100644 --- a/arch/arm/dts/rockchip-u-boot.dtsi +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -48,10 +48,17 @@ type = "standalone"; os = "U-Boot"; arch = "arm64"; +#if defined(CONFIG_SPL_GZIP) + compression = "gzip"; +#else compression = "none"; +#endif load = ; entry = ; u-boot-nodtb { +#if defined(CONFIG_SPL_GZIP) + compress = "gzip"; +#endif }; #ifdef CONFIG_SPL_FIT_SIGNATURE hash {