Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b35acc1f authored by Herbert Xue's avatar Herbert Xue
Browse files

Add libs into the otatools.zip

The libs modules are from $(INTERNAL_OTATOOLS_MODULES_WITH_DEPS).

Bug: 395988167
Test: m dist otatools-package-temp
Change-Id: I8f8091f12f72e68c9873a3f9504c21d192828958
parent cdbe6395
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
@@ -45,6 +45,55 @@ genrule {
    out: ["otatools_package_cert_files.zip"],
}

cc_genrule {
    name: "otatools_package_dep_libs",
    host_supported: true,
    device_supported: false,
    compile_multilib: "first",
    tools: ["soong_zip"],
    cmd: "mkdir -p $(genDir)/$$CC_MULTILIB &&" +
        "cp $(in) $(genDir)/$$CC_MULTILIB && " +
        "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/$$CC_MULTILIB",
    srcs: [
        ":libbase",
        ":libbrillo",
        ":libbrillo-stream",
        ":libc++",
        "//external/libchrome:libchrome",
        ":libconscrypt_openjdk_jni",
        ":libcrypto",
        ":libcrypto_utils",
        ":libcutils",
        ":libevent",
        ":libext2_blkid",
        ":libext2_com_err",
        ":libext2_e2p",
        ":libext2_quota",
        ":libext2_uuid",
        ":libext2fs",
        ":libext4_utils",
        ":libfec",
        ":libhidl-gen-utils",
        ":libhidlmetadata",
        ":libicui18n",
        ":libicuuc",
        ":liblog",
        ":liblp",
        ":liblz4",
        ":libpcre2",
        ":libprocessgroup",
        ":libprotobuf-cpp-lite",
        ":libselinux",
        ":libsparse",
        ":libsqlite",
        ":libsquashfs_utils",
        ":libssl",
        ":libz",
        ":libziparchive",
    ],
    out: ["otatools_package_dep_libs.zip"],
}

java_genrule_host {
    name: "otatools_package",
    tools: ["merge_zips"],
@@ -53,6 +102,7 @@ java_genrule_host {
    srcs: [
        ":otatools_package_cert_files",
        ":otatools_package_dep_jars",
        ":otatools_package_dep_libs",
        ":otatools_package_releasetools",
    ],
    // TODO: Rename as "otatools.zip" when the rest files are ready.