Always cd into BUILD_DIR even if custom function is provided
[hvlinux.git] / functions / ipkg
index b30a2e7..2fd39eb 100644 (file)
@@ -79,7 +79,6 @@ hvconfig()
 # Default build function
 hvbuild()
 {
-    cd ${BUILD_DIR}
     ${HVMAKE}
     ${HVMAKE} install
 }
@@ -210,6 +209,7 @@ ipkg_script()
         hvconfig_post
     fi
 
+    cd ${BUILD_DIR}
     hvbuild
 
     # Execute post-build function if applicable