报错日志:
sprd_UNC_LINUX_YOCTO_SL8541E/source/bsp/u-boot15_sprdroidq/lib/libhvb/hvb_cert.c:20:
sprd_UNC_LINUX_YOCTO_SL8541E/build-unisoc-wayland/tmp-unisoc_wayland-glibc/work/sl8541e_emmc_marlin2-unisoc-linux-gnueabi/u-boot15/v2015.07+git999-r0/recipe-sysroot-native/usr/lib/arm-unisoc-linux-gnueabi/gcc/arm-unisoc-linux-gnueabi/7.2.1/include/stdint-gcc.h:86:26: error: conflicting types for 'uintptr_t'
typedef __UINTPTR_TYPE__ uintptr_t;
^~~~~~~~~
sprd_UNC_LINUX_YOCTO_SL8541E/source/bsp/u-boot15_sprdroidq/lib/libhvb/hvb_cert.c:16:
sprd_UNC_LINUX_YOCTO_SL8541E/source/bsp/u-boot15_sprdroidq/include/compiler.h:120:27: note: previous declaration of 'uintptr_t' was here
typedef unsigned long int uintptr_t;
^~~~~~~~~
解决方法:
在source/bsp/u-boot15_sprdroidq/lib/libhvb/hvb_cert.c中
#define uintptr_t wyh_uintptr_t
#include <fdtdec.h>
#undef uintptr_t