Lunch hikey970-userdebug does not work

Hi,
I am trying to build an android image and kernel for Hikey970.
I am trying to follow the guide at https://github.com/96boards/documentation/blob/master/consumer/hikey/hikey970/build/aosp.md and https://github.com/96boards/documentation/blob/master/consumer/hikey/hikey970/build/linux-kernel.md for building android and kernel respectively.

But I find that lunch command does not list options for hikey970.
So, I was suggested not to choose options in lunch command, but to use the command ‘lunch hikey970-userdebug’ directly. Though lunch command works this way, further compilation fails with make command . Has anybody faced this issue? Any pointers would be of great use!

@ric96
Error displayed:
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/hikey970/system/vendor/lib/libc_secshared.so’, previously defined at build/make/core/base_rules.mk:418
10:03:30 ckati failed with: exit status 1

I’ve added a PR to solve this issue: https://github.com/96boards-hikey/aosp-device-linaro-hikey/pull/6

I’ll try to build on my end and see what the issue is, initially this looks like an issue related to the AOSP source in general and not specific to the 970, but i’ll test it on my end once.

I am seeing the error as well, looks like shared library for the NPU driver, still need to see why it’s breaking.

Hi @ric96,

I am also facing this issue. Any resolution on this yet?
Also, there is one android binary(factory image) for hikey970. Is it possible to have the source code snapshot for that, so that I can build and test over hikey970 android.