On Wed, 9 Apr 2025 at 10:58, Sulev-Madis Silber
<freebsd-current-freebsd-org...@ketas.si.pri.ee> wrote:
>
> but it does indeed turn MK_ELFTOOLCHAIN_BOOTSTRAP to "no" value

OK, https://reviews.freebsd.org/D49722 should fix this then (but will
break some other, even more unusual cases). I'll see if I can update
it to work for those cases too.

> i might have optimized myself into hellhole here but what happened within 
> last month that caused this, which change is it?

This is the change that will have introduced the breakage:

commit b885643b63e4df51cc6c74c4ddd4d0b640075678
Author: Ed Maste <ema...@freebsd.org>
Date:   Fri Mar 14 12:42:15 2025 -0400

    boot: Always use ELF Tool Chain elfcopy for EFI builds

    We now use llvm-objcopy by default (as of commit 1cae7121c667), but it
    does not support efi-app-x86_64 and similar ouptut formats (for more
    detail see LLVM issue 108609[1]).

    Go back to installing ELF Tool Chain's version of objcopy as elfcopy
    (the standard upstream name) and use it for EFI builds.

    [1] https://github.com/llvm/llvm-project/issues/108609).

    PR:             280771
    Reviewed by:    andrew
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D49362

> my idea was to optimize resulting armv7 build size, not any local crossbuild 
> toolchains. many options are decade old in that config. altho i checked them 
> recently

WITHOUT_ELFTOOLCHAIN_BOOTSTRAP won't change the size of the installed
system -- it just controls whether ELF Tool Chain (and in particular
elfcopy) is built and used as a build tool.

Reply via email to