ANDROID: GKI: BUILD.bazel: Add buildifier sort hint

Add buildifier sorting directives for modules lists
to catch non sorted lists in presubmit as well as
to help sort lists using the buildifier.

Bug: 232431151
Test: TH
Change-Id: I508652429f26f85ce5d760024574d68d63f2da9e
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
(cherry picked from commit 39228dd9f2eadd22a747eac65dc14dc6436fb0d8)
This commit is contained in:
Ramji Jiyani 2022-10-27 22:39:20 +00:00
parent 6f1219ff5f
commit 253c4832d2

View File

@ -22,6 +22,7 @@ load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels", "define
define_common_kernels(target_configs = {
"kernel_aarch64": {
"module_implicit_outs": [
# keep sorted
"drivers/block/zram/zram.ko",
"mm/zsmalloc.ko",
"net/mac80211/mac80211.ko",
@ -30,6 +31,7 @@ define_common_kernels(target_configs = {
},
"kernel_aarch64_16k": {
"module_implicit_outs": [
# keep sorted
"drivers/block/zram/zram.ko",
"mm/zsmalloc.ko",
"net/mac80211/mac80211.ko",
@ -38,6 +40,7 @@ define_common_kernels(target_configs = {
},
"kernel_aarch64_debug": {
"module_implicit_outs": [
# keep sorted
"drivers/block/zram/zram.ko",
"mm/zsmalloc.ko",
"net/mac80211/mac80211.ko",
@ -47,6 +50,7 @@ define_common_kernels(target_configs = {
"kernel_x86_64": {
"kmi_symbol_list_strict_mode": False,
"module_implicit_outs": [
# keep sorted
"drivers/block/zram/zram.ko",
"mm/zsmalloc.ko",
"net/mac80211/mac80211.ko",
@ -56,6 +60,7 @@ define_common_kernels(target_configs = {
"kernel_x86_64_debug": {
"kmi_symbol_list_strict_mode": False,
"module_implicit_outs": [
# keep sorted
"drivers/block/zram/zram.ko",
"mm/zsmalloc.ko",
"net/mac80211/mac80211.ko",