From 5587ec51ddd87687bcfeebacd7a3d09255d0ca7b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 16 Dec 2013 00:11:11 +0100 Subject: [PATCH] scripts/build: dont create $PKG_BUILD for virtual packages Signed-off-by: Stephan Raue --- scripts/build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build b/scripts/build index b209505816..4f8da469a7 100755 --- a/scripts/build +++ b/scripts/build @@ -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