1config BR2_PACKAGE_SWUPDATE 2 bool "swupdate" 3 depends on !BR2_STATIC_LIBS 4 depends on BR2_TOOLCHAIN_HAS_THREADS 5 depends on BR2_USE_MMU # fork() 6 # swupdate requires a parser and uses libconfig as default 7 select BR2_PACKAGE_LIBCONFIG if !BR2_PACKAGE_JSON_C && \ 8 !BR2_PACKAGE_HAS_LUAINTERPRETER 9 help 10 swupdate provides a reliable way to update the software on 11 an embedded system. 12 13 swupdate is highly configurable to fit the targets 14 requirements and to minimize the footprint. The provided 15 default configuration file BR2_PACKAGE_SWUPDATE_CONFIG will 16 enable swupdate with an embedded webserver, a parser and a 17 handler for raw NAND or NOR flash. 18 19 The default configuration file builds a reasonable firmware 20 update system with minimal external dependencies in mind. 21 If you like to use your own modified configuration, 22 you have to select the necessary packages manually: 23 24 * Select BR2_PACKAGE_LUA or BR2_PACKAGE_LUAJIT if you want 25 want to have Lua support. 26 * Select BR2_PACKAGE_LIBCURL if you want to use the download 27 feature. 28 * Select BR2_PACKAGE_OPENSSL or BR2_PACKAGE_MBEDTLS if you 29 want to add encryption support. 30 * Select BR2_PACKAGE_MTD if you want to use swupdate with 31 UBI partitions. 32 * Select BR2_PACKAGE_ZLIB if you want to deal with gzip 33 compressed archives. 34 * Select BR2_PACKAGE_ZSTD if you want to deal with zstd 35 compressed archives. 36 * Select BR2_PACKAGE_ZEROMQ to add support for using a 37 remote handler. 38 * Select BR2_PACKAGE_LIBRSYNC to add support for using 39 rdiff handler. 40 * Select BR2_PACKAGE_LIBUBOOTENV to add support for setting 41 the U-Boot environment. 42 * Select BR2_PACKAGE_LIBGPIOD to add support for 43 microcontroller firmware update. 44 * Select BR2_PACKAGE_EFIBOOTMGR to add support for EFI Boot 45 Guard. 46 * Select BR2_PACKAGE_LIBCURL, BR2_PACKAGE_JSON_C, 47 BR2_PACKAGE_LIBWEBSOCKETS, and BR2_PACKAGE_LIBURIPARSER 48 to add support for the SWU forwarder. 49 50 https://sbabic.github.io/swupdate 51 52if BR2_PACKAGE_SWUPDATE 53 54config BR2_PACKAGE_SWUPDATE_CONFIG 55 string "swupdate configuration file" 56 default "package/swupdate/swupdate.config" 57 help 58 Path to the swupdate configuration file. 59 60 I you wish to use your own modified swupdate configuration 61 file specify the config file location with this option. 62 63config BR2_PACKAGE_SWUPDATE_USB 64 bool "swupdate usb" 65 depends on BR2_PACKAGE_SYSTEMD 66 help 67 Enable update from USB disk. 68 69comment "swupdate usb needs systemd" 70 depends on !BR2_PACKAGE_SYSTEMD 71 72config BR2_PACKAGE_SWUPDATE_WEBSERVER 73 bool "swupdate webserver" 74 default y 75 help 76 Enable update from remote using a web server on the target. 77 78config BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE 79 bool "install default website" 80 default y 81 depends on BR2_PACKAGE_SWUPDATE_WEBSERVER 82 help 83 Install the provided website to /var/www/swupdate. 84 85 This is necessary if you want to run swupdate with the 86 embedded webserver and do not provide an own website to be 87 installed to /var/www/swupdate. 88endif 89 90comment "swupdate needs a toolchain w/ dynamic library, threads" 91 depends on BR2_USE_MMU 92 depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS 93