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:
@@ -1,3 +1,6 @@
|
||||
echo 'WARNING: Do not source build.config.aarch64.
|
||||
Instead, set kernel_build.make_goals.' >&2
|
||||
|
||||
MAKE_GOALS="
|
||||
Image
|
||||
modules
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
echo 'WARNING: Do not source build.config.arm.
|
||||
Instead, set kernel_build.make_goals.' >&2
|
||||
|
||||
MAKE_GOALS="
|
||||
zImage
|
||||
modules
|
||||
|
||||
@@ -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__"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
echo 'WARNING: Do not source build.config.x86_64.
|
||||
Instead, set kernel_build.make_goals.' >&2
|
||||
|
||||
MAKE_GOALS="
|
||||
bzImage
|
||||
modules
|
||||
|
||||
Reference in New Issue
Block a user