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

Commit 189d424c authored by Pete Bentley's avatar Pete Bentley
Browse files

Link libcrypto dynamically for recovery unit tests.

Tested by running recovery_unit_test as described in
https://android.googlesource.com/platform/bootable/recovery/+/refs/heads/master/README.md

Attempted to build and boot a recovery image with the
same change to confirm it still works, but
m recoveryimage-nodeps
fails for me.

Bug: 140940227
Test: See above
Change-Id: I00545968a0e5684823e505f2ddbe7e993319b5d4
parent 4878f6a3
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -51,12 +51,15 @@ cc_library_static {
        "libbase",
        "libbspatch",
        "libbz",
        "libcrypto",
        "libedify",
        "libotautil",
        "libz",
    ],

    shared_libs: [
        "libcrypto",
    ],

    target: {
        darwin: {
            enabled: false,
@@ -78,10 +81,13 @@ cc_library_static {
    static_libs: [
        "libapplypatch",
        "libbase",
        "libcrypto",
        "libedify",
        "libotautil",
    ],

    shared_libs: [
        "libcrypto",
    ],
}

cc_binary {
+1 −1
Original line number Diff line number Diff line
@@ -102,11 +102,11 @@ cc_test {
        "libfusesideload",
        "libotautil",
        "libadbd",
        "libcrypto",
    ],

    shared_libs: [
        "libbase",
        "libcrypto",
        "libcutils",
        "liblog",
    ],
+0 −1
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ libapplypatch_static_libs = [
    "libbase",
    "libbrotli",
    "libbz",
    "libcrypto",
    "libz",
    "libziparchive",
]
+4 −1
Original line number Diff line number Diff line
@@ -41,11 +41,14 @@ cc_defaults {
        "libziparchive",
        "libz",
        "libbase",
        "libcrypto",
        "libcrypto_utils",
        "libcutils",
        "libutils",
    ],

    shared_libs: [
        "libcrypto",
    ],
}

cc_defaults {