Re: [PATCH v1] env: Fix compile error for envtools

Hendrik Donner <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <60b9e928-e2c7-47a0-9e87-0e30d2c09fbb__3733.31689495302$1787320881$gmane$org@os-cillation.de>
Hello,

On 8/21/26 15:10, Rasmus Villemoes wrote:
> On Tue, Jul 14 2026, Tom Rini <[email protected]> wrote:
> 
>> On Tue, Jul 14, 2026 at 03:04:42AM +0000, [email protected] wrote:
>>>>> I use master branch of OSS u-boot repo and meet the issue with below
>>>>> commands:
>>>>>
>>>>> make mx6qsabrelite_defconfig
>>>>> make -j8
>>>>> make tools envtools
>>>>
>>>> What host distribution are you building on? And, <config.h> *must* come first
>>>> in the include list, for it to function correctly.
>>>
>>> Host OS is Ubuntu 22.04.3 LTS.
>>> Toolchain is Arm GNU Toolchain 11.3.Rel1(arm-none-linux-gnueabihf-).
>>> Also tried Ubuntu 24.04.4 LTS and Arm GNU Toolchain 15.3.Rel1,
>>> the issue still happens.
>>
>> So, are you on an ARM host too? You aren't specifying where you are /
>> aren't using the ARM toolchain in the above. Thanks.
> 
> It doesn't matter what toolchain one uses. The mentioned commit does
> break "make envtools" for all our boards, building through Yocto. And
> when I build manually using my distro's cross-compiler, the same thing
> happens.
> 
> Note, it's not the board build itself that breaks, only the "make
> envtools", which I assume few people do these days.
> 

i have seen this issue too and now build without a board specific config
as a workaround:

make tools-only_defconfig
make envtools

Before the mentioned commit for the userspace tools relevant code
config.h was never included but env.h is shared code as far as i can tell.

Regards,
Hendrik

> Rasmus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.