1 config BR2_PACKAGE_SWUPDATE
3 depends on BR2_TOOLCHAIN_HAS_THREADS
4 depends on BR2_USE_MMU # fork()
5 # swupdate requires a parser and uses libconfig as default
6 select BR2_PACKAGE_LIBCONFIG if !BR2_PACKAGE_JSON_C && \
7 !BR2_PACKAGE_HAS_LUAINTERPRETER
9 swupdate provides a reliable way to update the software on an
12 swupdate is highly configurable to fit the targets requirements and
13 to minimize the footprint. The provided default configuration file
14 BR2_PACKAGE_SWUPDATE_CONFIG will enable swupdate with an embedded
15 webserver, a parser and a handler for raw NAND or NOR flash.
17 The default configuration file builds a reasonable firmware update
18 system with minimal external dependencies in my mind. If you like to
19 use your own modified configuration, you have to select the
20 necessary packages manually:
22 * Select BR2_PACKAGE_LUA or BR2_PACKAGE_LUAJIT if you want
24 CONFIG_HANDLER_IN_LUA is not supported in LuaJIT or Lua 5.1.
25 Note that for LuaJIT support, you need to set
26 CONFIG_LUAVERSION="jit-5.1".
27 * Select BR2_LIBCURL if you want to use the download feature.
28 * Select BR2_PACKAGE_OPENSSL is you want to add encryption support.
29 * Select BR2_PACKAGE_MTD if you want to use swupdate with UBI
31 * Select BR2_PACKAGE_ZLIB if you want to deal with gzip compressed
33 * Select BR2_PACKAGE_UBOOT_TOOLS and BR2_PACKAGE_ZLIB to add support
34 for setting the U-Boot environment.
36 https://sbabic.github.io/swupdate
38 if BR2_PACKAGE_SWUPDATE
40 config BR2_PACKAGE_SWUPDATE_CONFIG
41 string "swupdate configuration file"
42 default "package/swupdate/swupdate.config"
44 Path to the swupdate configuration file.
46 I you wish to use your own modified swupdate configuration file
47 specify the config file location with this option.
49 config BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE
50 bool "install default website"
53 Install the provided website to /var/www/swupdate.
55 This is necessary if you want to run swupdate with the embedded
56 webserver and do not provide an own website to be installed to
60 comment "swupdate needs a toolchain w/ threads"
61 depends on BR2_USE_MMU
62 depends on !BR2_TOOLCHAIN_HAS_THREADS