Dragonboard 410c android build error

Hi,

I am trying to build android for dragonboard410c by following this https://www.96boards.org/documentation/consumer/dragonboard/guides/aosp/ but while building I am getting an error as shown below.

PLATFORM_VERSION_CODENAME=R
PLATFORM_VERSION=R
TARGET_PRODUCT=db410c32_only
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.18-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out

[ 42% 184/428] including device/linaro/dragonboard/Android.mk …
FAILED:
build/make/core/prebuilt_internal.mk:57: error: a300_pfp.fw : unexpected LOCAL_MODULE_CLASS for prebuilts: FIRMWARE.
16:16:10 ckati failed with: exit status 1

failed to build some targets (01:32 (mm:ss))

Any help would be great.

Thanks.

Try this patch: https://android-review.linaro.org/c/device/linaro/dragonboard410c/+/20581

Hi Loic,

That worked, But it breakdown with an error at line external/mesa3d/src/mesa/version.c:124 printing error: expected ‘)’ . The error went away by replacing _mesa_snprintf function with the following code

_mesa_snprintf(ctx->VersionString, max,
“%s%u.%u%s Mesa " PACKAGE_VERSION
#ifdef MESA_GIT_SHA1
" (” MESA_GIT_SHA1 “)”
#endif
,
prefix,
ctx->Version / 10, ctx->Version % 10,
(ctx->API == API_OPENGL_CORE) ? " (Core Profile)" :
(ctx->API == API_OPENGL_COMPAT && ctx->Version >= 32) ?
" (Compatibility Profile)" : “”
);

Thanks.