[U-Boot] [build] conflict of include/image.h with /usr/include/image.h

Hi,
I guess this applies to everything else in include directory. Usually I know how to fix that, but the -idirafter/tmp/u-boot/arch/powerpc/include seems to be important to build system, and is also causing the issue, so I am unsure about the implications.
--- gcc -Wp,-MD,tools/.aisimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /tmp/u-boot/include/libfdt_env.h -idirafterinclude -idirafter/tmp/u-boot/arch/powerpc/include -I/tmp/u-boot/lib/libfdt -I/tmp/u-boot/tools -DCONFIG_SYS_TEXT_BASE=0xf01000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/aisimage.o tools/aisimage.c In file included from /usr/include/image.h:22:0, from tools/aisimage.c:10: /usr/include/rgbpixel.h:61:3: error: expected specifier-qualifier-list before ‘RGBpixel’ In file included from tools/aisimage.c:10:0: /usr/include/image.h:40:1: error: unknown type name ‘class’ /usr/include/image.h:41:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token tools/aisimage.c:22:1: error: unknown type name ‘table_entry_t’ ---
Workaround is to copy include/image.h into tools/, but I believe this is not the right way to go.
What will be the proper solution? moving shared includes into own directory?
Regards, Alon Bar-Lev
participants (1)
-
Alon Bar-Lev