2019-04-03 18:22:57 +02:00
|
|
|
DEPENDS="rootfs boot-rpi boot-rpi-dtbo boot-rpi-dtb linux"
|
2019-03-31 14:18:57 +02:00
|
|
|
SUBPKG="release"
|
2018-01-24 12:52:41 +01:00
|
|
|
|
2018-01-16 23:07:29 +01:00
|
|
|
build() {
|
2019-06-10 15:16:41 +02:00
|
|
|
pkg install -om -r "$PKGBUILDDIR/boot" \
|
2019-04-18 12:42:11 +02:00
|
|
|
boot-rpi boot-rpi-dtbo boot-rpi-dtb linux
|
2019-06-08 18:04:39 +02:00
|
|
|
|
|
|
|
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"
|
2018-01-16 23:07:29 +01:00
|
|
|
|
2018-01-17 00:56:06 +01:00
|
|
|
# copy files from this package
|
2018-02-16 23:22:04 +01:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"
|
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR"
|
2018-01-17 00:56:06 +01:00
|
|
|
|
|
|
|
# substitute file names in scripts
|
2018-02-16 23:22:04 +01:00
|
|
|
mkdir -p "$PKGBUILDDIR/boot/$OS_RELEASE"
|
|
|
|
mv "$PKGBUILDDIR/boot/rootfs.img" "$PKGBUILDDIR/boot/$OS_RELEASE"
|
|
|
|
mv "$PKGBUILDDIR/boot/vmlinuz" "$PKGBUILDDIR/boot/$OS_RELEASE"
|
2018-01-17 00:56:06 +01:00
|
|
|
|
2018-02-14 19:15:20 +01:00
|
|
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
|
|
|
local kernel_image="$OS_RELEASE/vmlinuz"
|
|
|
|
|
2019-04-03 15:49:02 +02:00
|
|
|
cat_file_override "rpi_config.txt" > "$PKGBUILDDIR/boot/config.txt"
|
|
|
|
cat_file_override "rpi_cmdline.txt" > "$PKGBUILDDIR/boot/cmdline.txt"
|
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt"
|
|
|
|
sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt"
|
2018-01-16 23:07:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-31 14:18:57 +02:00
|
|
|
tar czf "$BUILDROOT/release.tar.gz" *
|
|
|
|
touch "$PKGDEPLOYDIR/release.files" "$PKGDEPLOYDIR/release.desc"
|
2018-01-16 23:07:29 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
return
|
2019-02-08 00:02:42 +01:00
|
|
|
}
|