admin管理员组

文章数量:1418637

I want to install OpenRc into my system. So I put some folders (sbin, lib64, ...) in prebuilts/openrc/. Then I added prebuilts/openrc/Android.bp to have them installed in /system_ext.

cc_prebuilt_binary {
    name: "openrc-init",
    srcs: ["sbin/openrc-init"],
    shared_libs: ["libeinfo", "librc"],
    check_elf_files: false,
    installable: true,
}

cc_prebuilt_library_shared {
    name: "libeinfo",
    stem: "libeinfo",
    srcs: ["lib64/libeinfo.so.1"],
    check_elf_files: false,
    installable: true,
}

cc_prebuilt_library_shared {
    name: "librc",
    stem: "librc",
    srcs: ["lib64/librc.so.1"],
    check_elf_files: false,
    installable: true,
}

However, I want to copy the full folder, instead of copying them separately. How can I solve the problem? And, is this method even correct?

Thank you.

本文标签: androidSoong How to Copy Prebuilt Binaries and Libraries into the SystemStack Overflow