Skip to contentSkip to conversation

zstd: Include pzstd in the build

PATCH New Richard Purdie 1 participant 2 messages Jul 20, 2021 Zstd

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 zstd: Include pzstd in the build

We don't currently build the parallel version of zstd but we should. Add this to the build. It will then be used in buildtools-tarball.

---
 meta/recipes-extended/zstd/zstd_1.5.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-extended/zstd/zstd_1.5.0.bb +2 -0
index 806edb63c39..3786058731d 100644
@@ -29,10 +29,12 @@ ZSTD_LEGACY_SUPPORT ??= "4"
 
 do_compile () {
     oe_runmake ${PACKAGECONFIG_CONFARGS} ZSTD_LEGACY_SUPPORT=${ZSTD_LEGACY_SUPPORT}
+    oe_runmake ${PACKAGECONFIG_CONFARGS} ZSTD_LEGACY_SUPPORT=${ZSTD_LEGACY_SUPPORT} -C contrib/pzstd
 }
 
 do_install () {
     oe_runmake install 'DESTDIR=${D}'
+    oe_runmake install 'DESTDIR=${D}' PREFIX=${prefix} -C contrib/pzstd
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 buildtools-tarball: Add lz4 and ztsd (including pzstd)

Since we start to require these for builds, we need to include them in buildtools-tarball so that older systems can access them easily.

---
 meta/recipes-core/meta/buildtools-tarball.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/meta/buildtools-tarball.bb +2 -0
index 9da81d55235..b5dae176bfd 100644
@@ -29,6 +29,8 @@ TOOLCHAIN_HOST_TASK ?= "\
     nativesdk-rpcsvc-proto \
     nativesdk-patch \
     nativesdk-mtools \
+    nativesdk-zstd \
+    nativesdk-lz4 \
     "
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
Signature · 1 line
2.30.2