u-boot-k3: set EXTRA_OEMAKE for openssl 4.x - #678
Conversation
OpenSSL was upgraded to 4.0.1 in oe-core commit 20bf704e58. This removes engine support and the ENGINE API, starting in openssl commit 5ef339776d, where if OPENSSL_ENGINE_STUBS is defined the relevant engine macros are set to 0. As with commit 666c8f7, this change breaks u-boot-k3 on the do_compile step, so modify EXTRA_OEMAKE to set HOSTCFLAGS_rsa-sign.o (found in U-Boot's tools/Makefile) to generate the stubs. The '-Wno-deprecated-declarations' flag seems to be mainly for OS X, but preserve it anyway to minimize the scope of our change. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
|
FWIW, I think this patch is not right to fix the problem. There is upstream patch series - https://www.mail-archive.com/u-boot@lists.denx.de/msg564619.html which is modeled around similar patch for kernel. Whenever that lands in u-boot, we should pick that up instead. |
I'll keep an eye on this and submit a correct fix as soon as possible. |
see - YoeDistro/meta-variscite-bsp@d8e2a66 Perhaps this will help ? |
Sure, I'll submit a corresponding PR for meta-riscv. |
Description
I missed this with the previous fix for the K1 boards. Below is the commit description.
OpenSSL was upgraded to 4.0.1 in oe-core commit 20bf704e58. This removes engine support and the ENGINE API, starting in openssl commit 5ef339776d, where if OPENSSL_ENGINE_STUBS is defined the relevant engine macros are set to 0. As with commit 666c8f7, this change breaks u-boot-k3 on the do_compile step, so modify EXTRA_OEMAKE to set HOSTCFLAGS_rsa-sign.o (found in U-Boot's tools/Makefile) to generate the stubs. The '-Wno-deprecated-declarations' flag seems to be mainly for OS X, but preserve it anyway to minimize the scope of our change.
Checklist
docs/DEPRECATED.md,
then it is maintenance-only, i.e. it does not add support for a
previously-removed BSP (or significant features to one slated for removal)
bitbake-registry/have been updated, if necessary
kasfile has been provided inkas/Signed-off-byand any other tags to each commitHow has this been tested?
Provide a brief summary here (e.g. build only, build + boot test, something more
specific). Boot logs, images, or other artifacts are especially helpful.
Local test of a u-boot-k3 build. Also running against my CI: https://forgejo.baylibre.com/tgamblin/boardgarden/actions/runs/388/jobs/0/attempt/1