[PATCH v3 2/2] tools: fix build without LIBCRYPTO support

Simon Glass sjg at chromium.org
Tue Dec 26 10:47:48 CET 2023


On Thu, Dec 21, 2023 at 7:26 AM Alexander Dahl <ada at thorsis.com> wrote:
>
> From: Paul-Erwan Rio <paulerwan.rio at gmail.com>
>
> Commit cb9faa6f98ae ("tools: Use a single target-independent config to
> enable OpenSSL") introduced a target-independent configuration to build
> crypto features in host tools.
>
> But since commit 2c21256b27d7 ("hash: Use Kconfig to enable hashing in
> host tools and SPL") the build without OpenSSL is broken, due to FIT
> signature/encryption features. Add missing conditional compilation
> tokens to fix this.
>
> Signed-off-by: Paul-Erwan Rio <paulerwan.rio at gmail.com>
> Tested-by: Alexander Dahl <ada at thorsis.com>
> Cc: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> ---
>
> Notes:
>     Added another guard around the header includes and slightly reworded the
>     commit message.  Otherwise it's the same patch as before, so I kept the
>     author as is and only added my Tested-by:
>     I removed the Reviewed-by: from Simon from this patch, because of the
>     changes mentioned and because the patch was based on an U-Boot three or
>     four releases ago.
>
>     v1 -> v2:
>     * collected tags
>
>  include/image.h    | 2 +-
>  tools/Kconfig      | 1 +
>  tools/fit_image.c  | 2 +-
>  tools/image-host.c | 4 ++++
>  tools/mkimage.c    | 5 +++--
>  5 files changed, 10 insertions(+), 4 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list