msm: synx: build: Add copy_to_dist_dir rule
Add copy_to_dist_dir to Bazel build to output kernel build outputs to dist dir. Change-Id: I7e142d1e8e8f9f81ed25b938ee7799969870be8d Signed-off-by: John Moon <quic_johmoo@quicinc.com>
This commit is contained in:
parent
384846c393
commit
7570178ce3
@ -1,5 +1,5 @@
|
||||
load("//external_modules/synx-kernel:synx_modules.bzl", "synx_modules")
|
||||
load("//external_modules/synx-kernel:synx_module_build.bzl", "define_consolidate_gki_modules")
|
||||
load(":synx_modules.bzl", "synx_modules")
|
||||
load(":synx_module_build.bzl", "define_consolidate_gki_modules")
|
||||
|
||||
def define_pineapple():
|
||||
define_consolidate_gki_modules(
|
||||
|
@ -5,6 +5,7 @@ load(
|
||||
"kernel_module",
|
||||
"kernel_modules_install",
|
||||
)
|
||||
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
|
||||
|
||||
def _register_module_to_map(module_map, name, path, config_option, srcs, config_srcs, deps, config_deps):
|
||||
processed_config_srcs = {}
|
||||
@ -112,6 +113,16 @@ def define_target_variant_modules(target, variant, registry, modules, config_opt
|
||||
deps = all_module_rules,
|
||||
)
|
||||
|
||||
copy_to_dist_dir(
|
||||
name = "{}_modules_dist".format(kernel_build),
|
||||
data = [":{}_modules".format(kernel_build)],
|
||||
dist_dir = "out/target/product/{}/dlkm/lib/modules/".format(kernel_build),
|
||||
flat = True,
|
||||
wipe_dist_dir = False,
|
||||
allow_duplicate_filenames = False,
|
||||
mode_overrides = {"**/*": "644"},
|
||||
)
|
||||
|
||||
def define_consolidate_gki_modules(target, registry, modules, config_options = []):
|
||||
define_target_variant_modules(target, "consolidate", registry, modules, config_options)
|
||||
define_target_variant_modules(target, "gki", registry, modules, config_options)
|
||||
|
Loading…
Reference in New Issue
Block a user