import "build.configuration"
-if [[ ! -d "${BUILD_ALIAS}" ]]; then
- echo "'${BUILD_ALIAS}' does not exist. Please run 'configure' first"
+BUILD_PATH="${NNFW_BUILD_DIR:-${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/obj}"
+
+if [[ ! -d "${BUILD_PATH}" ]]; then
+ echo "[ERROR] '${BUILD_PATH}' does not exist. Please run 'configure' first"
exit 255
fi
fi
fi
-cd ${BUILD_ALIAS}
+cd ${BUILD_PATH}
make -j ${NPROCS} "$@"
import "build.configuration"
-BUILD_PATH="${NNFW_BUILD_DIR:-${BUILD_ALIAS}}"
-INSTALL_PATH="${NNFW_INSTALL_PREFIX:-${INSTALL_ALIAS}}"
+BUILD_PATH="${NNFW_BUILD_DIR:-${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/obj}"
+INSTALL_PATH="${NNFW_INSTALL_PREFIX:-${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/out}"
# Create "BUILD_PATH"
mkdir -p "${BUILD_PATH}"
-# Create "INSTALL_PATH"
-mkdir -p "${INSTALL_PATH}"
+if [ ! -d "${INSTALL_PATH}" ]; then
+ echo "[WARNING] Cannot find install directory '${INSTALL_PATH}'"
+ echo " Try to make install directory"
+ mkdir -p "${INSTALL_PATH}"
+ if [ ! -d "${INSTALL_PATH}" ]; then
+ echo "[ERROR] Fail to make install directory '${INSTALL_PATH}'"
+ echo " Please make '${INSTALL_PATH}' directory first"
+ exit 255
+ fi
+fi
cd "${BUILD_PATH}"
cmake "${NNFW_PROJECT_PATH}"/infra/nnfw -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}" "$@"
import "build.configuration"
-if [[ ! -d "${BUILD_ALIAS}" ]]; then
- echo "'${BUILD_ALIAS}' does not exist. Please run 'configure' first"
- exit 255
-fi
+BUILD_PATH="${NNFW_BUILD_DIR:-${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/obj}"
-if [[ ! -d "${INSTALL_ALIAS}" ]]; then
- echo "'${INSTALL_ALIAS}' does not exist. Please run 'configure' first"
+if [[ ! -d "${BUILD_PATH}" ]]; then
+ echo "'${BUILD_PATH}' does not exist. Please run 'configure' first"
exit 255
fi
-cd ${BUILD_ALIAS}
+cd ${BUILD_PATH}
make install
WORKSPACE_RPATH=${NNFW_WORKSPACE:-Product}
-
-# Soft link path to build and install directory
-BUILD_ALIAS=${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/obj
-INSTALL_ALIAS=${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/out