Skip to content

Commit

Permalink
Pull request project-chip#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 <[email protected]>
Date:   Wed Jul 13 13:09:35 2022 -0400

    Add Wifi build
  • Loading branch information
jepenven-silabs authored and jmartinez-silabs committed Aug 30, 2022
1 parent c3188b4 commit 2e994ea
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 2e994ea

Please sign in to comment.