ANDROID: dissuade people from using some build configs.

Almost all build configs except build.config.constants would
emit a warning when it is sourced.

This pushes people away from using them. Eventually we'll
make this an error.

Bug: 236012223
Change-Id: I859d47219f064d80c1f3a49f6f5884ab8d3566f9
Signed-off-by: HONG Yifan <elsk@google.com>
(cherry picked from commit 89f5c613b9513c0b7189d669f39497ee5a1c1cca)
This commit is contained in:
HONG Yifan
2025-01-08 17:15:11 -08:00
committed by Yifan Hong
parent 7207203cc3
commit 7a8bff32fa
6 changed files with 20 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
echo 'WARNING: Do not source build.config.aarch64.
Instead, set kernel_build.make_goals.' >&2
MAKE_GOALS="
Image
modules
+3
View File
@@ -1,3 +1,6 @@
echo 'WARNING: Do not source build.config.arm.
Instead, set kernel_build.make_goals.' >&2
MAKE_GOALS="
zImage
modules
+7
View File
@@ -1,3 +1,10 @@
echo 'WARNING: Do not source build.config.common. Instead:
- If you need -D__ANDROID_COMMON_KERNEL__ in KCFLAGS, set kernel_build.kcflags.
- If you still have build configs, use:
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.constants
- If you do not have any build configs, delete kernel_build.build_config entirely.
' >&2
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.constants
KCFLAGS="${KCFLAGS} -D__ANDROID_COMMON_KERNEL__"
+2
View File
@@ -3,6 +3,8 @@
# TODO(b/236012223): Deprecate and remove this file once build-config-less
# builds are fully supported.
echo 'WARNING: Do not source build.config.gki.aarch64. See warnings below for details.' >&2
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.aarch64
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki
+2
View File
@@ -3,6 +3,8 @@
# TODO(b/236012223): Deprecate and remove this file once build-config-less
# builds are fully supported.
echo 'WARNING: Do not source build.config.gki.x86_64. See warnings below for details.' >&2
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.x86_64
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki
+3
View File
@@ -1,3 +1,6 @@
echo 'WARNING: Do not source build.config.x86_64.
Instead, set kernel_build.make_goals.' >&2
MAKE_GOALS="
bzImage
modules