Skip to contentSkip to conversation

erofs-utils: Make reproducible for different BUILD_ARCH

PATCH New Richard Purdie 1 participant 1 message Oct 19

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 erofs-utils: Make reproducible for different BUILD_ARCH

configure was querying the host's page size. Avoid this and set a value based on the target insteadl. aarch64 is the only one we commonly build which isn't 4k as far as I know.

---
 meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb +5 -0
index 45339656b5b..9c0db7c2c05 100644
@@ -17,6 +17,11 @@ PACKAGECONFIG ??= "lz4 zlib"
 PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4"
 PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
 
+# Would otherwise query the system the build is running on
+BLOCKSIZE = "4096"
+BLOCKSIZE:aarch64 = "16384"
+CACHED_CONFIGUREVARS:append:class-target = " MAX_BLOCK_SIZE=${BLOCKSIZE}"
+
 EXTRA_OECONF = "${PACKAGECONFIG_CONFARGS} --disable-fuse"
 
 CFLAGS:append:powerpc64le = " -D__SANE_USERSPACE_TYPES__"