diff --git a/BUILD.bazel b/BUILD.bazel index f7d86051cd9e..20b687822deb 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -12,6 +12,25 @@ package( ], ) +_GKI_AARCH64_MAKE_GOALS = [ + "Image", + "Image.lz4", + "Image.gz", + "modules", +] + +_GKI_RISCV64_MAKE_GOALS = [ + "Image", + "Image.lz4", + "Image.gz", + "modules", +] + +_GKI_X86_64_MAKE_GOALS = [ + "bzImage", + "modules", +] + filegroup( name = "aarch64_additional_kmi_symbol_lists", srcs = [ @@ -39,10 +58,12 @@ define_common_kernels(target_configs = { "additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"], "protected_exports_list": "android/abi_gki_protected_exports_aarch64", "protected_modules_list": "android/gki_aarch64_protected_modules", + "make_goals": _GKI_AARCH64_MAKE_GOALS, }, "kernel_aarch64_16k": { "kmi_symbol_list_strict_mode": False, "module_implicit_outs": COMMON_GKI_MODULES_LIST, + "make_goals": _GKI_AARCH64_MAKE_GOALS, }, "kernel_aarch64_debug": { "kmi_symbol_list_strict_mode": False, @@ -51,22 +72,26 @@ define_common_kernels(target_configs = { "additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"], "protected_exports_list": "android/abi_gki_protected_exports_aarch64", "protected_modules_list": "android/gki_aarch64_protected_modules", + "make_goals": _GKI_AARCH64_MAKE_GOALS, }, "kernel_riscv64": { "kmi_symbol_list_strict_mode": False, "module_implicit_outs": COMMON_GKI_MODULES_LIST, + "make_goals": _GKI_RISCV64_MAKE_GOALS, }, "kernel_x86_64": { "kmi_symbol_list_strict_mode": False, "module_implicit_outs": COMMON_GKI_MODULES_LIST, "protected_exports_list": "android/abi_gki_protected_exports_x86_64", "protected_modules_list": "android/gki_x86_64_protected_modules", + "make_goals": _GKI_X86_64_MAKE_GOALS, }, "kernel_x86_64_debug": { "kmi_symbol_list_strict_mode": False, "module_implicit_outs": COMMON_GKI_MODULES_LIST, "protected_exports_list": "android/abi_gki_protected_exports_x86_64", "protected_modules_list": "android/gki_x86_64_protected_modules", + "make_goals": _GKI_X86_64_MAKE_GOALS, }, }) diff --git a/build.config.gki.aarch64 b/build.config.gki.aarch64 index c8d642c09f49..45c5199d471a 100644 --- a/build.config.gki.aarch64 +++ b/build.config.gki.aarch64 @@ -2,13 +2,6 @@ . ${ROOT_DIR}/${KERNEL_DIR}/build.config.aarch64 . ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki -MAKE_GOALS=" -Image -modules -Image.lz4 -Image.gz -" - FILES="${FILES} arch/arm64/boot/Image.lz4 arch/arm64/boot/Image.gz diff --git a/build.config.gki.riscv64 b/build.config.gki.riscv64 index c110e1dce3c3..c216a0472794 100644 --- a/build.config.gki.riscv64 +++ b/build.config.gki.riscv64 @@ -2,13 +2,6 @@ . ${ROOT_DIR}/${KERNEL_DIR}/build.config.riscv64 . ${ROOT_DIR}/${KERNEL_DIR}/build.config.gki -MAKE_GOALS=" -Image -modules -Image.lz4 -Image.gz -" - FILES="${FILES} arch/riscv/boot/Image.lz4 arch/riscv/boot/Image.gz