lineage: Disable inline kernel building for generic {arm,arm64} targets
Change-Id: I766779a2babc170481174899aaf610cbfeb8d754
diff --git a/build/target/product/lineage_arm.mk b/build/target/product/lineage_arm.mk
index 97bbe3e..90eb1ed 100644
--- a/build/target/product/lineage_arm.mk
+++ b/build/target/product/lineage_arm.mk
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2019 The LineageOS Project
+# Copyright (C) 2018-2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
include vendor/lineage/build/target/product/lineage_generic_target.mk
+TARGET_NO_KERNEL_OVERRIDE := true
TARGET_USES_64_BIT_BINDER := true
PRODUCT_NAME := lineage_arm
diff --git a/build/target/product/lineage_arm64.mk b/build/target/product/lineage_arm64.mk
index b46c4e5..e57d8fd 100644
--- a/build/target/product/lineage_arm64.mk
+++ b/build/target/product/lineage_arm64.mk
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2019 The LineageOS Project
+# Copyright (C) 2018-2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,4 +16,6 @@
include vendor/lineage/build/target/product/lineage_generic_target.mk
+TARGET_NO_KERNEL_OVERRIDE := true
+
PRODUCT_NAME := lineage_arm64
diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk
index bdf264d..983ffb7 100644
--- a/build/tasks/kernel.mk
+++ b/build/tasks/kernel.mk
@@ -63,6 +63,7 @@
# modules in vendor_overlay instead of vendor
ifneq ($(TARGET_NO_KERNEL),true)
+ifneq ($(TARGET_NO_KERNEL_OVERRIDE),true)
## Externally influenced variables
KERNEL_SRC := $(TARGET_KERNEL_SOURCE)
@@ -356,4 +357,5 @@
.PHONY: dtbimage
dtbimage: $(INSTALLED_DTBIMAGE_TARGET)
+endif # TARGET_NO_KERNEL_OVERRIDE
endif # TARGET_NO_KERNEL