12
12
"kernel_modules_install" ,
13
13
"merged_kernel_uapi_headers" ,
14
14
)
15
- load (":modules.bzl" , "COMMON_GKI_MODULES_LIST " )
15
+ load (":modules.bzl" , "get_gki_modules_list " )
16
16
17
17
package (
18
18
default_visibility = [
@@ -39,27 +39,55 @@ _GKI_X86_64_MAKE_GOALS = [
39
39
"modules" ,
40
40
]
41
41
42
+ # Deprecated - Use arch specific files from below.
42
43
write_file (
43
44
name = "gki_system_dlkm_modules" ,
44
45
out = "android/gki_system_dlkm_modules" ,
45
- content = COMMON_GKI_MODULES_LIST + [
46
+ content = get_gki_modules_list ("arm64" ) + [
47
+ # Ensure new line at the end.
48
+ "" ,
49
+ ],
50
+ )
51
+
52
+ write_file (
53
+ name = "gki_system_dlkm_modules_arm64" ,
54
+ out = "android/gki_system_dlkm_modules_arm64" ,
55
+ content = get_gki_modules_list ("arm64" ) + [
56
+ # Ensure new line at the end.
57
+ "" ,
58
+ ],
59
+ )
60
+
61
+ write_file (
62
+ name = "gki_system_dlkm_modules_x86_64" ,
63
+ out = "android/gki_system_dlkm_modules_x86_64" ,
64
+ content = get_gki_modules_list ("x86_64" ) + [
65
+ # Ensure new line at the end.
66
+ "" ,
67
+ ],
68
+ )
69
+
70
+ write_file (
71
+ name = "gki_system_dlkm_modules_risc64" ,
72
+ out = "android/gki_system_dlkm_modules_riscv64" ,
73
+ content = get_gki_modules_list ("riscv64" ) + [
46
74
# Ensure new line at the end.
47
75
"" ,
48
76
],
49
77
)
50
78
51
79
define_common_kernels (target_configs = {
52
80
"kernel_aarch64" : {
53
- "module_implicit_outs" : COMMON_GKI_MODULES_LIST ,
81
+ "module_implicit_outs" : get_gki_modules_list ( "arm64" ) ,
54
82
"make_goals" : _GKI_AARCH64_MAKE_GOALS ,
55
83
},
56
84
"kernel_riscv64" : {
57
- "module_implicit_outs" : COMMON_GKI_MODULES_LIST ,
85
+ "module_implicit_outs" : get_gki_modules_list ( "riscv64" ) ,
58
86
"make_goals" : _GKI_RISCV64_MAKE_GOALS ,
59
87
},
60
88
"kernel_x86_64" : {
61
89
"kmi_symbol_list_strict_mode" : False ,
62
- "module_implicit_outs" : COMMON_GKI_MODULES_LIST ,
90
+ "module_implicit_outs" : get_gki_modules_list ( "x86_64" ) ,
63
91
"make_goals" : _GKI_X86_64_MAKE_GOALS ,
64
92
},
65
93
})
@@ -411,7 +439,7 @@ kernel_build(
411
439
"modules" ,
412
440
"rk3399-rock-pi-4b.dtb" ,
413
441
],
414
- module_outs = COMMON_GKI_MODULES_LIST + _ROCKPI4_MODULE_OUTS + _ROCKPI4_WATCHDOG_MODULE_OUTS ,
442
+ module_outs = get_gki_modules_list ( "arm64" ) + _ROCKPI4_MODULE_OUTS + _ROCKPI4_WATCHDOG_MODULE_OUTS ,
415
443
visibility = ["//visibility:private" ],
416
444
)
417
445
@@ -434,7 +462,7 @@ kernel_build(
434
462
"modules" ,
435
463
"rk3399-rock-pi-4b.dtb" ,
436
464
],
437
- module_outs = COMMON_GKI_MODULES_LIST + _ROCKPI4_MODULE_OUTS ,
465
+ module_outs = get_gki_modules_list ( "arm64" ) + _ROCKPI4_MODULE_OUTS ,
438
466
visibility = ["//visibility:private" ],
439
467
)
440
468
0 commit comments