Skip to content

Commit e4cc43a

Browse files
restyled-commitsmykrupp
authored andcommitted
Restyled by gn
1 parent f29a2d8 commit e4cc43a

File tree

6 files changed

+10
-32
lines changed

6 files changed

+10
-32
lines changed

examples/platform/silabs/args.gni

-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ segger_rtt_buffer_size_down = 1024
2525

2626
declare_args() {
2727
app_data_model = ""
28-
chip_enable_multi_ota_requestor = false
2928
}

examples/platform/silabs/efr32/BUILD.gn

+2-3
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,10 @@ config("efr32-common-config") {
180180
defines += [ "HEAP_MONITORING" ]
181181
}
182182

183-
if(chip_enable_multi_ota_requestor) {
184-
defines += ["CHIP_DEVICE_CONFIG_ENABLE_MULTI_OTA_REQUESTOR=1"]
183+
if (chip_enable_multi_ota_requestor) {
184+
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_MULTI_OTA_REQUESTOR=1" ]
185185
}
186186

187-
188187
ldflags = [ "-Wl,--no-warn-rwx-segment" ]
189188
}
190189

scripts/tools/silabs/ota/README.md

-17
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,3 @@ format of the TLV by creating a JSON file based on the `ota_payload.schema`. The
6969
tool offers support for describing multiple TLV in the same JSON file. Please
7070
see the `examples/ota_max_entries_example.json` for a multi-app + SSBL example.
7171
Option `--json` must be used to specify the path to the JSON file.
72-
73-
## Examples
74-
75-
A set of examples can be found in `./examples`. Please run `create_ota_image.sh`
76-
to generate the examples:
77-
78-
- Application image with default descriptor
79-
- Application image with specified descriptor
80-
- Factory data image
81-
- SSBL image
82-
- Application + SSBL + factory data image
83-
- Maximum number of entries image, using `ota_max_entries_example.json`. The
84-
examples uses 8 SSBL binaries because they have a small size and fit in
85-
external flash.
86-
87-
The binaries from `./examples/binaries` should only be used only as an example.
88-
The user should provide their own binaries when generating the OTA image.

src/platform/silabs/efr32/BUILD.gn

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import("${chip_root}/build/chip/buildconfig_header.gni")
1818
import("${chip_root}/src/crypto/crypto.gni")
1919
import("${chip_root}/src/platform/device.gni")
2020
import("${chip_root}/third_party/silabs/silabs_board.gni")
21-
import("${chip_root}/examples/platform/silabs/args.gni")
21+
import("${chip_root}/third_party/silabs/efr32_sdk.gni")
2222

2323
silabs_platform_dir = "${chip_root}/src/platform/silabs"
2424

@@ -80,21 +80,18 @@ static_library("efr32") {
8080

8181
if (chip_enable_multi_ota_requestor) {
8282
sources += [
83-
"${silabs_platform_dir}/multi-ota/OTAMultiImageProcessorImpl.h",
8483
"${silabs_platform_dir}/multi-ota/OTAMultiImageProcessorImpl.cpp",
85-
"${silabs_platform_dir}/multi-ota/OTATlvProcessor.h",
84+
"${silabs_platform_dir}/multi-ota/OTAMultiImageProcessorImpl.h",
8685
"${silabs_platform_dir}/multi-ota/OTATlvProcessor.cpp",
87-
"${silabs_platform_dir}/multi-ota/efr32/OTAFirmwareProcessor.h",
86+
"${silabs_platform_dir}/multi-ota/OTATlvProcessor.h",
8887
"${silabs_platform_dir}/multi-ota/efr32/OTAFirmwareProcessor.cpp",
88+
"${silabs_platform_dir}/multi-ota/efr32/OTAFirmwareProcessor.h",
8989
"${silabs_platform_dir}/multi-ota/efr32/OTAHooks.cpp",
90-
9190
]
92-
}
93-
else if (chip_enable_ota_requestor) {
91+
} else if (chip_enable_ota_requestor) {
9492
sources += [
9593
"${silabs_platform_dir}/OTAImageProcessorImpl.h",
9694
"${silabs_platform_dir}/efr32/OTAImageProcessorImpl.cpp",
97-
9895
]
9996
}
10097

src/platform/silabs/multi-ota/OTATlvProcessor.h

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ namespace chip {
4242
#define CHIP_OTA_PROCESSOR_EXTERNAL_STORAGE CHIP_ERROR_TLV_PROCESSOR(0x0D)
4343
#define CHIP_OTA_PROCESSOR_START_IMAGE CHIP_ERROR_TLV_PROCESSOR(0x0E)
4444

45-
// TODO: come up with error codes
46-
#define SL_GENERIC_OTA_ERROR CHIP_ERROR_TLV_PROCESSOR(0x0F)
47-
4845
// Descriptor constants
4946
inline constexpr size_t kVersionStringSize = 64;
5047
inline constexpr size_t kBuildDateSize = 64;

third_party/silabs/efr32_sdk.gni

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ declare_args() {
7474

7575
# Use SLC generated files
7676
slc_reuse_files = false
77+
78+
# Multi-chip OTA
79+
chip_enable_multi_ota_requestor = false
7780
}
7881
examples_plat_dir = "${chip_root}/examples/platform/silabs/efr32"
7982
silabs_plat_efr32_wifi_dir = "${chip_root}/src/platform/silabs/efr32/wifi"

0 commit comments

Comments
 (0)