最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Soong: How to Copy Prebuilt Binaries and Libraries into the System - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论