From 735c5a12013c1fd5005fc24c803856804c78db0d Mon Sep 17 00:00:00 2001 From: HONG Yifan Date: Wed, 18 Sep 2024 17:17:17 -0700 Subject: [PATCH] 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 --- BUILD.bazel | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 0c1d8a65f275..b155ee155942 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -831,9 +831,9 @@ kernel_images( kernel_modules_install = ":db845c_modules_install", ) -copy_to_dist_dir( - name = "db845c_dist", - data = [ +pkg_files( + name = "db845c_dist_files", + srcs = [ ":db845c", ":db845c_images", ":db845c_modules_install", @@ -843,9 +843,14 @@ copy_to_dist_dir( ":kernel_aarch64_modules", ":kernel_aarch64_additional_artifacts", ], - dist_dir = "out/db845/dist", - flat = True, - log = "info", + strip_prefix = strip_prefix.files_only(), + visibility = ["//visibility:private"], +) + +pkg_install( + name = "db845c_dist", + srcs = [":db845c_dist_files"], + destdir = "out/db845/dist", ) _ROCKPI4_MODULE_OUTS = [