Browse Source

lynx: control the kernel by release configuration

Bug: 317784824
Change-Id: Id106eacf318dc398b0a0fd2bbcda790ff61017c5
Signed-off-by: Aaron Ding <[email protected]>
Aaron Ding 1 year ago
parent
commit
0279f91e52
1 changed files with 9 additions and 0 deletions
  1. 9 0
      device-lynx.mk

+ 9 - 0
device-lynx.mk

@@ -17,6 +17,15 @@
 TARGET_KERNEL_DIR ?= device/google/lynx-kernel
 TARGET_BOARD_KERNEL_HEADERS := device/google/lynx-kernel/kernel-headers
 
+ifdef RELEASE_GOOGLE_LYNX_KERNEL_VERSION
+TARGET_LINUX_KERNEL_VERSION := $(RELEASE_GOOGLE_LYNX_KERNEL_VERSION)
+endif
+
+ifdef RELEASE_GOOGLE_LYNX_KERNEL_DIR
+TARGET_KERNEL_DIR := $(RELEASE_GOOGLE_LYNX_KERNEL_DIR)
+TARGET_BOARD_KERNEL_HEADERS := $(RELEASE_GOOGLE_LYNX_KERNEL_DIR)/kernel-headers
+endif
+
 $(call inherit-product-if-exists, vendor/google_devices/lynx/prebuilts/device-vendor-lynx.mk)
 $(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk)
 $(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk)