Replace pkg2sqfs with the squashfs-ng tools

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-06-08 18:04:39 +02:00
parent cfa4f6a7cb
commit 42df0f592a
6 changed files with 48 additions and 4 deletions

2
mk.sh
View File

@ -65,7 +65,7 @@ CMAKETCFILE="$TCDIR/toolchain.cmake"
############################### build packages ###############################
echo "--- boot strap phase ---"
for pkg in tc-pkgtool; do
for pkg in tc-pkgtool tc-squashfs; do
include_pkg "$pkg"
build_package
done

View File

@ -3,7 +3,12 @@ SUBPKG="release"
build() {
pkg install -om -r "$PKGBUILDDIR/$OS_RELEASE" -R "$REPODIR" linux
pkg2sqfs -c xz "$REPODIR/rootfs.pkg" "$OS_RELEASE/rootfs.img"
pkg dump -l pkg -r "$TCDIR/$TARGET" "$REPODIR/rootfs.pkg" \
> "$PKGBUILDDIR/files.txt"
gensquashfs -F "$PKGBUILDDIR/files.txt" "$OS_RELEASE/rootfs.img"
rm "$PKGBUILDDIR/files.txt"
# copy helper scripts
local linux_image="$OS_RELEASE/vmlinuz"

View File

@ -3,7 +3,12 @@ SUBPKG="release"
build() {
pkg install -om -r "$PKGBUILDDIR/$OS_RELEASE" -R "$REPODIR" linux
pkg2sqfs -c xz "$REPODIR/rootfs.pkg" "$OS_RELEASE/rootfs.img"
pkg dump -l pkg -r "$TCDIR/$TARGET" "$REPODIR/rootfs.pkg" \
> "$PKGBUILDDIR/files.txt"
gensquashfs -F "$PKGBUILDDIR/files.txt" "$OS_RELEASE/rootfs.img"
rm "$PKGBUILDDIR/files.txt"
# copy helper scripts
local linux_image="vmlinuz"

View File

@ -4,7 +4,12 @@ SUBPKG="release"
build() {
pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" \
boot-rpi boot-rpi-dtbo boot-rpi-dtb linux
pkg2sqfs -c xz "$REPODIR/rootfs.pkg" "boot/rootfs.img"
pkg dump -l pkg -r "$TCDIR/$TARGET" "$REPODIR/rootfs.pkg" \
> "$PKGBUILDDIR/files.txt"
gensquashfs -F "$PKGBUILDDIR/files.txt" "boot/rootfs.img"
rm "$PKGBUILDDIR/files.txt"
# copy files from this package
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"

28
pkg/tc-squashfs/build Executable file
View File

@ -0,0 +1,28 @@
VERSION="0.1"
SRCDIR="squashfs-tools-ng-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://infraroot.at/pub/squashfs"
SHA256SUM="d09b4632a7e2690810e5312a28906da9b8804b1901f20066aaeb5053020c8e40"
DEPENDS=""
prepare() {
return
}
build() {
$1/configure --prefix="$TCDIR" --disable-static \
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
make -j $NUMJOBS
}
deploy() {
make install
touch "$PKGDEPLOYDIR/$PKGNAME.files"
touch "$PKGDEPLOYDIR/$PKGNAME.desc"
}
check_update() {
return
}

View File

@ -1,4 +1,5 @@
DEPENDS="tc-binutils crt-dev libstdc++-dev tc-file tc-pkgtool basefiles"
DEPENDS="$DEPENDS tc-squashfs"
build() {
return