File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,16 @@ efr32_sdk("sdk") {
61
61
]
62
62
}
63
63
64
+ config (" efr32_ldflags" ) {
65
+ _ldscript =
66
+ " ${ chip_root } /examples/platform/silabs/ldscripts/${ silabs_family } .ld"
67
+
68
+ ldflags = [
69
+ " -T" + rebase_path (_ldscript , root_build_dir ),
70
+ " -Wl,--no-warn-rwx-segment" ,
71
+ ]
72
+ }
73
+
64
74
# This is the test runner. `pw_test` will dep this for each `silabs_executable` target.
65
75
source_set (" efr32_test_main" ) {
66
76
defines = [ " PW_RPC_ENABLED" ]
@@ -103,6 +113,7 @@ source_set("efr32_test_main") {
103
113
]
104
114
105
115
include_dirs = [ " ${ chip_root } /examples/common/pigweed/efr32" ]
116
+ public_configs = [ " :efr32_ldflags" ]
106
117
}
107
118
108
119
# This target is referred to by BuildRoot in scripts/build/builders/efr32.py, as well as the example in README.md.
Original file line number Diff line number Diff line change 15
15
import (" //build_overrides/chip.gni" )
16
16
import (" //build_overrides/pigweed.gni" )
17
17
import (" ${ chip_root } /config/efr32/lib/pw_rpc/pw_rpc.gni" )
18
- import (" ${ chip_root } /examples/platform/silabs/args.gni" )
19
18
import (" ${ chip_root } /src/platform/silabs/efr32/args.gni" )
20
- import (" ${ chip_root } /third_party/silabs/silabs_board.gni" ) # silabs_family
21
19
22
20
silabs_sdk_target = get_label_info (" :sdk" , " label_no_toolchain" )
23
21
@@ -46,9 +44,3 @@ pw_unit_test_MAIN = "//:efr32_test_main"
46
44
# Additional variables needed by silabs_executable that must be passed in to pw_test.
47
45
test_executable_output_name = " matter-silabs-device_tests-"
48
46
test_executable_output_name_suffix = " .out"
49
- _ldscript =
50
- " ${ chip_root } /examples/platform/silabs/ldscripts/${ silabs_family } .ld"
51
- test_executable_ldflags = [
52
- " -T" + rebase_path (_ldscript , root_build_dir ),
53
- " -Wl,--no-warn-rwx-segment" ,
54
- ]
You can’t perform that action at this time.
0 commit comments