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 <elsk@google.com>
This commit is contained in:
HONG Yifan
2024-10-04 18:50:31 -07:00
committed by Yifan Hong
parent 2be286b89b
commit 6260c417db
+5 -5
View File
@@ -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(),