SFTP using libcurl

Hi
I want to update the curl version to the latest 7.54.1. Firmware Packages - Release 14 have curl version 7.37.1 which do not support SFTP. If anyone done already please share the steps here.

below is the curl version details for Release14
root@swi-mdm9x15:~# curl -V
curl 7.37.1 (arm-poky-linux-gnueabi) libcurl/7.37.1 GnuTLS/3.3.5 zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 NTLM NTLM_WB SSL libz TLS-SRP

Thanks

Hi,

One method would be to rebuild the rootfs with an updated curl recipe.
If you add the content of http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-support/curl into meta-swi/common/recipes-support (or your own layer, up to you), you should be able to get an up-to-date curl.

1 Like

Hi Roussel Thank you.
i am able to build yocto with updated curl recipe but this do not come with all the protocol. Dont know how to include the protocol package.

i have removed PACKAGECONFIG ??= ā€œ${@bb.utils.filter(ā€˜DISTRO_FEATURESā€™, ā€˜ipv6ā€™, d)} gnutls proxy zlibā€ from .bb file as i was getting ERROR during build (may be this is the reason)

See below what i am getting now

root@swi-mdm9x15:~# legato version
16.10.3_14a3a0c356102949b3a755b68e8ae60d_modified
root@swi-mdm9x15:~# curl -V
curl 7.54.1 (arm-poky-linux-gnueabi) libcurl/7.54.1
Release-Date: 2017-06-14
Protocols: file ftp http
Features: UnixSockets
root@swi-mdm9x15:~#

Thnaks

To add sftp it seems that you will need gnutls support.
To add https it would be ssl I think.

Could you try to add ssl gnutls in DISTRO_FEATURES_DEFAULT in the file meta-swi-extras/common/conf/distro/poky-swi-ext.conf.
Cf http://www.yoctoproject.org/docs/1.7.3/ref-manual/ref-manual.html#ref-features-distro for some more info on this topic.