whenever i attempt to build aosp for dragonboard i receive the following error
"external/libdrm/xf86drm.c: In function ‘parse_separate_sysfs_files’:
external/libdrm/xf86drm.c:3102:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (unsigned i = ignore_revision ? 1 : 0; i < ARRAY_SIZE(attrs); i++) {
^
external/libdrm/xf86drm.c:3102:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
external/libdrm/xf86drm.c: At top level:
cc1: warning: unrecognized command line option “-Wno-enum-conversion”
make: *** [out/target/product/db410c/obj/STATIC_LIBRARIES/libdrm_intermediates/xf86drm.o] Error 1
make: *** Waiting for unfinished jobs…
make: *** wait: No child processes. Stop.
make failed to build some targets (03:43 (mm:ss))
"
i followed the steps here :https://github.com/96boards/documentation/wiki/RPB-AOSP-DragonBoard410c-Build
i faced an issue in pulling the source code i solved by following instructions here:https://github.com/96boards/documentation/issues/129
i tried adding “ccflags-y := -std=c99” and “LOCAL_CFLAGS += -std=c99” to build/core/main.mk and external/libdrm/Android.mk with no success
here’s the output of the make:https://github.com/96boards/documentation/files/1547771/out.txt