From 3c19f7015ee303dd2171755eb764a33e63970f07 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 31 May 2024 16:51:18 -0700 Subject: [PATCH] ANDROID: set rewrite_absolute_paths_in_config for GKI aarch64. For GKI targets with kmi_symbol_list set, also set rewrite_absolute_paths_in_config to True so that CONFIG_UNUSED_KSYMS_WHITELIST is not an absolute path any more, increasing reproducibility on different machines. This is made possible with c6427490abb1 "Revert^2 "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST to be relative against objtree."" so that Kbuild recognizes relative paths by searching $(objtree) first. This does not change x86 builds because it doesn't have kmi_symbol_list set. This change does not affect device builds like db845c, rockpi and fips140. Adding the attribute to these targets would be okay, but it is not covered by this change. Bug: 333769605 Bug: 342390208 Change-Id: I844c251979bae5277474837eaa055f1346b0afa2 Signed-off-by: Yifan Hong --- BUILD.bazel | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index 36dd531b3295..33677cee37d8 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -134,6 +134,7 @@ define_common_kernels(target_configs = { "kmi_symbol_list_strict_mode": True, "module_implicit_outs": get_gki_modules_list("arm64"), "kmi_symbol_list": "android/abi_gki_aarch64", + "rewrite_absolute_paths_in_config": True, "kmi_symbol_list_add_only": True, "additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"], "protected_exports_list": "android/abi_gki_protected_exports_aarch64", @@ -149,6 +150,7 @@ define_common_kernels(target_configs = { "kmi_symbol_list_strict_mode": False, "module_implicit_outs": get_gki_modules_list("arm64"), "kmi_symbol_list": "android/abi_gki_aarch64", + "rewrite_absolute_paths_in_config": True, "kmi_symbol_list_add_only": True, "additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"], "protected_exports_list": "android/abi_gki_protected_exports_aarch64",