forked from sbabic/swupdate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConfig.in
executable file
·319 lines (274 loc) · 8.42 KB
/
Config.in
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# SPDX-FileCopyrightText: 2013 Stefano Babic <sbabic@denx.de>
#
# SPDX-License-Identifier: GPL-2.0-only
#
# For a description of the syntax of this configuration file,
# see scripts/kbuild/config-language.txt.
#
menu "Image Handlers"
config ARCHIVE
bool "archive"
depends on HAVE_LIBARCHIVE
default n
help
Handler using the libarchive to extract tarballs
into a filesystem.
comment "archive support needs libarchive"
depends on !HAVE_LIBARCHIVE
config LOCALE
bool "Locale support for filenames"
depends on ARCHIVE
default y
help
Option to remove attempts to use locale in systems
without locale support in toolchain.
config BOOTLOADERHANDLER
bool "bootloader"
default n
help
Enable it to change bootloader environment
during the installation process.
config CFI
bool "cfi"
depends on MTD
default n
help
Handler to store images in flash in raw mode,
without UBI
config CFIHAMMING1
bool "NAND in raw mode with 1bit Hamming OOB (TI)"
depends on MTD
default n
help
On certain TI's omaps (for example, DM3730 or AM3517),
the first bootloader (MLO or SPL) must be saved with one bit
Hamming correction because this is requested by the SOC's ROM.
However, the Linux driver must use for the rest of the NAND a more
powerful algorithm to make data reliable, and this causes that
it is not possible to update SPL by letting the driver to handle
the OOB area. This handler raws the NAND in raw mode, computing
the ECC with 1 bit Hamming Code and saving it into OOB
(assumes sector size of 512 and page size of 2048).
You do not need this if you do not have an OMAP SoC.
config DELTA
bool "delta"
depends on HAVE_LIBCURL
depends on HAVE_ZSTD
depends on HAVE_ZCK
select CHANNEL_CURL
default n
help
Handler to enable delta images. The handler computes the differences
and download the missing parts, and pass the resulting image to the
next handler.
config DISKPART
bool "diskpart"
depends on HAVE_LIBFDISK
default n
help
Handler to partition a disk, eMMC or SD
comment "diskpart support needs libfdisk"
depends on !HAVE_LIBFDISK
config DISKPART_FORMAT
bool "diskpart extension for creating file systems"
depends on DISKPART
select DISKFORMAT
default n
help
This extension allows formatting newly created partitions.
config DISKFORMAT_HANDLER
bool "diskformat handler for creating file systems"
select DISKFORMAT
default n
help
The diskformat handler allows creating filesystems on empty
partitions.
source fs/Config.in
config LUASCRIPTHANDLER
bool "Lua Script"
depends on LUA
default n
help
Handler to be called for pre- and post scripts
written in Lua.
config HANDLER_IN_LUA
bool "Handlers in Lua"
depends on LUASCRIPTHANDLER
default n
help
Allow to write own handlers in Lua.
They are loaded at the start-up.
config EMBEDDED_LUA_HANDLER
bool "Embed Lua handler in SWUpdate binary"
depends on HANDLER_IN_LUA
default n
help
Embed the Lua handler source code file into the
SWUpdate binary.
If enabled, a swupdate_handlers.lua will *not*
be loaded from disk at SWUpdate startup.
Note: Exactly one Lua source code file is embedded
into the binary, i.e., possible dependencies either
have to be deployed on the target system or put into
the one embedded Lua source code file.
config EMBEDDED_LUA_HANDLER_SOURCE
string "Lua handler file"
depends on EMBEDDED_LUA_HANDLER
default "swupdate_handlers.lua"
help
Path to the Lua handler source code file to be
embedded into the SWUpdate binary.
config RAW
bool "raw"
default n
help
This is a simple handler that simply copies
into the destination.
config RDIFFHANDLER
bool "rdiff"
depends on HAVE_LIBRSYNC
default n
help
Add support for applying librsync's rdiff patches,
see http://librsync.sourcefrog.net/
comment "rdiff support needs librsync"
depends on !HAVE_LIBRSYNC
config READBACKHANDLER
bool "readback"
depends on HASH_VERIFY
default n
help
To verify that an image was written properly, this readback handler
calculates the sha256 hash of a partition (or part of it) and compares
it against a given hash value.
This is a post-install handler running at the same time as
post-install scripts.
config REMOTE_HANDLER
bool "Remote handler"
depends on HAVE_LIBZEROMQ
default n
help
Sometimes the update process should be done
by another process, where code is already
provided. The remote handler let communicate
an external process with SWUpdate, sending
the image to be updated with the help of the
zeromq library.
comment "remote handler needs zeromq"
depends on !HAVE_LIBZEROMQ
config SHELLSCRIPTHANDLER
bool "shellscript"
default n
help
Handler to be called for pre- and post scripts
written as shell scripts. The default shell /bin/sh
is called.
config SWUFORWARDER_HANDLER
bool "SWU forwarder"
depends on HAVE_LIBCURL
depends on HAVE_JSON_C
depends on HAVE_LIBWEBSOCKETS
depends on HAVE_URIPARSER
select CHANNEL_CURL
select JSON
default n
help
This allows to build a chain of updater. A
SWU can contains other SWUs for other systems.
The handler takes a list of URLs and forward the
embedded SWU to the other devices using the
Webserver REST API.
comment "swuforward handler needs json-c and libcurl"
depends on !HAVE_JSON_C || !HAVE_LIBCURL
comment "swuforward handler needs websockets and uriparser"
depends on !HAVE_LIBWEBSOCKETS || !HAVE_URIPARSER
config SSBLSWITCH
bool "Second Stage Switcher"
depends on MTD
default n
help
This handler allows to switch between two software set
based on an administration block stored in flash (CFI interface).
It works like the switch of UBI and allow to switch in an atomic
way between two software set. It can be used to reliable update
a second stage bootloader.
config UBIVOL
bool "ubivol"
default n
depends on HAVE_LIBUBI
depends on MTD
help
ubi is the default format for NAND device.
Say Y if you have NAND or you use UBI on
your system.
comment "ubivol support needs libubi"
depends on !HAVE_LIBUBI
config UBIATTACH
bool "Automatically attach UBI devices"
default y
depends on UBIVOL
help
If this option is enabled, swupdate will try to attach
UBI devices to all MTD devices.
Make sure UBIBLACKLIST or UBIWHITELIST is set correctly,
since attaching a UBI device will write to it if it is
found to be empty, and that may destroy already existing
content on that device.
config UBIBLACKLIST
string "List of MTD devices to be excluded for UBI"
depends on UBIATTACH
help
Define a list of MTD devices that are excluded
by scan_mtd_device. The devices are still available
as raw devices.
The list can be set as a string with the mtd numbers.
Examples: "0 1 2"
This excludes mtd0-mtd1-mtd2 to be searched for UBI volumes
config UBIWHITELIST
string "List of MTD devices that must have UBI"
depends on UBIATTACH
help
Define a list of MTD devices that are planned to have
always UBI. If first attach fails, the device is erased
and tried again.
The list can be set as a string with the mtd numbers.
Examples: "0 1 2"
This sets mtd0-mtd1-mtd2 to be used as UBI volumes.
UBIBLACKLIST has priority on UBIWHITELIST.
config UBIVIDOFFSET
int "VID Header Offset"
depends on UBIATTACH
default 0
help
Force UBI to set a VID header offset to be 2048 bytes
instead of the value reported by the kernel.
In other words, you may ask UBI to avoid using sub-pages.
This is not recommended since this will require
more storage overhead, but may be useful
if your NAND driver incorrectly reports that it can handle
sub-page accesses when it should not.
config UCFWHANDLER
bool "microcontroller firmware update"
depends on HAVE_LIBGPIOD
default n
help
Simple protocol to upgrade a microcontroller
via UART.
comment "Microcontroller handler depends on libgpiod"
depends on !HAVE_LIBGPIOD
config UNIQUEUUID
bool "uniqueuuid"
depends on HAVE_LIBBLKID
default n
help
This handler checks that no filesystem on the device has
a UUID from a list (list is added as part of "properties"
in sw-description) for this handler.
This is useful for bootloader (like GRUB) that use UUID to
select the partition to be started, and in case two or
more filesystem have the same UUID, a wrong one is started.
This handler is a partition handler and it is guaranteed that
it runs before any image is installed on the device.
comment "uniqueuuid support needs libblkid"
depends on !HAVE_LIBBLKID
endmenu