mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Merge pull request #3392 from vpeter4/project_build
allow packages in projects folder
This commit is contained in:
@@ -228,7 +228,16 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
# remove n previous created release image
|
||||
rm -rf $TARGET_IMG/$IMAGE_NAME.img.gz
|
||||
if [ -n "$BOOTLOADER" ]; then
|
||||
BOOTLOADER_DIR=`find $PACKAGES -type d -name $BOOTLOADER 2>/dev/null`
|
||||
if [ -d $ROOT/projects/$PROJECT/packages ]; then
|
||||
BOOTLOADER_DIR=`find $ROOT/projects/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`
|
||||
else
|
||||
BOOTLOADER_DIR=""
|
||||
fi
|
||||
|
||||
if [ -z "$BOOTLOADER_DIR" -o ! -d "$BOOTLOADER_DIR" ]; then
|
||||
BOOTLOADER_DIR=`find $PACKAGES -type d -name $BOOTLOADER 2>/dev/null`
|
||||
fi
|
||||
|
||||
if [ -d "$BOOTLOADER_DIR"/files ]; then
|
||||
cp -R $BOOTLOADER_DIR/files/* $RELEASE_DIR
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user