Skip to content

Commit

Permalink
Fix/efr32 ci with pw roll up (#113)
Browse files Browse the repository at this point in the history
* add syscall_stubs to efr32 test driver to support gcc 12

* fix release pw rpc build, and test driver
  • Loading branch information
jmartinez-silabs authored Apr 19, 2023
1 parent 0216460 commit f4e11ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test_driver/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ silabs_executable("efr32_device_tests") {
"${chip_root}/examples/common/pigweed/efr32/PigweedLoggerMutex.cpp",
"${examples_common_plat_dir}/PigweedLogger.cpp",
"${examples_common_plat_dir}/heap_4_silabs.c",
"${examples_common_plat_dir}/syscalls_stubs.cpp",
"${examples_plat_dir}/init_efrPlatform.cpp",
"${examples_plat_dir}/uart.cpp",
"src/main.cpp",
Expand Down Expand Up @@ -111,7 +112,10 @@ silabs_executable("efr32_device_tests") {

inputs = [ ldscript ]

ldflags = [ "-T" + rebase_path(ldscript, root_build_dir) ]
ldflags = [
"-T" + rebase_path(ldscript, root_build_dir),
"-Wl,--no-warn-rwx-segment",
]

output_dir = root_out_dir
}
Expand Down
3 changes: 3 additions & 0 deletions third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ template("efr32_sdk") {

# see https://github.com/project-chip/connectedhomeip/issues/26058
"-Wno-error=array-parameter",

# see https://github.com/project-chip/connectedhomeip/issues/26170
"-Wno-error=array-bounds",
]

if (silabs_family == "efr32mg24" || silabs_family == "mgm24") {
Expand Down

0 comments on commit f4e11ac

Please sign in to comment.