blob: 5dca9d5cd15a1bf4bb8550a761f72d3a86b08957 [file] [log] [blame]
Anton Hansson1399b122018-02-08 14:57:45 +00001
2ifndef TARGET_KERNEL_USE
3TARGET_KERNEL_USE=4.9
4endif
5
6ifndef TARGET_COMPRESSED_KERNEL
Dmitry Shmidt9b2761d2018-03-21 13:40:51 -07007TARGET_COMPRESSED_KERNEL=true
Anton Hansson1399b122018-02-08 14:57:45 +00008endif
9
John Stultz6dc5ce52017-11-01 18:58:15 -070010HIKEY_USE_DRM_HWCOMPOSER := false
11
Anton Hansson1399b122018-02-08 14:57:45 +000012ifeq ($(TARGET_COMPRESSED_KERNEL), false)
13TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE)
14else
15TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE)
16endif
17
18TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE)
19
Steven Moreland85e4f252018-03-19 14:00:33 -070020PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
21
Anton Hansson1399b122018-02-08 14:57:45 +000022ifeq ($(TARGET_KERNEL_USE), 3.18)
23 TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE)
24 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
25else
26 ifeq ($(TARGET_KERNEL_USE), 4.4)
27 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
28 else
29 HIKEY_USE_LEGACY_TI_BLUETOOTH := false
John Stultz6dc5ce52017-11-01 18:58:15 -070030 ifeq ($(TARGET_KERNEL_USE), 4.9)
31 HIKEY_USE_DRM_HWCOMPOSER := false
32 else
33 HIKEY_USE_DRM_HWCOMPOSER := true
34 endif
Anton Hansson1399b122018-02-08 14:57:45 +000035 endif
36 TARGET_FSTAB := fstab.hikey
37endif
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)