Skip to content

Commit

Permalink
Pull request #16: Add Wifi build
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from add_wifi_examples to silabs

Squashed commit of the following:

commit e7d24f831945a07b30697f5d4c57488b3efcbcc5
Author: jepenven-silabs <jean-francois.penven@silabs.com>
Date:   Wed Jul 13 13:09:35 2022 -0400

    Add Wifi build
  • Loading branch information
jepenven-silabs authored and jmartinez-silabs committed May 25, 2023
1 parent 3390333 commit 9702d09
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,63 @@ def buildSilabsCustomOpenThreadExamples()
}
}

def buildWiFiLighting()
{
actionWithRetry {
node(buildFarmLabel)
{
def workspaceTmpDir = createWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
buildOverlayDir)
def dirPath = workspaceTmpDir + createWorkspaceOverlay.overlayMatterPath
def saveDir = 'matter/'
dir(dirPath) {
withDockerContainer(image: "connectedhomeip/chip-build-efr32:0.5.64", args: "-u root")
{
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
sh './scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/light_app_wifi_wf200 BRD4161A "is_debug=false show_qr_code=false enable_openthread_cli=false" --wifi wf200'
sh './scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/light_app_wifi_rs9116 BRD4161A "is_debug=false show_qr_code=false enable_openthread_cli=false" --wifi rs911x'
}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'-name "*.s37" -o -name "*.map"')
}
}

}

def buildWiFiLock()
{
actionWithRetry {
node(buildFarmLabel)
{
def workspaceTmpDir = createWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
buildOverlayDir)
def dirPath = workspaceTmpDir + createWorkspaceOverlay.overlayMatterPath
def saveDir = 'matter/'
dir(dirPath) {
withDockerContainer(image: "connectedhomeip/chip-build-efr32:0.5.64", args: "-u root")
{
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
sh './scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/ out/lock_app_wifi_wf200 BRD4161A "is_debug=false show_qr_code=false enable_openthread_cli=false" --wifi wf200'
sh './scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/ out/lock_app_wifi_rs9116 BRD4161A "is_debug=false show_qr_code=false enable_openthread_cli=false" --wifi rs911x'
}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir,
'matter/',
'-name "*.s37" -o -name "*.map"')
}
}

}


def buildWiFiExamples()
{
actionWithRetry {
Expand Down Expand Up @@ -382,7 +439,8 @@ def pipeline()
parallelNodes['Build OpenThread Window'] = { this.buildOpenThreadWindow() }


parallelNodes['Build Wifi Examples'] = { this.buildWiFiExamples() }
parallelNodes['Build Wifi Lighting'] = { this.buildWiFiLighting() }
parallelNodes['Build Wifi Lock'] = { this.buildWiFiLock() }
// TODO Fix ME
// parallelNodes['Build Custom Examples'] = { this.buildSilabsCustomOpenThreadExamples() }

Expand Down

0 comments on commit 9702d09

Please sign in to comment.