mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
e7afecfdcc
commit
7663f74b33
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user