Merge pull request #61 from JacobBarthelmeh/sshd
change wolfssh to have expected sshd application with SFTP/SCP supportpull/62/head
commit
41fe0e6107
|
@ -0,0 +1,24 @@
|
||||||
|
To add wolfssh (and /usr/bin/wolfsshd installed) add the following to the conf/local.cnf file in the build directory.
|
||||||
|
|
||||||
|
```
|
||||||
|
IMAGE_INSTALL_append = " wolfssh "
|
||||||
|
```
|
||||||
|
|
||||||
|
If wanting to increase SFTP throughput the folloing could be added to a wolfssh_%.bbappend file created in the directory meta-wolfssl/recipes-wolfssl/wolfssh/
|
||||||
|
|
||||||
|
```
|
||||||
|
CPPFLAGS_append = "-DWOLFSSH_MAX_SFTP_RW=64000"
|
||||||
|
```
|
||||||
|
|
||||||
|
Instaling the example applications (more robust client applications are in the works, these are examples) could be done by adding the following in the bbappend file.
|
||||||
|
|
||||||
|
```
|
||||||
|
do_install_append() {
|
||||||
|
cp ${WORKDIR}/build/examples/client/.libs/client ${D}/usr/bin/wolfssh
|
||||||
|
cp ${WORKDIR}/build/examples/sftpclient/.libs/wolfsftp ${D}/usr/bin/
|
||||||
|
cp ${WORKDIR}/build/examples/scpclient/.libs/wolfscp ${D}/usr/bin/
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ SECTION = "libs"
|
||||||
LICENSE = "GPLv3"
|
LICENSE = "GPLv3"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSING;md5=2c2d0ee3db6ceba278dd43212ed03733"
|
LIC_FILES_CHKSUM = "file://LICENSING;md5=2c2d0ee3db6ceba278dd43212ed03733"
|
||||||
|
|
||||||
DEPENDS += "wolfssl"
|
DEPENDS += "wolfssl virtual/crypt"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/wolfssl/wolfssh.git;protocol=https;tag=v${PV}-stable"
|
SRC_URI = "git://github.com/wolfssl/wolfssh.git;protocol=https;tag=v${PV}-stable"
|
||||||
|
|
||||||
|
@ -17,8 +17,11 @@ S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-wolfssl=${COMPONENTS_DIR}/${PACKAGE_ARCH}/wolfssl/usr"
|
EXTRA_OECONF = "--with-wolfssl=${COMPONENTS_DIR}/${PACKAGE_ARCH}/wolfssl/usr \
|
||||||
|
--enable-certs --enable-sshd --enable-sftp --enable-scp"
|
||||||
|
CPPFLAGS_append = "-DWOLFSSH_NO_FPKI"
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
(cd ${S}; ./autogen.sh; cd -)
|
(cd ${S}; ./autogen.sh; cd -)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
EXTRA_OECONF += "--enable-ssh"
|
EXTRA_OECONF += "--enable-ssh --enable-keygen --enable-certext --enable-certgen --disable-examples"
|
||||||
|
CPPFLAGS_append += "-DWOLFSSL_FPKI -DWOLFSSL_IP_ALT_NAME -DWOLFSSL_ALT_NAMES -DNO_WOLFSSL_DIR -DWOLFSSL_PUBLIC_ASN"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue