
git-subtree-dir: qcom/opensource/mm-sys-kernel git-subtree-mainline:99d06628db
git-subtree-split:88eb9646a4
Change-Id: repo: https://git.codelinaro.org/clo/la/platform/vendor/opensource/mm-sys-kernel tag: LA.VENDOR.14.3.0.r1-17300-lanai.QSSI15.0
33 lignes
1018 B
Python
33 lignes
1018 B
Python
load("//build/kernel/kleaf:kernel.bzl", "ddk_module")
|
|
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
|
|
|
|
|
|
def define_modules(target, variant):
|
|
tv = "{}_{}".format(target, variant)
|
|
|
|
ddk_module(
|
|
name = "{}_ubwcp".format(tv),
|
|
out = "ubwcp.ko",
|
|
srcs = [
|
|
"ubwcp_main.c",
|
|
"ubwcp_hw.c",
|
|
"ubwcp_hw.h",
|
|
"ubwcp_trace.h",
|
|
],
|
|
hdrs=["include/uapi/ubwcp_ioctl.h", "include/kernel/ubwcp.h"],
|
|
deps = ["//msm-kernel:all_headers"],
|
|
includes = ["include", "include/kernel"],
|
|
kernel_build = "//msm-kernel:{}".format(tv),
|
|
visibility = ["//visibility:public"]
|
|
)
|
|
|
|
copy_to_dist_dir(
|
|
name = "{}_ubwcp_dist".format(tv),
|
|
data = [":{}_ubwcp".format(tv)],
|
|
dist_dir = "out/target/product/{}/dlkm/lib/modules/".format(target),
|
|
flat = True,
|
|
wipe_dist_dir = False,
|
|
allow_duplicate_filenames = False,
|
|
mode_overrides = {"**/*": "644"},
|
|
)
|