diff --git a/device-caiman.mk b/device-caiman.mk index 17d7a5fc..0dbca23d 100644 --- a/device-caiman.mk +++ b/device-caiman.mk @@ -14,8 +14,13 @@ # limitations under the License. # -TARGET_KERNEL_DIR ?= device/google/caimito-kernel -TARGET_BOARD_KERNEL_HEADERS := device/google/caimito-kernel/kernel-headers +ifdef RELEASE_GOOGLE_CAIMAN_KERNEL_DIR +TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_CAIMAN_KERNEL_DIR) +TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_CAIMAN_KERNEL_DIR)/kernel-headers +else +TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1 +TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers +endif LOCAL_PATH := device/google/caimito diff --git a/device-komodo.mk b/device-komodo.mk index 0e5f9691..eca7b6db 100644 --- a/device-komodo.mk +++ b/device-komodo.mk @@ -14,8 +14,13 @@ # limitations under the License. # -TARGET_KERNEL_DIR ?= device/google/caimito-kernel -TARGET_BOARD_KERNEL_HEADERS := device/google/caimito-kernel/kernel-headers +ifdef RELEASE_GOOGLE_KOMODO_KERNEL_DIR +TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_KOMODO_KERNEL_DIR) +TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_KOMODO_KERNEL_DIR)/kernel-headers +else +TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1 +TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers +endif LOCAL_PATH := device/google/caimito diff --git a/device-ripcurrent24.mk b/device-ripcurrent24.mk index 8cf2cfa1..4ee491d0 100644 --- a/device-ripcurrent24.mk +++ b/device-ripcurrent24.mk @@ -14,8 +14,13 @@ # limitations under the License. # -TARGET_KERNEL_DIR ?= device/google/caimito-kernel -TARGET_BOARD_KERNEL_HEADERS := device/google/caimito-kernel/kernel-headers +ifdef RELEASE_GOOGLE_RIPCURRENT24_KERNEL_DIR +TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_RIPCURRENT24_KERNEL_DIR) +TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_RIPCURRENT24_KERNEL_DIR)/kernel-headers +else +TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1 +TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers +endif $(call inherit-product-if-exists, vendor/google_devices/caimito/prebuilts/device-vendor-ripcurrent24.mk) $(call inherit-product-if-exists, vendor/google_devices/zumapro/prebuilts/device-vendor.mk) diff --git a/device-ripcurrentpro.mk b/device-ripcurrentpro.mk index 4c6b4d5e..aeb147f9 100644 --- a/device-ripcurrentpro.mk +++ b/device-ripcurrentpro.mk @@ -14,8 +14,13 @@ # limitations under the License. # -TARGET_KERNEL_DIR ?= device/google/caimito-kernel -TARGET_BOARD_KERNEL_HEADERS := device/google/caimito-kernel/kernel-headers +ifdef RELEASE_GOOGLE_RIPCURRENTPRO_KERNEL_DIR +TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_RIPCURRENTPRO_KERNEL_DIR) +TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_RIPCURRENTPRO_KERNEL_DIR)/kernel-headers +else +TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1 +TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers +endif USE_SWIFTSHADER := false BOARD_USES_SWIFTSHADER := false diff --git a/device-tokay.mk b/device-tokay.mk index 7473ccba..8442716c 100644 --- a/device-tokay.mk +++ b/device-tokay.mk @@ -14,8 +14,13 @@ # limitations under the License. # -TARGET_KERNEL_DIR ?= device/google/caimito-kernel -TARGET_BOARD_KERNEL_HEADERS := device/google/caimito-kernel/kernel-headers +ifdef RELEASE_GOOGLE_TOKAY_KERNEL_DIR +TARGET_KERNEL_DIR ?= $(RELEASE_GOOGLE_TOKAY_KERNEL_DIR) +TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_GOOGLE_TOKAY_KERNEL_DIR)/kernel-headers +else +TARGET_KERNEL_DIR ?= device/google/caimito-kernels/6.1/24D1 +TARGET_BOARD_KERNEL_HEADERS ?= device/google/caimito-kernels/6.1/24D1/kernel-headers +endif $(call inherit-product-if-exists, vendor/google_devices/caimito/prebuilts/device-vendor-tokay.mk) $(call inherit-product-if-exists, vendor/google_devices/zumapro/prebuilts/device-vendor.mk)