ipkdbg: Add zstd support
The ipk using zstd to archive, add zstd support.
Since v0.5.0[0], the opkg support zstd.
[0]: https://git.yoctoproject.org/opkg/commit/?id=5dead41
~ git tag --contains=5dead41
```
v0.5.0
v0.6.0
v0.6.1
v0.6.2
v0.6.3
```
Change-Id: I92f19b703bb5e19bfb501b30ee4f2867f0fe781e
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
diff --git a/ipkdbg/build-opkg b/ipkdbg/build-opkg
index d24441e..f252d68 100755
--- a/ipkdbg/build-opkg
+++ b/ipkdbg/build-opkg
@@ -5,7 +5,7 @@
set -x
# : ${OPKG_LIBS:="-llzma -lldap -llber -lz -pthread"}
-: ${OPKG_LIBS:="-lz -pthread"}
+: ${OPKG_LIBS:="-lz -pthread -lzstd"}
generate_configure_id() {
echo "$@" | sha256sum | awk '{ printf "build-opkg-%s", $1 }'
@@ -25,12 +25,12 @@
--without-bz2lib \
--without-libb2 \
--without-lz4 \
---without-zstd \
--without-lzo2 \
--without-cng \
--without-nettle \
--without-xml2 \
--without-expat \
+--with-zstd \
--disable-acl \
--disable-xattr \
--enable-posix-regex-lib=libc \
@@ -55,14 +55,15 @@
cd ..
# opkg
-[ -f opkg-0.4.5.tar.gz ] || wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.4.5.tar.gz
-[ -d opkg-0.4.5 ] || tar -xvf opkg-0.4.5.tar.gz
-cd opkg-0.4.5
+[ -f opkg-0.6.3.tar.gz ] || wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.6.3.tar.gz
+[ -d opkg-0.6.3 ] || tar -xvf opkg-0.6.3.tar.gz
+cd opkg-0.6.3
OPKG_OPTS="\
--with-static-libopkg \
--without-libsolv \
--enable-curl \
--enable-openssl \
+--enable-zstd \
--disable-gpg \
--disable-dependency-tracking"
OPKG_ID=$(generate_configure_id "$OPKG_OPTS" "$OPKG_LIBS")