X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fpdk.git;a=blobdiff_plain;f=packages%2Fpdksetupenv.sh;h=e9a23a2eb92480d5e117cdb9694afb1be347bb38;hp=2912f2d3450542b4f97c0711db54bad23f4a335f;hb=7ba4377f2c5badcab53dfcf442aed4ac9b0f24d5;hpb=27475274ac07ce36f2e14beebdbeb346632c8bde diff --git a/packages/pdksetupenv.sh b/packages/pdksetupenv.sh index 2912f2d34..e9a23a2eb 100755 --- a/packages/pdksetupenv.sh +++ b/packages/pdksetupenv.sh @@ -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"