scripts/build: dont create $PKG_BUILD for virtual packages

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-12-16 00:11:11 +01:00
parent 38b5e5c8a1
commit 5587ec51dd

View File

@ -50,11 +50,6 @@ STAMP=$STAMPS/$PACKAGE_NAME/build_$TARGET
$SCRIPTS/unpack $PACKAGE_NAME
# ensure $PKG_BUILD is there. (installer? PKG_URL="")
if [ ! -d $PKG_BUILD ] ; then
mkdir $PKG_BUILD
fi
if [ -f $PKG_DIR/package.mk ]; then
if [ -f $STAMP -a $PKG_DIR/package.mk -nt $STAMP ]; then
rm -f $STAMP
@ -268,6 +263,11 @@ if [ ! -f $STAMP ]; then
pre_build_$TARGET
fi
# ensure $PKG_BUILD is there. (installer? PKG_URL="")
if [ ! -d $PKG_BUILD ] ; then
mkdir -p $PKG_BUILD
fi
cd $PKG_BUILD
if [ "$TARGET" = "target" ]; then