summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Weinstein <jake@aospa.co>2020-10-05 04:58:14 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-13 16:38:27 +0800
commit411e0b557ccd0c890e9e204e58aa7c1a05407741 (patch)
tree055855a67bc3bfae1b7ad1b7778d7baab7faa963
parent19f44c76727647b5074b4715c16b454048ff08bd (diff)
kernelscripts: Use TARGET_KERNEL_CONFIG if KERNEL_DEFCONFIG is not defined.
* Maintain a list of legacy definitions to make it easier for device maintainers. Change-Id: I85bfa23236661322409bd811f57401849bbe44be
-rw-r--r--kernel_definitions.mk2
-rw-r--r--legacy_definitions.mk17
2 files changed, 19 insertions, 0 deletions
diff --git a/kernel_definitions.mk b/kernel_definitions.mk
index 9f911b4..0ede39a 100644
--- a/kernel_definitions.mk
+++ b/kernel_definitions.mk
@@ -1,3 +1,5 @@
+include device/qcom/kernelscripts/legacy_definitions.mk
+
# Android Kernel compilation/common definitions
ifeq ($(KERNEL_DEFCONFIG),)
diff --git a/legacy_definitions.mk b/legacy_definitions.mk
new file mode 100644
index 0000000..2827470
--- /dev/null
+++ b/legacy_definitions.mk
@@ -0,0 +1,17 @@
+# Copyright (C) 2020 Paranoid Android
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ifneq ($(TARGET_KERNEL_CONFIG),)
+ KERNEL_DEFCONFIG := $(TARGET_KERNEL_CONFIG)
+endif