Hi,
I am trying to build aosp on hikey960 board, but after I run the command
. ./build/envsetup.sh
lunch hikey960-userdebug
make -j8
I got the error like:
device/linaro/hikey/hikey960/device-hikey960.mk:90: warning: TARGET_HISI_CODEC_VERSION () does not match exiting the build (1).
device/linaro/hikey/hikey960/device-hikey960.mk:91: warning: Please download new binaries here:
device/linaro/hikey/hikey960/device-hikey960.mk:92: warning: https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz
device/linaro/hikey/hikey960/device-hikey960.mk:93: warning: And extract in the ANDROID_TOP_DIR
============================================
PLATFORM_VERSION_CODENAME=R
PLATFORM_VERSION=R
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-48-generic-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
============================================
wildcard(out/target/product/hikey960/clean_steps.mk) was changed, regenerating...
device/linaro/hikey/hikey960/device-hikey960.mk:90: warning: TARGET_HISI_CODEC_VERSION () does not match exiting the build (1).
device/linaro/hikey/hikey960/device-hikey960.mk:91: warning: Please download new binaries here:
device/linaro/hikey/hikey960/device-hikey960.mk:92: warning: https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz
device/linaro/hikey/hikey960/device-hikey960.mk:93: warning: And extract in the ANDROID_TOP_DIR
[100% 12386/12386] initializing build system ...
device/linaro/hikey/hikey960/device-hikey960.mk:90: warning: TARGET_HISI_CODEC_VERSION () does not match exiting the build (1).
device/linaro/hikey/hikey960/device-hikey960.mk:91: warning: Please download new binaries here:
device/linaro/hikey/hikey960/device-hikey960.mk:92: warning: https://dl.google.com/dl/android/aosp/hisilicon-hikey960-OPR-3c243263.tgz
device/linaro/hikey/hikey960/device-hikey960.mk:93: warning: And extract in the ANDROID_TOP_DIR
[100% 12756/12756] writing build rules ...
FAILED:
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/hikey960/system/lib64/libion.so', previously defined at build/make/core/base_rules.mk:480
10:56:16 ckati failed with: exit status 1
#### failed to build some targets (01:22 (mm:ss)) ####
Could you please let me know how to handle the build problem?
Thanks in advance.