I did a repo init to branch android-9.0.0_r45 and did repo sync and followed these steps to build the images with kernel version 4.9.
repo init -u platform/manifest - Git at Google -b android-9.0.0_r45
repo sync -j24
source ./build/envsetup.sh
lunch hikey960-userdebug
make TARGET_KERNEL_USE=4.9 -j32
build Android kernel
cd ${AOSP_DIR}
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-android- -j24
cp ${AOSP_DIR}/hikey-linaro/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb ${AOSP_DIR}/device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
cp ${AOSP_DIR}/hikey-linaro/arch/arm64/boot/Image.gz-dtb ${AOSP_DIR}/device/linaro/hikey-kernel/Image.gz-dtb-hikey960-4.9
cd ${AOSP_DIR}
source ./build/envsetup.sh
lunch hikey960-userdebug
make TARGET_KERNEL_USE=4.9 -j32
But after building, vendor.img is not getting generated.
Any help is appreciated.
Thanks.