-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmos.yml
81 lines (67 loc) · 2.57 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
author: mongoose-os
description: OTA common bits
type: lib
version: 1.5.0
platforms: [ cc3200, esp32, esp32c3, esp8266, rs14100, stm32, ubuntu ]
sources:
- src
- src/${platform}
includes:
- src
- include
- include/${platform}
libs:
- location: https://github.com/mongoose-os-libs/mbedtls
- location: https://github.com/mongoose-os-libs/mongoose
no_implicit_init_deps: true
init_deps:
- mongoose
config_schema:
- ["update", "o", {title: "Firmware updater"}]
- ["update.timeout", "i", 600, {title: "Update will be aborted if it does not finish within this time"}]
- ["update.commit_timeout", "i", {title: "After applying update, wait for commit up to this long"}]
- ["update.key0", "s", "", {title: "Update signature verification key 0. ECDSA P-256, DER + Base64."}]
- ["update.key1", "s", "", {title: "Update signature verification key 1. ECDSA P-256, DER + Base64."}]
- ["update.key2", "s", "", {title: "Update signature verification key 2. ECDSA P-256, DER + Base64."}]
- ["update.key3", "s", "", {title: "Update signature verification key 3. ECDSA P-256, DER + Base64."}]
- ["update.key4", "s", "", {title: "Update signature verification key 4. ECDSA P-256, DER + Base64."}]
- ["update.key5", "s", "", {title: "Update signature verification key 5. ECDSA P-256, DER + Base64."}]
- ["update.key6", "s", "", {title: "Update signature verification key 6. ECDSA P-256, DER + Base64."}]
- ["update.key7", "s", "", {title: "Update signature verification key 7. ECDSA P-256, DER + Base64."}]
- ["update.sig_req_mask", "i", -1, {title: "Update signature requirements. If >= 0, it is used as a bitmask where bit 0 corresponds to key 0, bit 1 to key 1, etc. All of the masked bits must be set, i.e. if sig_req is 3, update must be signed by both key 0 and key 1."}]
cdefs:
MGOS_LIC_ENABLE: 1
MGOS_OTA_SIGN_ENABLE: 1
conds:
- when: mos.platform == "cc3200"
apply:
cdefs:
# CC3200 just can't do it - crypto takes too much space.
MGOS_LIC_ENABLE: 0
MGOS_OTA_SIGN_ENABLE: 0
- when: mos.platform == "esp32"
apply:
sources:
- src/esp32xx
includes:
- include/esp32xx
- when: mos.platform == "esp32c3"
apply:
sources:
- src/esp32xx
includes:
- include/esp32xx
- when: mos.platform == "rs14100"
apply:
libs:
- location: https://github.com/mongoose-os-libs/bootloader
- when: mos.platform == "stm32"
apply:
libs:
- location: https://github.com/mongoose-os-libs/bootloader
tags:
- c
- core
- ota
- docs:net:OTA
manifest_version: 2018-06-20