Skip to content

Commit

Permalink
curl: enable PACKAGECONFIG for HTTP/2 (nghttp2) on the target
Browse files Browse the repository at this point in the history
Without HTTP/2 support, streaming installation is significantly slower.

Signed-off-by: Jan Luebbe <[email protected]>
  • Loading branch information
jluebbe committed Jul 24, 2024
1 parent 8a699cc commit 9876590
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes-support/curl/curl_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require ${@bb.utils.contains('DISTRO_FEATURES', 'rauc', '${BPN}_rauc.inc', '', d)}
5 changes: 5 additions & 0 deletions recipes-support/curl/curl_rauc.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# HTTP/2 allows having multiple parallel (range-) requests in flight on the
# same connection without requiring multiple TCP and TLS handshakes.
# This speeds up adaptive updates a lot, since they work by making many
# range-requests for parts of the update bundle.
PACKAGECONFIG:append:class-target = " nghttp2"

0 comments on commit 9876590

Please sign in to comment.