package/libcurl: introduce options to extend/reduce feature set
PATCH v3 1/1 package/libcurl: introduce options to extend/reduce feature set
From: Thomas De Schampheleire <[email protected]>
Libcurl is more than 250 KiB (libcurl) / 100 KiB (curl binary) in size. About 50 KiB / 15 KiB of this can be saved by disabling features/protocols that are not commonly needed:
- proxy support: 15 KiB
- cookies support: 10 KiB
- various less common protocols: 25 KiB (libcurl) + 15 KiB (curl binary)
Note that the exact amount of space saved depends on the architecture, toolchain, and other factors (for example the 'extra' set enables the --libcurl option which only has impact on the curl binary).
Other packages that are selecting libcurl might require protocols from the 'extra' set. But, there is no clear way to find out which packages are in this situation, in particular because issues may only be visible at runtime.
Note: remove the text 'enable' on the option for 'verbose strings' as that is more common in Buildroot.
--- package/libcurl/Config.in | 30 ++++++++++++++++++++++++++- package/libcurl/libcurl.mk | 42 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-)
v3: (feedback Peter Korsgaard)
- change from negative 'reduce' option to positive 'enable extra'.
v2:
- steer proxy and cookies support via separate options
- reword option and help text
package/libcurl/Config.in +29 -1
@@ -15,10 +15,38 @@ config BR2_PACKAGE_CURL Install curl binary as well config BR2_PACKAGE_LIBCURL_VERBOSE - bool "enable verbose strings" + bool "verbose strings" help Enable verbose text strings +config BR2_PACKAGE_LIBCURL_PROXY_SUPPORT + bool "proxy support" + default y + help + Enable proxy support. + +config BR2_PACKAGE_LIBCURL_COOKIES_SUPPORT + bool "cookies support" + default y + help + Enable support for cookies. + +config BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES + bool "enable extra protocols and features" + default y + help + Enable the following extra protocols and features: + - LDAP / LDAPS + - POP3 / IMAP / SMTP + - Telnet + - TFTP + - RTSP + - SMB / CIFS + - DICT + - Gopher + - The --libcurl option of the curl binary to generate C + programs + config BR2_PACKAGE_LIBCURL_TLS_SUPPORT bool default y if BR2_PACKAGE_OPENSSL
package/libcurl/libcurl.mk +42 -0
48 lines not on this page · raw message
Signature · 1 line
2.19.2
PATCH v3 1/1 package/libcurl: introduce options to extend/reduce feature set
Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas De Schampheleire <[email protected]> writes:
From: Thomas De Schampheleire <[email protected]> Libcurl is more than 250 KiB (libcurl) / 100 KiB (curl binary) in size. About 50 KiB / 15 KiB of this can be saved by disabling features/protocols that are not commonly needed:
- proxy support: 15 KiB
- cookies support: 10 KiB
- various less common protocols: 25 KiB (libcurl) + 15 KiB (curl binary)Note that the exact amount of space saved depends on the architecture, toolchain, and other factors (for example the 'extra' set enables the --libcurl option which only has impact on the curl binary).
Other packages that are selecting libcurl might require protocols from the 'extra' set. But, there is no clear way to find out which packages are in this situation, in particular because issues may only be visible at runtime.
Note: remove the text 'enable' on the option for 'verbose strings' as that is more common in Buildroot.
Signed-off-by Thomas De Schampheleire <[email protected]>
Quoted 8 lines
--- package/libcurl/Config.in | 30 ++++++++++++++++++++++++++- package/libcurl/libcurl.mk | 42 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-)v3: (feedback Peter Korsgaard)
- change from negative 'reduce' option to positive 'enable extra'.
Sorry for the slow response. Committed, thanks.
I did change it to unconditionally disable the libcurl-option as we don't support a C compiler on the target, and the option adds quite some space (~16K).
Signature · 1 line
Bye, Peter Korsgaard