Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3649656yba; Tue, 23 Apr 2019 07:23:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2emN262+UB3G7HCRkEvwwKPnaXkj9DNjrsaNuqfAOEiYlyIzU/TdmhfvC936famOOmk37 X-Received: by 2002:a65:6489:: with SMTP id e9mr24358094pgv.364.1556029412183; Tue, 23 Apr 2019 07:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556029412; cv=none; d=google.com; s=arc-20160816; b=Fgsns3F1ulgm1JzIZUb84kaTs8djpHyXxSciD7qBso6JRfCOWIkWZqvixTnRbCaIpZ SCDaW6swKe3bDrXDS3sTbun3jbs+W8/egY6gAc6di39xSnufCCSgfX+zZ1BdkCjlvolD mon6l/boPmIsw94rDpSsoC6vZpKsF1I+NTtaeNLPaucolunPuthoeyl1KLLaSfndx7rP W1FLcpuPKhIAOtPO839PFvK2nKGdV28fpFQ3QMI7T48b8JadCFLLa04WCtO0LFNL4Hm2 moofGEUrf0LJhIOI717sp6VSNv2o3ijIAaVaebi1610GOcIB/PwZJejjN3c2m9mOTVoE wvow== 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=fNqEjI2ZoGaORHatXbuqSr7VvXw1i5InB9mRSTYkSZg=; b=hGPNDnujZW/A9NlDNzdtA/3QsSZbsW4QmIGvH2g9bxDr2KJxrR2IJWNq0iGBjeRAFG sCuLOFGg4FHN7zqx1DucrMf+4pFxrFkbvgbX+wU246b61kp67n8aitwie8dcBHzKFrxe MLPofva7QCPSNjj1V8rW4bK9xFjyJCAuUYCoewiAMu+kH87trRsEhZRkGTKsqV1KPZYa NK4KXPTa0itUWVTeJQ/ZGFpktnLXsJdb+zhQKzankzZNyl78iHfOPhqiuFT85c45pqf3 XqpLk3IUvGDNdNAeAkyRl1t6jx4IC1HKEE9Hrin5AAjuuDefGdUJXD+ioW/dQ2LU7hPV +YDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="Hx+BfaS/"; 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 y11si14681220pgp.495.2019.04.23.07.23.15; Tue, 23 Apr 2019 07:23:32 -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="Hx+BfaS/"; 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 S1727829AbfDWOUo (ORCPT + 99 others); Tue, 23 Apr 2019 10:20:44 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:60208 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbfDWOUo (ORCPT ); Tue, 23 Apr 2019 10:20:44 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44pQbD5pl0zB09ZV; Tue, 23 Apr 2019 16:20:40 +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=Hx+BfaS/; 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 VdpRqyoSUggc; Tue, 23 Apr 2019 16:20:40 +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 44pQbD4fHrz9v08G; Tue, 23 Apr 2019 16:20:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1556029240; bh=fNqEjI2ZoGaORHatXbuqSr7VvXw1i5InB9mRSTYkSZg=; h=From:Subject:To:Cc:Date:From; b=Hx+BfaS/078i1Izh+JCP9TwRlOmYEo7khlERzQM40DQ08mbDtFoXaXnx0f8pZJ7aQ 23kU/vdSR7I4cDiMWT/Ed48mYoJtUNQIG/9goAqqW204Z/eW3omWR3PHX+3tuZflde IZKbryBSuQlptGvdBkmuk0+RPCXQ4NVaY72lSegM= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 062648B8E1; Tue, 23 Apr 2019 16:20:42 +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 Gsr_NR8wpuik; Tue, 23 Apr 2019 16:20:41 +0200 (CEST) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C0F1B8B8C4; Tue, 23 Apr 2019 16:20:41 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 2176F666CF; Tue, 23 Apr 2019 14:20:40 +0000 (UTC) Message-Id: <2d3a59015307d368d6ac1a62fe7e47f5b39e2fe2.1556028978.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v2 1/4] 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: Tue, 23 Apr 2019 14:20:40 +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 --- 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 f9141eaec6ff..4e9beecf2502 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -41,6 +41,7 @@ dts= cacheit= binary= compression=.gz +uboot_comp=gzip pie= format= @@ -131,6 +132,7 @@ while [ "$#" -gt 0 ]; do ;; -z) compression=.gz + uboot_comp=gzip ;; -Z) shift @@ -138,15 +140,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 @@ -369,6 +377,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 @@ -412,7 +421,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