ANDROID: Move test_mappings_zip from //kernel/tests/test_mappings to //common.
This is to remove the hard-coded //common package in //kernel/tests/test_mappings, because the kernel tree may be specified elsewhere. Test: TH Bug: 327493370 Change-Id: Ib792be425a96b369eab6fb3d001fb1a519ec648b Signed-off-by: Yifan Hong <elsk@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
27882f9d25
commit
ba7650d4a9
+14
-1
@@ -109,15 +109,18 @@ define_common_kernels(target_configs = {
|
||||
"kernel_aarch64": {
|
||||
"module_implicit_outs": get_gki_modules_list("arm64"),
|
||||
"make_goals": _GKI_AARCH64_MAKE_GOALS,
|
||||
"extra_dist": [":test_mappings_zip"],
|
||||
},
|
||||
"kernel_riscv64": {
|
||||
"module_implicit_outs": get_gki_modules_list("riscv64"),
|
||||
"make_goals": _GKI_RISCV64_MAKE_GOALS,
|
||||
"extra_dist": [":test_mappings_zip"],
|
||||
},
|
||||
"kernel_x86_64": {
|
||||
"kmi_symbol_list_strict_mode": False,
|
||||
"module_implicit_outs": get_gki_modules_list("x86_64"),
|
||||
"make_goals": _GKI_X86_64_MAKE_GOALS,
|
||||
"extra_dist": [":test_mappings_zip"],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -2492,5 +2495,15 @@ pkg_files(
|
||||
srcs = _TEST_MAPPINGS,
|
||||
prefix = package_name(),
|
||||
renames = {file: file for file in _TEST_MAPPINGS},
|
||||
visibility = ["//kernel/tests/test_mappings:__pkg__"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
pkg_zip(
|
||||
name = "test_mappings_zip",
|
||||
srcs = [
|
||||
":test_mappings",
|
||||
"//kernel/tests/test_mappings:non_kernel_test_mappings",
|
||||
],
|
||||
out = "test_mappings.zip",
|
||||
visibility = ["//common-modules/virtual-device:__pkg__"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user