scripts/image: add support for multiple bootloaders and run 'release' script inside a bootloader package to install bootloader related things to release builds

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-05 10:27:45 +02:00
parent e7afecfdcc
commit 7663f74b33

View File

@ -214,16 +214,18 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
# create release dir
mkdir -p $RELEASE_DIR
if [ "$BOOTLOADER" = "syslinux" ]; then
cp -R $CONFIG/release/3rdparty $RELEASE_DIR
cp -R $CONFIG/release/sample.conf $RELEASE_DIR
cp -R $CONFIG/release/Autorun.inf $RELEASE_DIR
cp -R $CONFIG/release/create_installstick* $RELEASE_DIR
if [ -n "$BOOTLOADER" ]; then
BOOTLOADER_DIR=`find $PACKAGES -type d -name $BOOTLOADER 2>/dev/null`
if [ -d "$BOOTLOADER_DIR"/files ]; then
cp -R $BOOTLOADER_DIR/files/* $RELEASE_DIR
fi
if [ -f "$BOOTLOADER_DIR"/release ]; then
. $BOOTLOADER_DIR/release
fi
fi
cp $ROOT/README* $RELEASE_DIR
cp $ROOT/CHANGELOG* $RELEASE_DIR
cp -R $CONFIG/release/openelec.ico $RELEASE_DIR
cp -R $CONFIG/release/INSTALL $RELEASE_DIR
echo "$TARGET_VERSION" > $RELEASE_DIR/RELEASE
mkdir -p $RELEASE_DIR/licenses