Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp780817ybi; Fri, 14 Jun 2019 03:16:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9rB+Zod/kZZkR9qe9PPcSXCdhsMjnFPnwqoUbuxuMNxsa+fVFIanoFAr6HPFj4m1mxuyF X-Received: by 2002:a63:1d53:: with SMTP id d19mr35199611pgm.152.1560507411751; Fri, 14 Jun 2019 03:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560507411; cv=none; d=google.com; s=arc-20160816; b=Cd/CukSE27vWIkBvCXIYKtONQgAmSjiaWt5oOtYLUjfqPlX0zFj6DGYeYmE1t0jEnf RNc9rVdHWCAPEx5KZoLHZM1AjjSp7dbiByc8mJbKQse4tW/CAjL60RIylmkioUJxX60l w8aUpjXudjWmEv1UCOmnVwrpvhtYCGLRrBs3Q5vyVdaXYdey809KIekHWptCTq+dckSm NQu9OOtz22GO+N6e2dEzbRw6LahkrhHXhigIOd+YDOfzgxZBE+G0JgHCOhACXn77jPin x2byaTiRvD1+XBzxkuTcqtFkhWPGRrDiz80th/47ODTxKem/InK1gGDYYvlWmvt8llXx Iitw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=TY2dCqN2e9LwCfIjpEtnXQ6QZOx6P42BO2JkGX44zKo=; b=q7gYAkQLqMwHMTGDmP6OZA+bQ0zhDLrDjbioWw8vvsC6/1olC0GkF6csMROA0vY96L JJ0w8ADE30S69IDbN1h69f4kA0l4H2Y7E6DbJOT4bXWz92Aisg2BVRspVM1DVKMsxyuk tHWRpaxsLqIioxBCxiHreiriyNzMsGkNNGp+3EFmp6zoGtLy80xUKV/bDdAop4UT61Uk fAm+0xHb9p6Yjte4ZTYnf2CpBtVhfzVsVhRnxc/VHWxaJknaQFgOrdBtXIQJOXAR0FO+ zXRpQqiXoeYap4cQLOLmx39xmpY3Pj1v4f5IZ9bTzeRGLOig/Kao/2jElkZsu4G4Ql9+ dQgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=sX7cDuPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q129si1074795pfq.43.2019.06.14.03.16.34; Fri, 14 Jun 2019 03:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=sX7cDuPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727352AbfFNKQ2 (ORCPT + 99 others); Fri, 14 Jun 2019 06:16:28 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:17591 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbfFNKQ1 (ORCPT ); Fri, 14 Jun 2019 06:16:27 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45QGjM1H2Jz9vDbj; Fri, 14 Jun 2019 12:16:23 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=sX7cDuPN; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id RsZZFblO1owP; Fri, 14 Jun 2019 12:16:23 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45QGjL6tmgz9vDbh; Fri, 14 Jun 2019 12:16:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560507383; bh=TY2dCqN2e9LwCfIjpEtnXQ6QZOx6P42BO2JkGX44zKo=; h=From:Subject:To:Cc:Date:From; b=sX7cDuPNCOH3k1NV5WEEAQVIfWziAd8Yttao5/aoEyBT0eSlXHRjPskvTVdPr820M GMCllAQp+pwfGchnsGUjQ24zxvechvXUsYdfgm90jqvm2kG6mvV2/nyUMo0fQ1Awme 5YfAXVzfmyFBYJsQRM+ClutAhF5IvooTaDlCYPGw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2C4018B7AD; Fri, 14 Jun 2019 12:16:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id b9t6QDuhCvSj; Fri, 14 Jun 2019 12:16:24 +0200 (CEST) Received: from PO15451.localdomain (po15451.idsi0.si.c-s.fr [172.25.230.107]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 08F808B7AC; Fri, 14 Jun 2019 12:16:24 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 0) id DF66968D78; Fri, 14 Jun 2019 10:16:23 +0000 (UTC) Message-Id: <1b4946c9e580b51b6ca2ddc5963d66406c013c2d.1560507284.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v3 1/3] powerpc/boot: don't force gzipped uImage To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 14 Jun 2019 10:16:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch modifies the generation of uImage by handing over the selected compression type instead of forcing gzip Signed-off-by: Christophe Leroy --- v3: no change v2: no change --- arch/powerpc/boot/wrapper | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 532d45833396..85d97360b1c9 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -40,6 +40,7 @@ dts= cacheit= binary= compression=.gz +uboot_comp=gzip pie= format= @@ -130,6 +131,7 @@ while [ "$#" -gt 0 ]; do ;; -z) compression=.gz + uboot_comp=gzip ;; -Z) shift @@ -137,15 +139,21 @@ while [ "$#" -gt 0 ]; do [ "$1" != "gz" -o "$1" != "xz" -o "$1" != "none" ] || usage compression=".$1" + uboot_comp=$1 if [ $compression = ".none" ]; then compression= + uboot_comp=none fi + if [ $uboot_comp = "gz" ]; then + uboot_comp=gzip + fi ;; --no-gzip) # a "feature" of the the wrapper script is that it can be used outside # the kernel tree. So keeping this around for backwards compatibility. compression= + uboot_comp=none ;; -?) usage @@ -368,6 +376,7 @@ if [ -z "$cacheit" -o ! -f "$vmz$compression" -o "$vmz$compression" -ot "$kernel *) # drop the compression suffix so the stripped vmlinux is used compression= + uboot_comp=none ;; esac @@ -411,7 +420,7 @@ membase=`${CROSS}objdump -p "$kernel" | grep -m 1 LOAD | awk '{print $7}'` case "$platform" in uboot) rm -f "$ofile" - ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ + ${MKIMAGE} -A ppc -O linux -T kernel -C $uboot_comp -a $membase -e $membase \ $uboot_version -d "$vmz" "$ofile" if [ -z "$cacheit" ]; then rm -f "$vmz" -- 2.13.3