summaryrefslogtreecommitdiff
path: root/kleaf/docs/api_reference/kernel.md
diff options
context:
space:
mode:
authorJaehyoung Choi <jkkkkk.choi@samsung.com>2024-03-07 16:17:25 +0900
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-03-19 23:20:28 +0000
commit7bceb21ce4aa772d733a6172bde0bf9b7bc197d4 (patch)
tree1fa1f3c92fc90f95132c7fe75b9609762145f682 /kleaf/docs/api_reference/kernel.md
parent5003de911644e1e8d04d6b0c7f4b027825cb5a21 (diff)
downloadbuild-7bceb21ce4aa772d733a6172bde0bf9b7bc197d4.tar.gz
kleaf: Add outs attr in kernel_modules_install
kernel_modules_install performs depmod on all modules. However, since the result of the depmod can't be obtained, an outs attribute was created and changed so that it can be obtained using copy_to_dist_dir. To avoid being abused, output is limited to modules.* files _OUT_ALLOWLIST = [ "modules.dep", "modules.alias", "modules.builtin", "modules.symbols", "modules.softdep", ] It can be used as below: kernel_modules_install( name = "foo_modules_install", kernel_modules = [":foo_module_list"], outs = [ "modules.dep", "modules.alias" ], ) copy_to_dist_dir( name = "foo_dist", data = [ ":foo_modules_install", ], ) Test: bazel build //common:kernel_aarch64 Bug: 327533166 Change-Id: Ia9efb26183553f72b5c27b8b0e1564702934b86a Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com> Signed-off-by: Yifan Hong <elsk@google.com>
Diffstat (limited to 'kleaf/docs/api_reference/kernel.md')
0 files changed, 0 insertions, 0 deletions