1ifndef TARGET_KERNEL_USE 2TARGET_KERNEL_USE=4.14 3endif 4TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-hikey960-$(TARGET_KERNEL_USE) 5TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE) 6 7ifeq ($(TARGET_KERNEL_USE), 4.4) 8 HIKEY_USE_DRM_HWCOMPOSER := false 9 HIKEY_USE_LEGACY_TI_BLUETOOTH := true 10else 11 ifeq ($(TARGET_KERNEL_USE), 4.9) 12 HIKEY_USE_DRM_HWCOMPOSER := false 13 else 14 HIKEY_USE_DRM_HWCOMPOSER := true 15 endif 16 HIKEY_USE_LEGACY_TI_BLUETOOTH := false 17endif 18 19# 20# Inherit the full_base and device configurations 21$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 22$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk) 23$(call inherit-product, device/linaro/hikey/device-common.mk) 24$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) 25 26#setup dm-verity configs 27PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system 28PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor 29$(call inherit-product, build/target/product/verity.mk) 30PRODUCT_SUPPORTS_BOOT_SIGNER := false 31PRODUCT_SUPPORTS_VERITY_FEC := false 32 33PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608 34 35# 36# Overrides 37PRODUCT_NAME := hikey960 38PRODUCT_DEVICE := hikey960 39PRODUCT_BRAND := Android 40PRODUCT_MODEL := AOSP on hikey960 41