move patch to after potential creation of the hcc repository
@@ -106,9 +106,6 @@ REPO_BRANCH=$AOMP_HCC_REPO_BRANCH
REPO_DIR=$AOMP_REPOS/$AOMP_HCC_REPO_NAME
checkrepo
-patchloc=$thisdir/patches
-patchdir=$BUILD_DIR/$AOMP_HCC_REPO_NAME
-patchrepo
# Make sure we can update the install directory
if [ "$1" == "install" ] ; then
$SUDO mkdir -p $INSTALL_HCC
@@ -174,6 +171,10 @@ else
fi
fi
+patchloc=$thisdir/patches
+patchdir=$BUILD_DIR/$AOMP_HCC_REPO_NAME
+patchrepo
+
cd $BUILD_DIR/build/$AOMP_HCC_REPO_NAME
if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
