Remove magic squashfs path variable

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-01-16 21:10:20 +01:00
parent 4039cd1c81
commit 40fd03640c
5 changed files with 7 additions and 11 deletions

View File

@ -1,6 +1,7 @@
build_release() {
local RELEASE_DIR="$1"
local ROOTFS_SQFS="$2"
local ROOTFS_SQFS=$(find $PKGDEPLOYDIR/rootfs-${CFG}/ -name '*.img')
local fname=$(find $PKGDEPLOYDIR/linux/ -name 'vmlinuz*')
local linux_image=$(basename $fname)

View File

@ -1,6 +1,7 @@
build_release() {
local RELEASE_DIR="$1"
local ROOTFS_SQFS="$2"
local ROOTFS_SQFS=$(find $PKGDEPLOYDIR/rootfs-${CFG}/ -name '*.img')
local rootfs_image=$(basename $ROOTFS_SQFS)
local bootdir="$RELEASE_DIR/boot"

4
mk.sh
View File

@ -23,8 +23,6 @@ PKGLOGDIR="$BUILDROOT/$CFG/log"
PKGDOWNLOADDIR="$BUILDROOT/download"
PACKAGELIST="$BUILDROOT/$CFG/pkglist"
SQFS="$BUILDROOT/$CFG/rootfs.img"
mkdir -p "$PKGDOWNLOADDIR" "$PKGSRCDIR" "$PKGBUILDDIR" "$PKGLOGDIR"
mkdir -p "$PKGDEPLOYDIR" "$TCDIR/bin"
@ -109,7 +107,7 @@ mkdir -p "$RELEASEDIR"
unset -f build_release
source "$SCRIPTDIR/cfg/$CFG/release"
build_release "$RELEASEDIR" "$SQFS"
build_release "$RELEASEDIR"
if [ -e "${BUILDROOT}/${CFG}/release-${CFG}.tar.gz" ]; then
rm "${BUILDROOT}/${CFG}/release-${CFG}.tar.gz"

View File

@ -33,7 +33,5 @@ deploy() {
local BUILD="$2"
local DEPLOY="$3"
rm -f "$SQFS"
mksquashfs "$BUILD" "$SQFS" -all-root -no-progress -no-xattrs
mksquashfs "$BUILD" "$DEPLOY/rootfs.img" -all-root -no-progress -no-xattrs
}

View File

@ -34,7 +34,5 @@ deploy() {
local BUILD="$2"
local DEPLOY="$3"
rm -f "$SQFS"
mksquashfs "$BUILD" "$SQFS" -all-root -no-progress -no-xattrs
mksquashfs "$BUILD" "$DEPLOY/rootfs.img" -all-root -no-progress -no-xattrs
}