diff options
author | Alice Wang <aliceywang@google.com> | 2023-02-02 22:25:37 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-02-02 22:25:37 +0000 |
commit | 36fcd979487be062bd63c6217af9f2a3e1ac796f (patch) | |
tree | c0b73cba258b2aaa243d3d56792608110cfdf756 | |
parent | 1879c31da93285d070dd99f7a126916075c7d6e4 (diff) | |
parent | 3c4dadae56ebdf066d4e2812ec47138b66273503 (diff) | |
download | avb-36fcd979487be062bd63c6217af9f2a3e1ac796f.tar.gz |
Add non debug libavb that silences debug message printing am: f397cc4246 am: f1a76412bf am: 3c4dadae56
Original change: https://android-review.googlesource.com/c/platform/external/avb/+/2411890
Change-Id: Ibbafea92eda6c20b1b49b670ae1654f52060211b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -148,10 +148,8 @@ python_binary_host { compile_multilib: "first", } -// Build libavb - this is a static library that depends -// on only libc and libcrypto, but no other dependencies. -cc_library_static { - name: "libavb", +cc_defaults { + name: "libavb_defaults", defaults: [ "avb_defaults", "avb_sources", @@ -175,6 +173,23 @@ cc_library_static { }, } +// Build libavb - this is a static library that depends +// on only libc and libcrypto, but no other dependencies. +cc_library_static { + name: "libavb", + defaults: ["libavb_defaults"], +} + +// Build libavb_non_debug - this is a static library that depends +// on only libc and libcrypto, but no other dependencies. +// The non debug version of the library doesn't print any debug +// message. +cc_library_static { + name: "libavb_non_debug", + defaults: ["libavb_defaults"], + cflags: ["-UAVB_ENABLE_DEBUG"], +} + // Build libavb_user for the target - in addition to libavb, it // includes libavb_ab, libavb_user and also depends on libbase and // libfs_mgr. |