This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathKconfig
157 lines (118 loc) · 3.58 KB
/
Kconfig
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Copyright (c) 2017 Linaro Limited
# Copyright (c) 2017 Open Source Foundries Limited
# Copyright (c) 2018 Foundries.io
#
# SPDX-License-Identifier: Apache-2.0
#
mainmenu "Open Source Foundries dm-hawkbit-mqtt Configuration"
config FOTA_DEVICE
bool "Enable FOTA device settings"
default y
select FOTA_DEVICE_SOC_SERIES_KINETIS_K6X if SOC_SERIES_KINETIS_K6X
select FOTA_DEVICE_SOC_SERIES_NRF52X if SOC_SERIES_NRF52X
help
Main config to enable device specific settings
config FOTA_DEVICE_SOC_SERIES_KINETIS_K6X
bool "Kinetis K6x application settings"
depends on !NET_L2_OPENTHREAD
select NET_SHELL
select NET_IPV4
select NET_CONFIG_NEED_IPV4
select NET_UDP # for DHCP
default n
if FOTA_DEVICE_SOC_SERIES_KINETIS_K6X
# IPv6 is enabled by default in Zephyr's Kconfig when networking is selected.
config NET_IPV6
default n
endif # FOTA_DEVICE_SOC_SERIES_KINETIS_K6X
config FOTA_DEVICE_SOC_SERIES_NRF52X
bool "Nordic Semiconductor nRF52 application settings"
select NET_IPV6
select NET_CONFIG_NEED_IPV6
select NET_CONFIG_BT_NODE
select SENSOR
select TEMP_NRF5
select ENTROPY_NRF5_RNG
select NET_SHELL if SOC_NRF52840
default n
if FOTA_DEVICE_SOC_SERIES_NRF52X
config TEMP_NRF5_NAME
default "fota-die-temp"
if !NET_L2_OPENTHREAD && !NET_L2_IEEE802154
config BT
default y
config BT_CTLR
default y
config BT_DEVICE_NAME
default "ZMP IPSP node"
config NET_CONFIG_PEER_IPV6_ADDR
default "fe80::d4e7:0:0:1"
config NET_L2_BT
default y
config NET_CONFIG_INIT_TIMEOUT
default 0
config NET_TCP_RETRY_COUNT
# Reduced TCP retry count (default is 9) to avoid locking up the net and
# bluetooth stack on packet retransmission as it consumes too much ram
default 2 if SOC_NRF52832
config NET_UDP
default n
config BT_RX_BUF_COUNT
default 10
config BT_RX_BUF_LEN
default 128
config BT_CTLR_RX_BUFFERS
default 6
config BT_CTLR_TX_BUFFERS
default 7
config BT_RX_STACK_SIZE
default 2048
config BT_L2CAP_TX_BUF_COUNT
default 6
# The following BT configs are not needed in peripheral mode.
config BT_CTLR_CONN_PARAM_REQ
default n
config BT_CTLR_ADV_EXT
default n
endif # !NET_L2_OPENTHREAD && !NET_L2_IEEE802154
endif # FOTA_DEVICE_SOC_SERIES_NRF52X
# General defaults
config NET_IF_UNICAST_IPV6_ADDR_COUNT
default 3 if BT
default 6 if NET_L2_OPENTHREAD
config NET_IF_MCAST_IPV6_ADDR_COUNT
default 2 if BT
default 8 if NET_L2_OPENTHREAD
config NET_RX_STACK_SIZE
default 5120 if NET_L2_OPENTHREAD
default 2048
config FOTA_ERASE_PROGRESSIVELY
bool "Erase flash progressively when updating/receiving new firmware"
default y if SOC_NRF52840
help
If enabled, flash is erased as necessary when receiving and marking
new firmware as ok, instead of erasing the whole image slot at once.
This is necessary on some hardware that has long erase times, to
prevent long wait times at various stages where large erases are
performed.
# TODO: get these from a credential partition instead.
config FOTA_MQTT_USERNAME
string "MQTT username"
default "mqtt-username"
help
Username value to use when connecting to MQTT broker.
config FOTA_MQTT_PASSWORD
string "MQTT password"
default ""
help
Password value to use when connecting to MQTT broker.
If this is the empty string, a password based on the board
and a board-specific ID number will be used instead. This
is intended for testing and development only.
module = FOTA
module-dep = LOG
module-str = Log level for FOTA application
source "subsys/logging/Kconfig.template.log_config"
# Leave this at the bottom: we need to override Zephyr's default settings
# with some of the values above.
source "$ZEPHYR_BASE/Kconfig.zephyr"