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:
+5
-5
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user