Skip to content

Commit

Permalink
package/rauc: add option to enable/disable streaming support
Browse files Browse the repository at this point in the history
RAUC 1.7 introduces streaming update support. Make this configurable
and add required dependency to libnl.

Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
hthiery authored and tpetazzoni committed Jun 5, 2022
1 parent 3a6c130 commit 9e59c4a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package/rauc/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ config BR2_PACKAGE_RAUC_NETWORK
This option enables support for updating firmware over
the network using libcurl.

if BR2_PACKAGE_RAUC_NETWORK

config BR2_PACKAGE_RAUC_STREAMING
bool "streaming update support"
select BR2_PACKAGE_LIBNL
help
This option enables support for streaming update mode.

endif

config BR2_PACKAGE_RAUC_JSON
bool "JSON output support"
select BR2_PACKAGE_JSON_GLIB
Expand Down
7 changes: 7 additions & 0 deletions package/rauc/rauc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ else
RAUC_CONF_OPTS += --disable-json
endif

ifeq ($(BR2_PACKAGE_RAUC_STREAMING),y)
RAUC_CONF_OPTS += --enable-streaming
RAUC_DEPENDENCIES += libnl
else
RAUC_CONF_OPTS += --disable-streaming
endif

HOST_RAUC_DEPENDENCIES = \
host-pkgconf \
host-openssl \
Expand Down

0 comments on commit 9e59c4a

Please sign in to comment.