]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blobdiff - packages/pdksetupenv.sh
fixed package build issue
[processor-sdk/pdk.git] / packages / pdksetupenv.sh
index 2912f2d3450542b4f97c0711db54bad23f4a335f..e9a23a2eb92480d5e117cdb9694afb1be347bb38 100755 (executable)
@@ -4,8 +4,8 @@
 # ******************************************************************************
 # * FILE NAME: pdksetupenv.sh
 # *
-# * DESCRIPTION: 
-# *  Configures and sets up the Build Environment for PDK. 
+# * DESCRIPTION:
+# *  Configures and sets up the Build Environment for PDK.
 # *
 # *  The batch file expects an optional argument:PDK_INSTALL_PATH: Location
 # *  of the PDK package.  If the argument is not specified the batch file
@@ -36,7 +36,7 @@ fi
 # ********************** GET PARAMETERS PASSED THROUGH ARGUMENT   ***************
 # *******************************************************************************
 # Parameter Validation: Check if the argument was passed to the batch file and
-# if so we use that else we default to the working directory where the batch 
+# if so we use that else we default to the working directory where the batch
 # file was invoked from
 
 tempVar=$1
@@ -51,6 +51,10 @@ cd ..
 CURDIR_LAST=${PWD##*/}
 IFS='_' read -ra ADDR <<< "$CURDIR_LAST"
 
+# When pdk folder represents a device family, set a default SOC for that family
+if [ ${ADDR[1]} == "jacinto" ]; then
+    ADDR[1]="j721e"
+fi
 
 if [ -z $PDK_SOC ]; then
    export PDK_SOC=${ADDR[1]}
@@ -58,7 +62,7 @@ fi
 
 if [ -z "${ADDR[2]}" ]; then
     export PDK_VERSION=
-else    
+else
     export PDK_VERSION=${ADDR[2]}_${ADDR[3]}_${ADDR[4]}
 fi
 cd -
@@ -75,7 +79,7 @@ fi
 # *******************************************************************************
 
 
-# Rules.make location. 
+# Rules.make location.
 export RULES_MAKE="${PDK_INSTALL_PATH}/ti/build/Rules.make"