Dmitry Shmidt | b4e1ed0 | 2017-02-13 14:39:37 -0800 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
Dmitry Shmidt | faf309a | 2017-02-17 12:47:49 -0800 | [diff] [blame] | 2 | TARGET_KERNEL_USE=4.9 |
Dmitry Shmidt | b4e1ed0 | 2017-02-13 14:39:37 -0800 | [diff] [blame] | 3 | endif |
John Stultz | 4bf95e6 | 2018-01-31 15:20:35 -0800 | [diff] [blame] | 4 | |
| 5 | ifndef TARGET_COMPRESSED_KERNEL |
| 6 | TARGET_COMPRESSED_KERNEL=false |
| 7 | endif |
| 8 | |
| 9 | ifeq ($(TARGET_COMPRESSED_KERNEL), false) |
Dmitry Shmidt | b4e1ed0 | 2017-02-13 14:39:37 -0800 | [diff] [blame] | 10 | TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE) |
John Stultz | 4bf95e6 | 2018-01-31 15:20:35 -0800 | [diff] [blame] | 11 | else |
| 12 | TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-$(TARGET_KERNEL_USE) |
| 13 | endif |
| 14 | |
Dmitry Shmidt | b4e1ed0 | 2017-02-13 14:39:37 -0800 | [diff] [blame] | 15 | TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE) |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 16 | |
Dmitry Shmidt | 20f2bc1 | 2017-05-11 17:05:01 -0700 | [diff] [blame] | 17 | ifeq ($(TARGET_KERNEL_USE), 3.18) |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 18 | TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE) |
| 19 | HIKEY_USE_LEGACY_TI_BLUETOOTH := true |
Dmitry Shmidt | b4e1ed0 | 2017-02-13 14:39:37 -0800 | [diff] [blame] | 20 | else |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 21 | 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 Shmidt | 6c65862 | 2016-03-23 16:29:35 -0700 | [diff] [blame] | 27 | endif |
| 28 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 29 | # |
| 30 | # Inherit the full_base and device configurations |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 31 | $(call inherit-product, device/linaro/hikey/hikey/device-hikey.mk) |
| 32 | $(call inherit-product, device/linaro/hikey/device-common.mk) |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 33 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |
| 34 | |
| 35 | # |
| 36 | # Overrides |
| 37 | PRODUCT_NAME := hikey |
| 38 | PRODUCT_DEVICE := hikey |
Dmitry Shmidt | 3965ada | 2016-08-05 10:57:25 -0700 | [diff] [blame] | 39 | PRODUCT_BRAND := Android |