Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2024 22:48:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        uboot@FreeBSD.org
Subject:   [Bug 279531] sysutils/u-boot-rpi4: Cannot build, errors with ecdsa and rsa
Message-ID:  <bug-279531-39090-TRWP0OeYrs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279531-39090@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279531-39090@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279531

Naram Qashat <cyberbotx@cyberbotx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uboot@FreeBSD.org
 Attachment #251332|                            |maintainer-approval?(uboot@
              Flags|                            |FreeBSD.org)

--- Comment #3 from Naram Qashat <cyberbotx@cyberbotx.com> ---
Created attachment 251332
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251332&action=
=3Dedit
u-boot.diff to fix building against ports OpenSSL

I am going to re-open this, as I found the cause and the fix.

Firstly: u-boot-tools APPEARED to not be affected by this problem, but in
reality, it only was making it. It never uses the SSL choice by the user and
always uses base OpenSSL.

The cause: u-boot-tools and all the u-boot firmware ports that rely on
u-boot-master never have the -I or -L flags needed for OpenSSL passed into =
the
u-boot build system. Something in u-boot-master made it use -L/usr/local/lib
anyways and that was causing my build failure. The build system also does n=
ot
respect externally set CFLAGS and LDFLAGS.

The fix: In order to get u-boot's build system to respect the user's wish a=
s to
what OpenSSL to use (as well as any other CFLAGS or LDFLAGS the user sets),=
 add
HOSTCFLAGS and HOSTLDFLAGS to the MAKE_ENV.

Additionally: u-boot-master did not put compiler:c11 or ssl into USES like
u-boot-tools did, so I added those. Also, I moved V=3D1 from MAKE_ENV to
MAKE_ARGS as u-boot's build system ignore it when set in the former, and
CC=3Dclang was being completely ignored so I removed that.

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279531-39090-TRWP0OeYrs>