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

Commit 735c5a1

Browse files
HONG YifanTreehugger Robot
authored andcommitted
ANDROID: db845c use pkg_install().
copy_to_dist_dir is going to be deprecated soon. Switch to pkg_install(). The only noticable difference is that, if a user specifies an alternative distribution directory, they must use --destdir, not --dist_dir. Bug: 331730853 Change-Id: I81fd5bda823cc7bf6435cfbbb4af9d7c25a949df Signed-off-by: HONG Yifan <[email protected]>
1 parent d472882 commit 735c5a1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

BUILD.bazel

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,9 @@ kernel_images(
831831
kernel_modules_install = ":db845c_modules_install",
832832
)
833833

834-
copy_to_dist_dir(
835-
name = "db845c_dist",
836-
data = [
834+
pkg_files(
835+
name = "db845c_dist_files",
836+
srcs = [
837837
":db845c",
838838
":db845c_images",
839839
":db845c_modules_install",
@@ -843,9 +843,14 @@ copy_to_dist_dir(
843843
":kernel_aarch64_modules",
844844
":kernel_aarch64_additional_artifacts",
845845
],
846-
dist_dir = "out/db845/dist",
847-
flat = True,
848-
log = "info",
846+
strip_prefix = strip_prefix.files_only(),
847+
visibility = ["//visibility:private"],
848+
)
849+
850+
pkg_install(
851+
name = "db845c_dist",
852+
srcs = [":db845c_dist_files"],
853+
destdir = "out/db845/dist",
849854
)
850855

851856
_ROCKPI4_MODULE_OUTS = [

0 commit comments

Comments
 (0)