blob: 7847ff94742ed410ac97955e8e72a0c8d761d21d [file] [log] [blame]
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07001ifndef TARGET_KERNEL_USE
Dmitry Shmidt97211442017-08-07 15:05:18 -07002TARGET_KERNEL_USE=4.9
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07003endif
John Stultz70876332017-08-15 15:35:45 -07004TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-hikey960-$(TARGET_KERNEL_USE)
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07005TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE)
6
John Stultz75f00f92017-08-01 12:32:05 -07007ifeq ($(TARGET_KERNEL_USE), 4.4)
John Stultz6dc5ce52017-11-01 18:58:15 -07008 HIKEY_USE_DRM_HWCOMPOSER := false
John Stultz75f00f92017-08-01 12:32:05 -07009 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
10else
John Stultz6dc5ce52017-11-01 18:58:15 -070011 ifeq ($(TARGET_KERNEL_USE), 4.9)
12 HIKEY_USE_DRM_HWCOMPOSER := false
13 else
14 HIKEY_USE_DRM_HWCOMPOSER := true
15 endif
John Stultz75f00f92017-08-01 12:32:05 -070016 HIKEY_USE_LEGACY_TI_BLUETOOTH := false
17endif
John Stultzd497f632017-05-30 23:51:33 -070018
Dmitry Shmidt5d080802017-04-11 14:20:03 -070019#
20# Inherit the full_base and device configurations
Anton Hansson1399b122018-02-08 14:57:45 +000021$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070022$(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
Sandeep Patila2106d12018-07-31 13:56:56 -070026#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
Sahaj Sarup93980e02018-09-11 13:24:20 +000033PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608
34
Dmitry Shmidt5d080802017-04-11 14:20:03 -070035#
36# Overrides
37PRODUCT_NAME := hikey960
38PRODUCT_DEVICE := hikey960
39PRODUCT_BRAND := Android
40PRODUCT_MODEL := AOSP on hikey960