hikey960: Prepare for multikernel use
Bug: 38204302
Test: Manual
Change-Id: Iffb7da6846a66a0bd5cba0507303b08b54fb974d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/hikey960.mk b/hikey960.mk
index 986048f..cb3e9f5 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -1,3 +1,9 @@
+ifndef TARGET_KERNEL_USE
+TARGET_KERNEL_USE=4.4
+endif
+TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-hikey960-$(TARGET_KERNEL_USE)
+TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE)
+
HIKEY_USE_LEGACY_TI_BLUETOOTH := true
#
diff --git a/hikey960/device-hikey960.mk b/hikey960/device-hikey960.mk
index 2645e2d..3d2530c 100644
--- a/hikey960/device-hikey960.mk
+++ b/hikey960/device-hikey960.mk
@@ -14,8 +14,8 @@
# limitations under the License.
#
-PRODUCT_COPY_FILES += device/linaro/hikey-kernel/Image.gz-hikey960:kernel \
- device/linaro/hikey-kernel/hi3660-hikey960.dtb:hi3660-hikey960.dtb
+PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL):kernel \
+ $(TARGET_PREBUILT_DTB):hi3660-hikey960.dtb
PRODUCT_COPY_FILES += $(LOCAL_PATH)/fstab.hikey960:root/fstab.hikey960 \
device/linaro/hikey/init.common.rc:root/init.hikey960.rc \