I have followed the following commands I have found on the forums to build an image of android for hikey 960 since the prebuilt images use 1080p and my monitor cannot zoom out so i can only see the top left corned of the screen zoomed in.
repo init -u … (link removed since forums doesn’t allow user to post more than 2 urls, i used master branch)
repo sync -j24
wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz
tar xzf arm-hikey960-OPR-cf4e0c80.tgz
./extract-arm-hikey960.sh
. ./build/envsetup.sh
lunch hikey960-userdebug
make clean # If you run make -j$(nproc) here and not do make clean before make bootimage, It doesn’t rewrite the boot.img
git clone kernel/hikey-linaro - Git at Google
cd hikey-linaro
git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
make ARCH=arm64 hikey960_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)
cp ~/aosp/hikey-linaro/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb ~/aosp/device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
cp ~/aosp/hikey-linaro/arch/arm64/boot/Image.gz ~/aosp/device/linaro/hikey-kernel/Image.gz-hikey960-4.9
cd ~/aosp
make bootimage -j$(nproc)
the build fails mentioning the following:
you cannot install files to out/target/product while building a separate vendor