1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-23 03:29:46 +01:00
build/cfg/rpi3/release
David Oberhollenzer 40fd03640c Remove magic squashfs path variable
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-30 14:02:09 +01:00

18 lines
560 B
Text
Executable file

build_release() {
local RELEASE_DIR="$1"
local ROOTFS_SQFS=$(find $PKGDEPLOYDIR/rootfs-${CFG}/ -name '*.img')
local rootfs_image=$(basename $ROOTFS_SQFS)
local bootdir="$RELEASE_DIR/boot"
mkdir -p "$bootdir"
cp -r ${PKGDEPLOYDIR}/linux-rpi3/* "$bootdir"
cp -r ${PKGDEPLOYDIR}/boot-rpi3/* "$bootdir"
cp "$SCRIPTDIR/cfg/$CFG/cmdline.txt" "$bootdir"
cp "$ROOTFS_SQFS" "$bootdir"
sed -i 's/ROOTFSFILE/'$rootfs_image'/g' "$bootdir/cmdline.txt"
cp "$SCRIPTDIR/cfg/$CFG/install.sh" "$RELEASE_DIR"
cp "$SCRIPTDIR/cfg/$CFG/genimage.sh" "$RELEASE_DIR"
}