Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7dbf265

Browse files
author
Yifan Hong
committed
ANDROID: Add checkpatch target.
Running the following will run scripts/checkpatch.pl on a patch of HEAD tools/bazel run //common:checkpatch or a given Git SHA1: tools/bazel run //common:checkpatch -- --git_sha1 ... For additional flags, see tools/bazel run //common:checkpatch -- --help For details, see build/kernel/kleaf/docs/checkpatch.md in your source tree. Test: TH Bug: 259995152 Change-Id: Iaad8fd69508cf9be11340166aafbb84930d4805c Signed-off-by: Yifan Hong <[email protected]>
1 parent 530cb2a commit 7dbf265

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
66
load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels")
77
load(
88
"//build/kernel/kleaf:kernel.bzl",
9+
"checkpatch",
910
"ddk_headers",
1011
"kernel_build",
1112
"kernel_images",
@@ -39,6 +40,11 @@ _GKI_X86_64_MAKE_GOALS = [
3940
"modules",
4041
]
4142

43+
checkpatch(
44+
name = "checkpatch",
45+
checkpatch_pl = "scripts/checkpatch.pl",
46+
)
47+
4248
# Deprecated - Use arch specific files from below.
4349
write_file(
4450
name = "gki_system_dlkm_modules",

0 commit comments

Comments
 (0)