1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 02:59:47 +01:00

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