Change the rule to specify kernel directory with release configurations

Bug: 326879772
Change-Id: I59afb864e215176b74835b0c9b7c38bab2ecbb04
Signed-off-by: Nina Chen <sheaunic@google.com>
This commit is contained in:
Nina Chen
2024-03-08 16:59:47 +08:00
parent 4b3cdd15f9
commit d6f19ab44f

View File

@@ -14,16 +14,17 @@
# limitations under the License. # limitations under the License.
# #
TARGET_KERNEL_DIR ?= device/google/lynx-kernel
TARGET_BOARD_KERNEL_HEADERS := device/google/lynx-kernel/kernel-headers
ifdef RELEASE_GOOGLE_LYNX_KERNEL_VERSION ifdef RELEASE_GOOGLE_LYNX_KERNEL_VERSION
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_GOOGLE_LYNX_KERNEL_VERSION) TARGET_LINUX_KERNEL_VERSION := $(RELEASE_GOOGLE_LYNX_KERNEL_VERSION)
endif endif
ifdef RELEASE_GOOGLE_LYNX_KERNEL_DIR ifdef RELEASE_GOOGLE_LYNX_KERNEL_DIR
TARGET_KERNEL_DIR := $(RELEASE_GOOGLE_LYNX_KERNEL_DIR) # Keeps flexibility for kasan and ufs builds
TARGET_BOARD_KERNEL_HEADERS := $(RELEASE_GOOGLE_LYNX_KERNEL_DIR)/kernel-headers TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_LYNX_KERNEL_DIR)
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_LYNX_KERNEL_DIR)/kernel-headers
else
TARGET_KERNEL_DIR ?= device/google/lynx-kernel
TARGET_BOARD_KERNEL_HEADERS ?= device/google/lynx-kernel/kernel-headers
endif endif
$(call inherit-product-if-exists, vendor/google_devices/lynx/prebuilts/device-vendor-lynx.mk) $(call inherit-product-if-exists, vendor/google_devices/lynx/prebuilts/device-vendor-lynx.mk)