Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
Dmitry Shmidt | 9721144 | 2017-08-07 15:05:18 -0700 | [diff] [blame] | 2 | TARGET_KERNEL_USE=4.9 |
Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 3 | endif |
John Stultz | 7087633 | 2017-08-15 15:35:45 -0700 | [diff] [blame] | 4 | TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-hikey960-$(TARGET_KERNEL_USE) |
Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 5 | TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE) |
| 6 | |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 7 | ifeq ($(TARGET_KERNEL_USE), 4.4) |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 8 | HIKEY_USE_DRM_HWCOMPOSER := false |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 9 | HIKEY_USE_LEGACY_TI_BLUETOOTH := true |
| 10 | else |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 11 | ifeq ($(TARGET_KERNEL_USE), 4.9) |
| 12 | HIKEY_USE_DRM_HWCOMPOSER := false |
| 13 | else |
| 14 | HIKEY_USE_DRM_HWCOMPOSER := true |
| 15 | endif |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 16 | HIKEY_USE_LEGACY_TI_BLUETOOTH := false |
| 17 | endif |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 18 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 19 | # |
| 20 | # Inherit the full_base and device configurations |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 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 | |
Sandeep Patil | a2106d1 | 2018-07-31 13:56:56 -0700 | [diff] [blame] | 26 | #setup dm-verity configs |
| 27 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system |
| 28 | PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor |
| 29 | $(call inherit-product, build/target/product/verity.mk) |
| 30 | PRODUCT_SUPPORTS_BOOT_SIGNER := false |
| 31 | PRODUCT_SUPPORTS_VERITY_FEC := false |
| 32 | |
Sahaj Sarup | 93980e0 | 2018-09-11 13:24:20 +0000 | [diff] [blame^] | 33 | PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608 |
| 34 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 35 | # |
| 36 | # Overrides |
| 37 | PRODUCT_NAME := hikey960 |
| 38 | PRODUCT_DEVICE := hikey960 |
| 39 | PRODUCT_BRAND := Android |
| 40 | PRODUCT_MODEL := AOSP on hikey960 |