If tools-only_defconfig is used instead of sandbox_defconfig, the port builds fine.
Thanks for the info, I wasn't aware of this defconfig. I need to update u-boot (probably this weekend) and will take care of that at the same time.
Since the update hasn't happened for now, I committed the fix.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d846f9860a2364340493a0d09ee7f63672a7c46b commit d846f9860a2364340493a0d09ee7f63672a7c46b Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-10-27 17:11:46 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-10-27 17:11:46 +0000 sysutils/u-boot-tools: fix build on non-arm non-x86 Changing target to tools-only_defconfig will omit the parts that need EFI and will still build the binaries this port needs. PR: 259118 sysutils/u-boot-tools/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)