ANDROID: allmodconfig targets uses kernel_build.defconfig
... and post_defconfig_fragments, instead of using build configs DEFCONFIG and POST_DEFCONFIG_CMDS. Note: CONFIG_UNWINDER_FRAME_POINTER is dropped for aarch64 because it is not supported. Bug: 368119551 Change-Id: I0d853a24ba59e0c1d91216d71c0e0567555df291 Signed-off-by: HONG Yifan <elsk@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
219c377ad3
commit
cf4f05ceed
@@ -1234,11 +1234,13 @@ kernel_build(
|
||||
# Otherwise, Bazel thinks that there are no output files, and skip building.
|
||||
outs = [".config"],
|
||||
build_config = "build.config.allmodconfig.aarch64",
|
||||
defconfig = "//build/kernel/kleaf:allmodconfig",
|
||||
make_goals = [
|
||||
"Image",
|
||||
"modules",
|
||||
],
|
||||
makefile = ":Makefile",
|
||||
post_defconfig_fragments = [":kmi/aarch64/defconfig/allmodconfig"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
@@ -1251,11 +1253,13 @@ kernel_build(
|
||||
outs = [".config"],
|
||||
arch = "x86_64",
|
||||
build_config = "build.config.allmodconfig.x86_64",
|
||||
defconfig = "//build/kernel/kleaf:allmodconfig",
|
||||
make_goals = [
|
||||
"bzImage",
|
||||
"modules",
|
||||
],
|
||||
makefile = ":Makefile",
|
||||
post_defconfig_fragments = [":kmi/x86_64/defconfig/allmodconfig"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
@@ -1269,11 +1273,13 @@ kernel_build(
|
||||
outs = [".config"],
|
||||
arch = "arm",
|
||||
build_config = "build.config.allmodconfig.arm",
|
||||
defconfig = "//build/kernel/kleaf:allmodconfig",
|
||||
make_goals = [
|
||||
"zImage",
|
||||
"modules",
|
||||
],
|
||||
makefile = ":Makefile",
|
||||
post_defconfig_fragments = [":kmi/arm/defconfig/allmodconfig"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
DEFCONFIG=allmodconfig
|
||||
|
||||
POST_DEFCONFIG_CMDS="update_config"
|
||||
function update_config() {
|
||||
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
|
||||
-e UNWINDER_FRAME_POINTER \
|
||||
-d WERROR \
|
||||
-d SAMPLES \
|
||||
-d BPFILTER \
|
||||
-e RANDSTRUCT_NONE \
|
||||
-d RANDSTRUCT_FULL \
|
||||
-d RANDSTRUCT \
|
||||
-d AF_RXRPC \
|
||||
-d AFS_FS \
|
||||
-d BUILTIN_MODULE_RANGES \
|
||||
|
||||
(cd ${OUT_DIR} && \
|
||||
make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} ${TOOL_ARGS} ${MAKE_ARGS} olddefconfig)
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.aarch64
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.allmodconfig
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.arm
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.allmodconfig
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.x86_64
|
||||
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.allmodconfig
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# CONFIG_AFS_FS is not set
|
||||
# CONFIG_AF_RXRPC is not set
|
||||
# CONFIG_BPFILTER is not set
|
||||
# CONFIG_BUILTIN_MODULE_RANGES is not set
|
||||
# CONFIG_RANDSTRUCT is not set
|
||||
# CONFIG_RANDSTRUCT_FULL is not set
|
||||
CONFIG_RANDSTRUCT_NONE=y
|
||||
# CONFIG_SAMPLES is not set
|
||||
# CONFIG_WERROR is not set
|
||||
@@ -0,0 +1,10 @@
|
||||
CONFIG_UNWINDER_FRAME_POINTER=y
|
||||
# CONFIG_AFS_FS is not set
|
||||
# CONFIG_AF_RXRPC is not set
|
||||
# CONFIG_BPFILTER is not set
|
||||
# CONFIG_BUILTIN_MODULE_RANGES is not set
|
||||
# CONFIG_RANDSTRUCT is not set
|
||||
# CONFIG_RANDSTRUCT_FULL is not set
|
||||
CONFIG_RANDSTRUCT_NONE=y
|
||||
# CONFIG_SAMPLES is not set
|
||||
# CONFIG_WERROR is not set
|
||||
@@ -0,0 +1,10 @@
|
||||
CONFIG_UNWINDER_FRAME_POINTER=y
|
||||
# CONFIG_AFS_FS is not set
|
||||
# CONFIG_AF_RXRPC is not set
|
||||
# CONFIG_BPFILTER is not set
|
||||
# CONFIG_BUILTIN_MODULE_RANGES is not set
|
||||
# CONFIG_RANDSTRUCT is not set
|
||||
# CONFIG_RANDSTRUCT_FULL is not set
|
||||
CONFIG_RANDSTRUCT_NONE=y
|
||||
# CONFIG_SAMPLES is not set
|
||||
# CONFIG_WERROR is not set
|
||||
Reference in New Issue
Block a user