mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +01: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:
parent
9640f87899
commit
204603dce1
4 changed files with 11 additions and 7 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -56,3 +56,5 @@
|
|||
dtparam=audio=on
|
||||
|
||||
enable_uart=1
|
||||
|
||||
kernel=KERNELFILE
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue