blob: ca6f2d184c92c8ff10199d8441c3a791189917ac [file] [log] [blame]
Dmitry Shmidtb4e1ed02017-02-13 14:39:37 -08001ifndef TARGET_KERNEL_USE
Dmitry Shmidtfaf309a2017-02-17 12:47:49 -08002TARGET_KERNEL_USE=4.9
Dmitry Shmidtb4e1ed02017-02-13 14:39:37 -08003endif
John Stultz4bf95e62018-01-31 15:20:35 -08004
5ifndef TARGET_COMPRESSED_KERNEL
6TARGET_COMPRESSED_KERNEL=false
7endif
8
9ifeq ($(TARGET_COMPRESSED_KERNEL), false)
Dmitry Shmidtb4e1ed02017-02-13 14:39:37 -080010TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE)
John Stultz4bf95e62018-01-31 15:20:35 -080011else
12TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE)
13endif
14
Dmitry Shmidtb4e1ed02017-02-13 14:39:37 -080015TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE)
John Stultzd497f632017-05-30 23:51:33 -070016
Dmitry Shmidt20f2bc12017-05-11 17:05:01 -070017ifeq ($(TARGET_KERNEL_USE), 3.18)
John Stultzd497f632017-05-30 23:51:33 -070018 TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE)
19 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
Dmitry Shmidtb4e1ed02017-02-13 14:39:37 -080020else
John Stultzd497f632017-05-30 23:51:33 -070021 ifeq ($(TARGET_KERNEL_USE), 4.4)
22 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
23 else
24 HIKEY_USE_LEGACY_TI_BLUETOOTH := false
25 endif
26 TARGET_FSTAB := fstab.hikey
Dmitry Shmidt6c658622016-03-23 16:29:35 -070027endif
28
Vishal Bhoje72c9202015-10-23 18:10:21 +010029#
30# Inherit the full_base and device configurations
Amit Pundiraf628c22016-11-02 16:37:00 +080031$(call inherit-product, device/linaro/hikey/hikey/device-hikey.mk)
32$(call inherit-product, device/linaro/hikey/device-common.mk)
Vishal Bhoje72c9202015-10-23 18:10:21 +010033$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
34
35#
36# Overrides
37PRODUCT_NAME := hikey
38PRODUCT_DEVICE := hikey
Dmitry Shmidt3965ada2016-08-05 10:57:25 -070039PRODUCT_BRAND := Android