SFTP using libcurl


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




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.


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
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



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.