Skip to content

Commit

Permalink
Pull request #2: Feature/add example template
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from feature/add_example_template to silabs

Squashed commit of the following:

commit 3b13469ccc3d227ce79f6d26246a8060f9022754
Author: jepenven-silabs <[email protected]>
Date:   Mon May 9 15:46:49 2022 -0400

    Applied PR comments

commit caffa571ad93bedd36c75e76107b5687b5a4d1c8
Author: jepenven-silabs <[email protected]>
Date:   Mon May 9 11:01:37 2022 -0400

    Add Custom examples build

commit b590828eb9d9a0ad2d8761ef3e710b8e5994c9b8
Author: jepenven-silabs <[email protected]>
Date:   Mon May 9 09:21:56 2022 -0400

    Add Template example
  • Loading branch information
jepenven-silabs authored and jmartinez-silabs committed Jan 9, 2024
1 parent 00ec73f commit d9a5c53
Show file tree
Hide file tree
Showing 30 changed files with 15,328 additions and 1 deletion.
31 changes: 30 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,33 @@ def buildOpenThreadExamples()
}
}

def buildSilabsCustomOpenThreadExamples()
{
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")
{
// Custom Silabs build
withEnv(['PW_ENVIRONMENT_ROOT='+dirPath])
{
sh './scripts/examples/gn_efr32_example.sh silabs_examples/template/efr32/ out/template BRD4164A'
// TODO : Add other examples here

}
}
}
deactivateWorkspaceOverlay(advanceStageMarker.getBuildStagesList(),
workspaceTmpDir)
}
}
}

def buildWiFiExamples()
{
actionWithRetry {
Expand All @@ -143,7 +170,7 @@ def buildWiFiExamples()
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"'
}
}
Expand Down Expand Up @@ -191,6 +218,8 @@ def pipeline()

parallelNodes['Build Wifi Examples'] = { this.buildWiFiExamples() }

parallelNodes['Build Custom Examples'] = { this.buildSilabsCustomOpenThreadExamples() }

parallelNodes.failFast = false
parallel parallelNodes
}
Expand Down
28 changes: 28 additions & 0 deletions silabs_examples/template/efr32/.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/build.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"

# CHIP uses angle bracket includes.
check_system_includes = true

default_args = {
target_cpu = "arm"
target_os = "freertos"
chip_openthread_ftd = true
import("//args.gni")
}
Loading

0 comments on commit d9a5c53

Please sign in to comment.