[PATCH v1] env: Fix compile error for envtools
Tom Rini
trini at konsulko.com
Tue Jul 14 03:53:24 CEST 2026
On Tue, Jul 14, 2026 at 01:35:42AM +0000, Jacky.Cao at sony.com wrote:
> >> Following error happens when build envtools for mx6qsabrelite.
> >>
> >> $ make tools envtools
> >> UPD include/generated/timestamp_autogenerated.h
> >> HOSTCC tools/printinitialenv
> >> GENENV u-boot-initial-env
> >> COPY tools/version.h
> >> HOSTCC tools/env/crc32.o
> >> HOSTCC tools/env/ctype.o
> >> HOSTCC tools/env/env_attr.o
> >> HOSTCC tools/env/env_flags.o
> >> In file included from ./arch/arm/include/asm/mach-imx/regs-lcdif.h:16,
> >> from ./arch/arm/include/asm/arch/imx-regs.h:371,
> >> from include/configs/mx6_common.h:21,
> >> from include/configs/nitrogen6x.h:13,
> >> from include/config.h:3,
> >> from include/env.h:12,
> >> from tools/env/../../env/flags.c:7,
> >> from tools/env/env_flags.c:1:
> >> ./arch/arm/include/asm/mach-imx/regs-common.h:51:9: error:
> >> unknown type name 'uint8_t'
> >
> >"#include <linux/types.h>" was already in
> >arch/arm/include/asm/mach-imx/regs-common.h
> >
> >Are u using an old tree?
>
> 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.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260713/653ba1eb/attachment.sig>
More information about the U-Boot
mailing list