+++ /dev/null
-#!/bin/bash
-
-# NOTE 'run' sets NNFW_SCRIPT_PATH and invokes this script
-source "${NNFW_SCRIPT_PATH}/config/build.configuration"
-
-# Set parallel build
-# TODO: use argument instead of environment variable and merge with build command
-TARGET_ARCH=${TARGET_ARCH:-armv7l}
-BUILD_TYPE=${BUILD_TYPE:-Debug}
-NPROCS=${NPROCS:-1}
-PARALLEL_BUILD=${PARALLEL_BUILD:-1}
-HOST_OS=${HOST_OS:-linux}
-TARGET_OS=${TARGET_OS:-linux}
-
-# make TARGET and TYPE to lowercase
-TARGET_ARCH_LC="$(echo ${TARGET_ARCH} | tr A-Z a-z)"
-BUILD_TYPE_LC="$(echo ${BUILD_TYPE} | tr A-Z a-z)"
-# we need base name 'arm` for all arm arch
-TARGET_ARCH_BASE="${TARGET_ARCH_LC}"
-
-if [ "${TARGET_ARCH_BASE}" == *"arm64"* ]; then
- # For now Android is the only option for arm64
- TARGET_ARCH_BASE=arm64
- TARGET_OS=android
-fi
-
-if [ "${PARALLEL_BUILD}" == "1" ]; then
- # Get number of processors (linux only for now)
- if [ "${HOST_OS}" == "linux" ]; then
- NPROCS="$(grep -c ^processor /proc/cpuinfo)"
- fi
-fi
-
-ACL_FOLDER="externals/acl"
-ACL_COMMAND="scons -j${NPROCS} neon=1 opencl=1 examples=0 embed_kernels=1 os=${TARGET_OS}"
-if [ "${TARGET_ARCH_LC}" == "armv7l" ]; then
- ACL_COMMAND+=" arch=armv7a"
- ACL_BUILD_OUT="armv7a-${TARGET_OS}"
-elif [ "${TARGET_ARCH_LC}" == "aarch64" ]; then
- ACL_COMMAND+=" arch=arm64-v8a"
- ACL_BUILD_OUT="arm64-v8a-${TARGET_OS}"
-elif [ "${TARGET_ARCH_BASE}" == "arm64" ]; then
- ACL_COMMAND+=" arch=arm64-v8a"
- ACL_BUILD_OUT="arm64-v8a-${TARGET_OS}"
-fi
-
-if [ "${TARGET_OS}" == "android" ]; then
- ACL_COMMAND+=" Werror=0"
- ANDROID_GNUSTL_PATH="${ROOTFS_ARM64}/bin:${ROOTFS_ARM64}/aarch64-linux-android/bin:$$PATH"
-else
- ACL_COMMAND+=" Werror=1"
-fi
-
-if [ "${BUILD_TYPE_LC}" == "debug" ]; then
- ACL_COMMAND+=" debug=1 asserts=1"
-fi
-
-ACL_FOLDER_NAME="${ACL_BUILD_OUT}.${BUILD_TYPE_LC}"
-ACL_COMMAND+=" build_dir=${ACL_FOLDER_NAME}"
-ACL_FOLDER_BUILD="${ACL_FOLDER}/build/${ACL_FOLDER_NAME}"
-
-pushd ${ACL_FOLDER}
-if [ "${TARGET_OS}" == "android" ]; then
- CXX=clang++ CC=clang PATH=${ANDROID_GNUSTL_PATH} ${ACL_COMMAND}
-else
- ${ACL_COMMAND}
-fi
-popd
-
-WORK_FOLDER=${TARGET_ARCH_LC}-${TARGET_OS}.${BUILD_TYPE_LC}
-WORK_PATH=${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/${WORK_FOLDER}
-INSTALL_PATH=${NNFW_INSTALL_PATH:-${WORK_PATH}/out}
-
-mkdir -vp ${INSTALL_PATH}/lib
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute_core.so ${INSTALL_PATH}/lib/.
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute_graph.so ${INSTALL_PATH}/lib/.
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute.so ${INSTALL_PATH}/lib/.