2018-07-15 16:19:44 +02:00
|
|
|
DEPENDS="rootfs boot-rpi3"
|
2018-01-24 12:52:41 +01:00
|
|
|
|
2018-01-16 23:07:29 +01:00
|
|
|
build() {
|
2019-03-01 19:53:20 +01:00
|
|
|
pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" $DEPENDS
|
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/cmdline.txt" "$PKGBUILDDIR/boot"
|
|
|
|
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"
|
|
|
|
|
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-06 16:12:08 +01:00
|
|
|
tar czf "$BUILDROOT/$PKGNAME.tar.gz" *
|
2019-03-01 19:53:20 +01:00
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
touch "$PKGDEPLOYDIR/$PKGNAME.files"
|
2019-03-09 14:22:55 +01:00
|
|
|
touch "$PKGDEPLOYDIR/$PKGNAME.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
|
|
|
}
|