From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 14 May 2025 08:08:00 +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.96) (envelope-from ) id 1uF5Hc-005PLN-2i for lore@lore.pengutronix.de; Wed, 14 May 2025 08:08:00 +0200 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 1uF5Hc-0005h6-8C; Wed, 14 May 2025 08:08:00 +0200 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 1uF5HE-0004i6-Rh; Wed, 14 May 2025 08:07:36 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uF5HE-002f9j-0j; Wed, 14 May 2025 08:07:36 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uF5HE-0025mq-20; Wed, 14 May 2025 08:07:36 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Wed, 14 May 2025 08:07:36 +0200 Message-Id: <20250514060736.498893-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250428055735.1705564-1-l.goehrs@pengutronix.de> References: <20250428055735.1705564-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] rules: host-erofs-utils: package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as b232d3bebd8107be22df88a0aee79e128aa8e39c. Michael [sent from post-receive hook] On Wed, 14 May 2025 08:07:36 +0200, Leonard Göhrs wrote: > Erofs is a read only filesystem, much like squashfs, that is optimized > for read performance (rather than e.g. maximum compression ratio). > > The erofs-utils host package allows building erofs images. > Since genimage does not have erofs support yet (there is a pull request > though [1]) this can for example be achieved via the tar input feature: > > $ mkfs.erofs -z zstd --ungzip --tar root.erofs root.tgz > > and a custom rule. > > [1]: https://github.com/pengutronix/genimage/pull/247 > > Signed-off-by: Leonard Göhrs > Message-Id: <20250428055735.1705564-1-l.goehrs@pengutronix.de> > [mol: pin down configure options] > Signed-off-by: Michael Olbrich > > diff --git a/patches/erofs-utils-1.8.5/autogen.sh b/patches/erofs-utils-1.8.5/autogen.sh > new file mode 120000 > index 000000000000..9f8a4cb7ddcb > --- /dev/null > +++ b/patches/erofs-utils-1.8.5/autogen.sh > @@ -0,0 +1 @@ > +../autogen.sh > \ No newline at end of file > diff --git a/rules/host-erofs-utils.in b/rules/host-erofs-utils.in > new file mode 100644 > index 000000000000..80dec1b80dc5 > --- /dev/null > +++ b/rules/host-erofs-utils.in > @@ -0,0 +1,19 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_EROFS_UTILS > + tristate > + default y if ALLYES > + select HOST_LIBUUID > + select HOST_ZLIB > + select HOST_LZ4 if HOST_EROFS_UTILS_LZ4_SUPPORT > + select HOST_ZSTD if HOST_EROFS_UTILS_ZSTD_SUPPORT > + > +if HOST_EROFS_UTILS > + > +config HOST_EROFS_UTILS_LZ4_SUPPORT > + bool > + > +config HOST_EROFS_UTILS_ZSTD_SUPPORT > + bool > + > +endif > diff --git a/rules/host-erofs-utils.make b/rules/host-erofs-utils.make > new file mode 100644 > index 000000000000..b4f8184f859d > --- /dev/null > +++ b/rules/host-erofs-utils.make > @@ -0,0 +1,55 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2025 by Leonard Göhrs > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_EROFS_UTILS) += host-erofs-utils > + > +# > +# Paths and names > +# > +HOST_EROFS_UTILS_VERSION := 1.8.5 > +HOST_EROFS_UTILS_MD5 := a4a4d803bc5120ffacc05a453a505ff7 > +HOST_EROFS_UTILS := erofs-utils-$(HOST_EROFS_UTILS_VERSION) > +HOST_EROFS_UTILS_SUFFIX := tar.gz > +HOST_EROFS_UTILS_URL := https://web.git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/$(HOST_EROFS_UTILS).$(HOST_EROFS_UTILS_SUFFIX) > +HOST_EROFS_UTILS_SOURCE := $(SRCDIR)/$(HOST_EROFS_UTILS).$(HOST_EROFS_UTILS_SUFFIX) > +HOST_EROFS_UTILS_DIR := $(HOST_BUILDDIR)/$(HOST_EROFS_UTILS) > +HOST_EROFS_UTILS_LICENSE := GPL-2.0-or-later > +HOST_EROFS_UTILS_LICENSE_FILES := \ > + file://COPYING;md5=73001d804ea1e3d84365f652242cca20 \ > + file://LICENSES/GPL-2.0;md5=94fa01670a2a8f2d3ab2de15004e0848 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# > +HOST_EROFS_UTILS_CONF_TOOL := autoconf > +HOST_EROFS_UTILS_CONF_OPT := \ > + $(HOST_AUTOCONF) \ > + --disable-multithreading \ > + --disable-debug \ > + --disable-werror \ > + --disable-fuzzing \ > + --$(call ptx/endis, PTXCONF_HOST_EROFS_UTILS_LZ4_SUPPORT)-lz4 \ > + --disable-lzma \ > + --disable-fuse \ > + --disable-static-fuse \ > + --without-zlib \ > + --without-libdeflate \ > + --$(call ptx/wwo, PTXCONF_HOST_EROFS_UTILS_ZSTD_SUPPORT)-libzstd \ > + --without-qpl \ > + --without-xxhash \ > + --with-uuid \ > + --without-selinux > + > +# vim: syntax=make