From 6260c417db6d0cf9ee84f916f9d9ac9fa02c59e9 Mon Sep 17 00:00:00 2001 From: HONG Yifan Date: Fri, 4 Oct 2024 18:50:31 -0700 Subject: [PATCH] ANDROID: rockpi4 use initramfs() directly. No need to use the super big and deprecated kernel_images() macro, as all we need here is to build initramfs. Bug: 368689504 Change-Id: I00ac102a735ac3ada3619cae7817f0cb87811daf Signed-off-by: HONG Yifan --- BUILD.bazel | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index e1ebc19bd022..e338eb691f14 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -18,6 +18,7 @@ load( "checkpatch", "ddk_headers", "ddk_headers_archive", + "initramfs", "kernel_build", "kernel_compile_commands", "kernel_images", @@ -972,18 +973,17 @@ kernel_modules_install( kernel_build = ":rockpi4", ) -kernel_images( - name = "rockpi4_images", - build_initramfs = True, - kernel_build = ":rockpi4", +initramfs( + name = "rockpi4_initramfs", kernel_modules_install = ":rockpi4_modules_install", + visibility = ["//visibility:private"], ) pkg_files( name = "rockpi4_dist_files", srcs = [ ":rockpi4", - ":rockpi4_images", + ":rockpi4_initramfs", ":rockpi4_modules_install", ], strip_prefix = strip_prefix.files_only(),