diff --git a/recipes-wolfssl/wolfssh/README.md b/recipes-wolfssl/wolfssh/README.md new file mode 100644 index 0000000..afbc58a --- /dev/null +++ b/recipes-wolfssl/wolfssh/README.md @@ -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/ +} +``` + + + diff --git a/recipes-wolfssl/wolfssh/wolfssh_1.4.13.bb b/recipes-wolfssl/wolfssh/wolfssh_1.4.13.bb index 652e111..0fc0d8c 100644 --- a/recipes-wolfssl/wolfssh/wolfssh_1.4.13.bb +++ b/recipes-wolfssl/wolfssh/wolfssh_1.4.13.bb @@ -9,7 +9,7 @@ SECTION = "libs" LICENSE = "GPLv3" 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" @@ -17,8 +17,11 @@ S = "${WORKDIR}/git" 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() { (cd ${S}; ./autogen.sh; cd -) } + diff --git a/recipes-wolfssl/wolfssh/wolfssl_%.bbappend b/recipes-wolfssl/wolfssh/wolfssl_%.bbappend index 20725f9..f2af53d 100644 --- a/recipes-wolfssl/wolfssh/wolfssl_%.bbappend +++ b/recipes-wolfssl/wolfssh/wolfssl_%.bbappend @@ -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"