scripts/install: add 'fastinstall' support, thanks to Wintemrute

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-19 21:26:14 +02:00
parent 4eda189dfd
commit 6cd8c6ad8a
2 changed files with 48 additions and 34 deletions

View File

@ -43,6 +43,7 @@ TARGET_ADDONS="$TARGET_IMG/$ADDONS/$ADDON_PATH"
ADDON_BUILD="$BUILD/$ADDONS/$1" ADDON_BUILD="$BUILD/$ADDONS/$1"
STAMPS_NOARCH=.stamps STAMPS_NOARCH=.stamps
STAMPS=$BUILD/.stamps STAMPS=$BUILD/.stamps
INSTALLSTAMPS=$BUILD/.install
DOCS=DOCS DOCS=DOCS
TOOLCHAIN=$BUILD/toolchain TOOLCHAIN=$BUILD/toolchain
SYSROOT_PREFIX=$ROOT/$TOOLCHAIN/$TARGET_NAME/sysroot SYSROOT_PREFIX=$ROOT/$TOOLCHAIN/$TARGET_NAME/sysroot

View File

@ -7,40 +7,53 @@ if [ -z "$1" ]; then
exit 1 exit 1
fi fi
if [ -f $PKG_DIR/arch ]; then mkdir -p $INSTALLSTAMPS/$1
grep -q "$TARGET_ARCH" "$PKG_DIR/arch" || exit 0 INSTALLSTAMP=$INSTALLSTAMPS/$1/install
grep -q "\-$TARGET_ARCH" "$PKG_DIR/arch" && exit 0
if [ $1 = "image" ]; then
rm -rf $INSTALLSTAMPS
mkdir -p $INSTALLSTAMPS/image
fi fi
if [ -f $PKG_DIR/platform ]; then if [ ! -f $INSTALLSTAMP ]; then
grep -q "$TARGET_PLATFORM" "$PKG_DIR/platform" || exit 0
grep -q "\-$TARGET_PLATFORM" "$PKG_DIR/platform" && exit 0 if [ -f $PKG_DIR/arch ]; then
fi grep -q "$TARGET_ARCH" "$PKG_DIR/arch" || exit 0
grep -q "\-$TARGET_ARCH" "$PKG_DIR/arch" && exit 0
if [ -d $PKG_DIR/init.d ]; then fi
mkdir -p $INSTALL/etc/init.d
cp $PKG_DIR/init.d/* $INSTALL/etc/init.d/ if [ -f $PKG_DIR/platform ]; then
fi grep -q "$TARGET_PLATFORM" "$PKG_DIR/platform" || exit 0
grep -q "\-$TARGET_PLATFORM" "$PKG_DIR/platform" && exit 0
if [ -d $PKG_DIR/profile.d ]; then fi
mkdir -p $INSTALL/etc/profile.d
cp $PKG_DIR/profile.d/*.conf $INSTALL/etc/profile.d/ if [ -d $PKG_DIR/init.d ]; then
fi mkdir -p $INSTALL/etc/init.d
cp $PKG_DIR/init.d/* $INSTALL/etc/init.d/
if [ -d $PKG_DIR/init.network ]; then fi
mkdir -p $INSTALL/etc/init.d/network
cp $PKG_DIR/init.network/* $INSTALL/etc/init.d/network/ if [ -d $PKG_DIR/profile.d ]; then
fi mkdir -p $INSTALL/etc/profile.d
cp $PKG_DIR/profile.d/*.conf $INSTALL/etc/profile.d/
$SCRIPTS/build $@ fi
printf "%${INDENT}c INSTALL $1\n" >&$SILENT_OUT
#dialog --infobox "%${INDENT}c INSTALL $1\n" 15 40 if [ -d $PKG_DIR/init.network ]; then
export INDENT=$((${INDENT:-1}+$INDENT_SIZE)) mkdir -p $INSTALL/etc/init.d/network
cp $PKG_DIR/init.network/* $INSTALL/etc/init.d/network/
for p in $PKG_DEPENDS; do fi
$SCRIPTS/install $p
done $SCRIPTS/build $@
printf "%${INDENT}c INSTALL $1\n" >&$SILENT_OUT
if [ -f $PKG_DIR/install ]; then #dialog --infobox "%${INDENT}c INSTALL $1\n" 15 40
$PKG_DIR/install $@ >&$VERBOSE_OUT export INDENT=$((${INDENT:-1}+$INDENT_SIZE))
for p in $PKG_DEPENDS; do
$SCRIPTS/install $p
done
if [ -f $PKG_DIR/install ]; then
$PKG_DIR/install $@ >&$VERBOSE_OUT
fi
touch $INSTALLSTAMP
fi fi