From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 07 Sep 2023 17:22:30 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qeGpz-007Dxc-VB for lore@lore.pengutronix.de; Thu, 07 Sep 2023 17:22:30 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qeGpx-0000sP-Oa for lore@pengutronix.de; Thu, 07 Sep 2023 17:22:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gOIwpH77p8TeXCOa4tUooeuQrToGrrPxWXhGC+xmQdY=; b=FouuUuu2sdOeVL9vuMptgf2MAP YQIWmV1p9kvwfxdc5dzbC5sAZ+CSmctsiUaG/jhAwTumHj3kkkkFXgBU2V1yFVKnJdxCu1oaL5ZHl XeP14hEziK90bnBc4kxfKtn4ybwuVin4qhjmd+f+5lOMukEc2UOtTiXgKlkVJe4zFyEYOvYVLNovL zwI2pDx7/OGanWYfax2BeCFW2FhHlLNdB+lC587b8A9v4trUsXbXK6XTDhCmympDGxNDoCqJrfTki PczBh2VGQHfAnaOtZCd6vUZ3nC/PIZjECwYHl7aedRyc9hVTDYuyHfcqiGehoZiTSthMyb07XHMDe QxCwFZ1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeGoo-00CGJr-18; Thu, 07 Sep 2023 15:21:18 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeGol-00CGGw-2V for barebox@lists.infradead.org; Thu, 07 Sep 2023 15:21:17 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5B3A0C000D; Thu, 7 Sep 2023 15:21:11 +0000 (UTC) From: Jules Maselbas To: barebox@lists.infradead.org Cc: Jules Maselbas , Ahmad Fatoum Date: Thu, 7 Sep 2023 17:20:47 +0200 Message-ID: <20230907152047.102747-3-jmaselbas@zdiv.net> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230907152047.102747-1-jmaselbas@zdiv.net> References: <20230907152047.102747-1-jmaselbas@zdiv.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: jmaselbas@zdiv.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_082115_957641_96EEB9F6 X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 3/3] kbuild: remove duplicated xz compressions target X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) Both cmd_xzkern and cmd_xzmisc where already defined in the same file Signed-off-by: Jules Maselbas Reviewed-by: Ahmad Fatoum --- v2: no changes --- scripts/Makefile.lib | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f04c09f9e2..6baa618f15 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -470,34 +470,6 @@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ %.lzo: % $(call if_changed,lzo) -# XZ -# --------------------------------------------------------------------------- -# Use xzkern to compress the kernel image and xzmisc to compress other things. -# -# xzkern uses a big LZMA2 dictionary since it doesn't increase memory usage -# of the kernel decompressor. A BCJ filter is used if it is available for -# the target architecture. xzkern also appends uncompressed size of the data -# using size_append. The .xz format has the size information available at -# the end of the file too, but it's in more complex format and it's good to -# avoid changing the part of the boot code that reads the uncompressed size. -# Note that the bytes added by size_append will make the xz tool think that -# the file is corrupt. This is expected. -# -# xzmisc doesn't use size_append, so it can be used to create normal .xz -# files. xzmisc uses smaller LZMA2 dictionary than xzkern, because a very -# big dictionary would increase the memory usage too much in the multi-call -# decompression mode. A BCJ filter isn't used either. -quiet_cmd_xzkern = XZKERN $@ -cmd_xzkern = (cat $(filter-out FORCE,$^) | \ - sh $(srctree)/scripts/xz_wrap.sh && \ - $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) - -quiet_cmd_xzmisc = XZMISC $@ -cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ - xz --check=crc32 --lzma2=dict=1MiB) > $@ || \ - (rm -f $@ ; false) - # lz4 # --------------------------------------------------------------------------- -- 2.42.0