Skip to content

Commit

Permalink
Pull request project-chip#1166: MATTER-2443 modified OTA binaries out…
Browse files Browse the repository at this point in the history
…put path to be consistent with silabs_slc branch

Merge in WMN_TOOLS/matter from fix_ota_output_structure_smg to silabs

Squashed commit of the following:

commit 87ed9e9864e1e0387216f4ee81854881adc275c7
Author: hussein elsherbini <[email protected]>
Date:   Thu Sep 21 12:14:17 2023 -0400

    fixed name of var

commit 86e2db960337dbbe20d7b225ac60b60c7271e862
Author: hussein elsherbini <[email protected]>
Date:   Thu Sep 21 10:42:02 2023 -0400

    modified input to find command

commit e13576242f464dc028d3557c1148cd40f60f9237
Author: hussein elsherbini <[email protected]>
Date:   Wed Sep 20 16:31:57 2023 -0400

    MATTER-2443 modified OTA binaries output path to be consistent with silabs_slc branch
  • Loading branch information
HusseinElsherbini authored and jmartinez-silabs committed Jan 9, 2024
1 parent 1721ac5 commit af0e351
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def buildOpenThreadExample(app, ota_automation=false, ecosystem_automation=false
if(ota_automation){
// Move binaries to standardized output
sh """ ./scripts/examples/gn_silabs_example.sh ./examples/${app}/silabs ./out/OTA/ota_automation_out/${app}/OpenThread/ ${board} ${config_args} chip_build_libshell=true
mkdir -p ${saved_workspace}/out/OTA/ota_automation_out/${app}/OpenThread/${board}
cp ./out/OTA/ota_automation_out/${app}/OpenThread/${board}/*.s37 ${saved_workspace}/out/OTA/ota_automation_out/${app}/OpenThread/${board}/"""
mkdir -p ${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/OpenThread
cp ./out/OTA/ota_automation_out/${app}/OpenThread/${board}/*.s37 ${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/OpenThread/"""
}
else if(ecosystem_automation){
// Move binaries to standardized output
Expand Down Expand Up @@ -468,8 +468,8 @@ def moveWifiBinaries(app, board, radioName, ota_automation, sleepyBoard)
if (ota_automation){

sh """
ls; pwd; mkdir -p ${saved_workspace}/out/OTA/ota_automation_out/WiFi/${app}_wifi_${radioName}/${board}
cp out/OTA/ota_automation_out/WiFi/${app}_wifi_${radioName}/${board}/*.s37 ${saved_workspace}/out/OTA/ota_automation_out/WiFi/${app}_wifi_${radioName}/${board}/${platformAndRadio}-${appNameOnly}-example.s37"""
ls; pwd; mkdir -p ${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/WiFi
cp out/OTA/ota_automation_out/WiFi/${app}_wifi_${radioName}/${board}/*.s37 ${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/WiFi/${platformAndRadio}-${appNameOnly}-example.s37"""
}
else{
fileTypesToMove.each { fileType ->
Expand Down Expand Up @@ -1298,11 +1298,11 @@ def generateGblFileAndOTAfiles()
pwd
if [ "${tech}" = "OpenThread" ] ; then
bin_path="${dirPath}/${saved_workspace}/out/OTA/ota_automation_out/${app}/OpenThread/${board}"
bin_path="${dirPath}/${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/OpenThread/"
file="\$(find \$bin_path/ -name \\*.s37 | grep -o '[^/]*\$')"
else
bin_path="${dirPath}/${saved_workspace}/out/OTA/ota_automation_out/WiFi/${app}_wifi_${radioName}/${board}"
file="\$(find \$bin_path/ -name \\*.s37 | grep -o '[^/]*\$')"
bin_path="${dirPath}/${saved_workspace}/out/OTA/ota_automation_out/${app}/${board}/WiFi/"
file="\$(find \$bin_path/ -name efr32-${radioName}-lighting-example.s37 | grep -o '[^/]*\$')"
fi
gbl_file="\$(basename \$file .s37).gbl"
Expand Down

0 comments on commit af0e351

Please sign in to comment.