mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
Replace pkg2sqfs with the squashfs-ng tools
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
cfa4f6a7cb
commit
42df0f592a
6 changed files with 48 additions and 4 deletions
2
mk.sh
2
mk.sh
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
28
pkg/tc-squashfs/build
Executable 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
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
DEPENDS="tc-binutils crt-dev libstdc++-dev tc-file tc-pkgtool basefiles"
|
||||
DEPENDS="$DEPENDS tc-squashfs"
|
||||
|
||||
build() {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue