]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/processor-pdk-packages.git/commitdiff
PDK-2666: enable c++ build REL.PDK.J7.01.00.00.01 REL.PDK.J7.01.00.00.02
authorPrasad Konnur <prasadkonnur@ti.com>
Tue, 24 Sep 2019 08:40:30 +0000 (14:10 +0530)
committerPrasad Konnur <prasadkonnur@ti.com>
Wed, 25 Sep 2019 10:52:25 +0000 (16:22 +0530)
Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
scripts/jenkin/k3/pdk_daily_build_k3.sh

index f23fe36eb3c7855a0f6ed7950a13f0ed026c8776..33b78e1e99d629d17f12819f0c4739a795fdc6ac 100755 (executable)
@@ -196,6 +196,7 @@ done
 #Default value if not provided
 : ${pdk_manifest_xml_with_path:="pdk_j721e.xml"}
 : ${quick_check:="false"}
+: ${cplusplus_build:="true"}
 : ${kw_build:="false"}
 : ${kw_build_label:="PDK_KW_BUILD"}
 : ${kw_release_build:="false"}
@@ -267,6 +268,10 @@ else
   fi
 fi
 
+if [ "$quick_check" == "true" ]; then
+  cplusplus_build = "false"
+fi
+
 jobs_option="-j"
 
 kw_label=$kw_build_label"_"$date
@@ -386,6 +391,39 @@ echo "Packaging completed!!"
 print_time_diff $package_start_time "Package Time"
 
 ###################### Build after packaging ######################
+###################### C++ build ######################
+core_list="mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c7x_1 c66xdsp_1 c66xdsp_2"
+if [ "$cplusplus_build" == "true" ]; then
+  cplusplus_build_start_time=`date +%s`
+  cd $pdk_install_path/packages/ti/build
+  #C++ build not yet supported by below LLD, so renaming those directories to skip
+  mv $pdk_install_path/packages/ti/drv/cpsw $pdk_install_path/packages/ti/drv/cpsw_skip
+
+  for profile in $profile_list
+  do
+    for board in $board_list
+    do
+      for core in $core_list
+      do
+        echo "Building Board:$board Profile:$profile Core:$core (c++ build) ..."
+        $gmake_cmd -s $jobs_option pdk_libs BOARD=$board BUILD_PROFILE=$profile CORE=$core SDK_INSTALL_PATH=$sdk_install_path PDK_INSTALL_PATH=$pdk_install_path/packages CPLUSPLUS_BUILD=yes 1>>$log_dir/c++_build.log
+        echo "Building Board:$board Profile:$profile Core:$core (c++ build) completed!!"
+      done
+    done
+  done
+
+  mv $pdk_install_path/packages/ti/drv/cpsw_skip $pdk_install_path/packages/ti/drv/cpsw
+
+  print_time_diff $cplusplus_build_start_time "C++ Build Time"
+  echo ""
+  # clean all the binaries
+  for board in $board_list
+  do
+    $gmake_cmd -s allclean BOARD=$board SDK_INSTALL_PATH=$sdk_install_path PDK_INSTALL_PATH=$pdk_install_path/packages
+  done
+fi
+
+###################### PDK build ######################
 build_start_time=`date +%s`
 cd $pdk_install_path/packages/ti/build
 kw_out_list=""