Merge pull request #3392 from vpeter4/project_build

allow packages in projects folder
This commit is contained in:
Stephan Raue
2014-09-27 21:17:21 +02:00
3 changed files with 60 additions and 6 deletions

View File

@@ -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