Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 1 | |
| 2 | ifndef TARGET_KERNEL_USE |
| 3 | TARGET_KERNEL_USE=4.9 |
| 4 | endif |
| 5 | |
| 6 | ifndef TARGET_COMPRESSED_KERNEL |
Dmitry Shmidt | 9b2761d | 2018-03-21 13:40:51 -0700 | [diff] [blame] | 7 | TARGET_COMPRESSED_KERNEL=true |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 8 | endif |
| 9 | |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 10 | HIKEY_USE_DRM_HWCOMPOSER := false |
| 11 | |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 12 | ifeq ($(TARGET_COMPRESSED_KERNEL), false) |
| 13 | TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE) |
| 14 | else |
| 15 | TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE) |
| 16 | endif |
| 17 | |
| 18 | TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE) |
| 19 | |
Steven Moreland | 85e4f25 | 2018-03-19 14:00:33 -0700 | [diff] [blame] | 20 | PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true |
| 21 | |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 22 | ifeq ($(TARGET_KERNEL_USE), 3.18) |
| 23 | TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE) |
| 24 | HIKEY_USE_LEGACY_TI_BLUETOOTH := true |
| 25 | else |
| 26 | ifeq ($(TARGET_KERNEL_USE), 4.4) |
| 27 | HIKEY_USE_LEGACY_TI_BLUETOOTH := true |
| 28 | else |
| 29 | HIKEY_USE_LEGACY_TI_BLUETOOTH := false |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 30 | ifeq ($(TARGET_KERNEL_USE), 4.9) |
| 31 | HIKEY_USE_DRM_HWCOMPOSER := false |
| 32 | else |
| 33 | HIKEY_USE_DRM_HWCOMPOSER := true |
| 34 | endif |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 35 | endif |
| 36 | TARGET_FSTAB := fstab.hikey |
| 37 | endif |
| 38 | |
| 39 | $(call inherit-product, device/linaro/hikey/hikey/device-hikey.mk) |
| 40 | $(call inherit-product, device/linaro/hikey/device-common.mk) |
| 41 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |