index 2912f2d3450542b4f97c0711db54bad23f4a335f..e9a23a2eb92480d5e117cdb9694afb1be347bb38 100755 (executable)
--- a/packages/pdksetupenv.sh
+++ b/packages/pdksetupenv.sh
# ******************************************************************************
# * 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
# ********************** 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
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]}
if [ -z "${ADDR[2]}" ]; then
export PDK_VERSION=
-else
+else
export PDK_VERSION=${ADDR[2]}_${ADDR[3]}_${ADDR[4]}
fi
cd -
# *******************************************************************************
-# Rules.make location.
+# Rules.make location.
export RULES_MAKE="${PDK_INSTALL_PATH}/ti/build/Rules.make"