PDK-6626: Unable to rebuild board LLD since top level makefile is not packaged
[processor-sdk/pdk.git] / packages / pdksetupenv.sh
index 2912f2d3450542b4f97c0711db54bad23f4a335f..a3b831f13fc6fb2c025f6bb9c17bf6391a97b207 100755 (executable)
@@ -51,6 +51,13 @@ 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]="am65xx"
+fi
+if [ ${ADDR[1]} == "sitara" ]; then
+    ADDR[1]="am64x"
+fi
 
 if [ -z $PDK_SOC ]; then
    export PDK_SOC=${ADDR[1]}