From f94a02533057637d82e4839862ebe54de61e1a3f Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Mon, 22 Jan 2024 15:30:51 -0600 Subject: [PATCH] dropbear: Copy localoptions.h to build directory Per the dropbear documentation, the localoptions.h file needs to be copied to its build directory to take effect. This file can later be renamed to src/distrooptions.h once the following dropbear change is merged: https://github.com/mkj/dropbear/pull/274 Tested: Before change: $ ssh -vv p10bmc ... debug2: MACs ctos: hmac-sha1,hmac-sha2-256 debug2: MACs stoc: hmac-sha1,hmac-sha2-256 After change: $ ssh -vv p10bmc ... debug2: MACs ctos: hmac-sha1,hmac-sha2-256,hmac-sha2-512 debug2: MACs stoc: hmac-sha1,hmac-sha2-256,hmac-sha2-512 Change-Id: I1a4b108d1a87831f4623c7e3e1e2beb0b8655441 Signed-off-by: Adriana Kobylak --- meta-phosphor/recipes-core/dropbear/dropbear_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-phosphor/recipes-core/dropbear/dropbear_%.bbappend b/meta-phosphor/recipes-core/dropbear/dropbear_%.bbappend index a3cbd1b69d..ee9e2845a1 100644 --- a/meta-phosphor/recipes-core/dropbear/dropbear_%.bbappend +++ b/meta-phosphor/recipes-core/dropbear/dropbear_%.bbappend @@ -8,6 +8,10 @@ SRC_URI += "file://dropbearkey.service \ file://dropbear.default \ " +do_configure:append() { + install -m 0644 ${WORKDIR}/localoptions.h ${B} +} + # pull in OpenSSH's /usr/libexec/sftp-server so we don't have to rely # on the crufty old scp protocol for file transfer RDEPENDS:${PN} += "openssh-sftp-server"