From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 18 Mar 2024 15:06:37 +0100 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.96) (envelope-from ) id 1rmDdN-00COEo-0z for lore@lore.pengutronix.de; Mon, 18 Mar 2024 15:06:37 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rmDdM-0003od-QX; Mon, 18 Mar 2024 15:06:36 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rmDdK-0003oK-Hj; Mon, 18 Mar 2024 15:06:34 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmDdK-0075fy-5D; Mon, 18 Mar 2024 15:06:34 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rmDdJ-008Ne7-1l; Mon, 18 Mar 2024 15:06:34 +0100 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Mon, 18 Mar 2024 15:06:33 +0100 Message-Id: <20240318140633.1997386-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH] v8a: barebox: compress with XZ X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Olbrich , Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false This saves us 124K, which we dearly need, because otherwise barebox would overlap the environment partition. The environment partition is reserved in the genimage config, but it's used due to the description in the barebox device tree. We may want to change both, but for now, buy us some time by switching from LZO to XZ. Reported-by: Michael Olbrich Signed-off-by: Ahmad Fatoum --- configs/platform-v8a/barebox.config | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config index 26be35533173..699b4f324afa 100644 --- a/configs/platform-v8a/barebox.config +++ b/configs/platform-v8a/barebox.config @@ -163,9 +163,9 @@ CONFIG_USE_COMPRESSED_DTB=y CONFIG_PBL_RELOCATABLE=y CONFIG_IMAGE_COMPRESSION=y # CONFIG_IMAGE_COMPRESSION_LZ4 is not set -CONFIG_IMAGE_COMPRESSION_LZO=y +# CONFIG_IMAGE_COMPRESSION_LZO is not set # CONFIG_IMAGE_COMPRESSION_GZIP is not set -# CONFIG_IMAGE_COMPRESSION_XZKERN is not set +CONFIG_IMAGE_COMPRESSION_XZKERN=y # CONFIG_IMAGE_COMPRESSION_NONE is not set CONFIG_MMU=y CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff @@ -1063,7 +1063,14 @@ CONFIG_ZLIB=y # CONFIG_BZLIB is not set # CONFIG_LZ4_DECOMPRESS is not set # CONFIG_ZSTD_DECOMPRESS is not set -# CONFIG_XZ_DECOMPRESS is not set +CONFIG_XZ_DECOMPRESS=y +CONFIG_XZ_DEC_X86=y +CONFIG_XZ_DEC_POWERPC=y +CONFIG_XZ_DEC_IA64=y +CONFIG_XZ_DEC_ARM=y +CONFIG_XZ_DEC_ARMTHUMB=y +CONFIG_XZ_DEC_SPARC=y +CONFIG_XZ_DEC_ARM64=y # CONFIG_BASE64 is not set CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_PROCESS_ESCAPE_SEQUENCE=y -- 2.39.2