]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - build_linalg.sh
Removed dependency on libatlas-base-dev.
[dense-linear-algebra-libraries/linalg.git] / build_linalg.sh
index 552e3ec6680e467de6df1e80adb4ba430447efcf..eb845d62f5e597062fe381ae6bb53dbad2017895 100755 (executable)
@@ -2,12 +2,11 @@
 set -e
 
 ################################################################################
-#BLIS-BLAS specific: 
-# C6X_GEN:c6000_7.6.0
-# TI_OCL_INSTALL_DIR=/opt/ti/mcsdk-hpc_03_00_01_04/ti-opencl_0.14.0/
 # need to set up the following before running this script:
 #    export TARGET_ROOTDIR=/evmk2h_nfs
 #    export TI_INSTALL_DIR=~/ti
+#    export TI_OCL_INSTALL_DIR
+#    export C6X_C_DIR
 ################################################################################
 
 if [ $# -ne 3 ]; then
@@ -31,17 +30,11 @@ cd -
 [ ! -z $LINALG_BASE_DIR ] || { echo "Error: $LINALG_BASE_DIR not set!"; exit 1; }
 [ ! -z $OUTPUT_DIR ] || { echo "Error: $OUTPUT_DIR not set!"; exit 1; }
 
-# two environment variables below need to be set by setup_hpc_env.sh
-#export TI_OCL_INSTALL_DIR=/opt/ti/mcsdk-hpc_03_00_01_04/ti-opencl_0.14.0/
-#export C6X_C_DIR=/home/uda0869574local/ti/c6000_7.6.0/include
-
 cd $MCSDK_HPC_DIR/scripts
 set +e
 . setup_hpc_env.sh -s $TI_INSTALL_DIR:$TI_INSTALL_DIR/linaro -t $TARGET_ROOTDIR
 set -e
 
-export TI_OCL_INSTALL_DIR=/opt/ti/mcsdk-hpc_03_00_01_04/ti-opencl_0.14.0/
-
 echo "env" 
 env
 
@@ -49,8 +42,11 @@ env
 cd $LINALG_BASE_DIR
 make prebuild
 echo "Generating Debian package ..."
-LINALG_VER=`cat build/version.txt`
-tar -czf linalg_$LINALG_VER.tar.gz --exclude='*.git' --exclude="*.obj" --exclude="*.o" --files-from=build/tar_files_list.txt
+LINALG_VER=`git describe`
+tar -czf linalg_$LINALG_VER.tar.gz --exclude='*.git' --exclude="*.obj" --exclude="*.o" --exclude="*.obj" --exclude="*.a" --exclude="*.ae66" --files-from=build/tar_files_list.txt
+mkdir linalg_$LINALG_VER
+tar -xf linalg_$LINALG_VER.tar.gz -C linalg_$LINALG_VER
+tar -czf linalg_$LINALG_VER.tar.gz linalg_$LINALG_VER
 
 cp -v linalg_$LINALG_VER.tar.gz $OUTPUT_DIR