1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-17 11:06:13 +02:00

Versioning support for Raspberry Pi

- Use shipped device tree binaries instead of our own
 - Install kernel + rootfs to $OS_RELEASE subdirectory

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-02-14 19:15:20 +01:00
parent 9640f87899
commit 204603dce1
4 changed files with 11 additions and 7 deletions

View file

@ -16,7 +16,6 @@ deploy() {
rm $DEPLOY/kernel7.img
rm $DEPLOY/kernel.img
rm $DEPLOY/COPYING.linux
rm $DEPLOY/*.dtb
cp "$SCRIPTDIR/pkg/boot-rpi3/config.txt" "$DEPLOY/config.txt"
}

View file

@ -56,3 +56,5 @@
dtparam=audio=on
enable_uart=1
kernel=KERNELFILE

View file

@ -35,10 +35,7 @@ deploy() {
local BUILD="$2"
local DEPLOY="$3"
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
pushd $BUILD
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/kernel.img"
cp arch/arm/boot/dts/*.dtb "$DEPLOY/"
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/vmlinuz"
popd
}

View file

@ -20,9 +20,15 @@ build() {
cp "$SCRIPTDIR/$PKGDIR/$PKGNAME/genimage.sh" "$BUILD"
# substitute file names in scripts
local rootfs_image="rootfs.img"
mkdir -p "$BUILD/boot/$OS_RELEASE"
mv "$BUILD/boot/rootfs.img" "$BUILD/boot/$OS_RELEASE"
mv "$BUILD/boot/vmlinuz" "$BUILD/boot/$OS_RELEASE"
sed -i 's/ROOTFSFILE/'$rootfs_image'/g' "$BUILD/boot/cmdline.txt"
local rootfs_image="$OS_RELEASE/rootfs.img"
local kernel_image="$OS_RELEASE/vmlinuz"
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$BUILD/boot/cmdline.txt"
sed -i 's#KERNELFILE#'$kernel_image'#g' "$BUILD/boot/config.txt"
}
deploy() {