summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2023-03-04 08:28:02 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-04 08:28:02 +0000
commit02934a315a3e85bff8bca47500b45c682732096d (patch)
treea3f6324456b40b650aa7fd95a468324ba4796ffe
parent10ef3ac55dde3da2e3d4da5bc66b9328bd54dfc6 (diff)
parent4ac2ad44331fe828bc2b9d9e4ca46f16db1abc12 (diff)
downloadhikey-02934a315a3e85bff8bca47500b45c682732096d.tar.gz
hikey960: set default kernel to 5.10 am: 7788ffd9eb am: a356ea0c83 am: e688182ea8 am: 4ac2ad4433
Original change: https://android-review.googlesource.com/c/device/linaro/hikey/+/2469591 Change-Id: I9559be4db3b578f152cd20c118be94b6fc1884bd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--hikey960.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/hikey960.mk b/hikey960.mk
index 673181c6..7a35a224 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -1,21 +1,23 @@
ifndef TARGET_KERNEL_USE
-TARGET_KERNEL_USE=5.4
+TARGET_KERNEL_USE=5.10
endif
LOCAL_KERNEL_HOME ?= device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
TARGET_PREBUILT_KERNEL := $(LOCAL_KERNEL_HOME)/Image.gz-dtb
TARGET_PREBUILT_DTB := $(LOCAL_KERNEL_HOME)/hi3660-hikey960.dtb
ifndef HIKEY_USES_GKI
- ifeq ($(TARGET_KERNEL_USE), 5.4)
+ ifeq ($(TARGET_KERNEL_USE), mainline)
HIKEY_USES_GKI := true
else
- ifeq ($(TARGET_KERNEL_USE), mainline)
+ KERNEL_MAJ := $(word 1, $(subst ., ,$(TARGET_KERNEL_USE)))
+ # kernel since 5.X should support GKI
+ # only 4.X kernels do not support GKI
+ ifneq ($(KERNEL_MAJ), 4)
HIKEY_USES_GKI := true
endif
endif
endif
-
include $(LOCAL_PATH)/vendor-package-ver.mk
# Inherit the common device configuration