recovery: Refactor logging code into logging.cpp
Move common logging related functions to
rotate_logs.cpp, and rename that to logging.cpp.
Test: Recovery works
Bug: 78793464
Merged-In: I00f20a79a296680122b8437d54a87897c5cb2fc7
Change-Id: I00f20a79a296680122b8437d54a87897c5cb2fc7
diff --git a/Android.bp b/Android.bp
index 9ad961d..22c90bd 100644
--- a/Android.bp
+++ b/Android.bp
@@ -89,8 +89,8 @@
],
srcs: [
+ "logging.cpp",
"recovery-persist.cpp",
- "rotate_logs.cpp",
],
shared_libs: [
@@ -98,6 +98,10 @@
"liblog",
],
+ static_libs: [
+ "libotautil",
+ ],
+
init_rc: [
"recovery-persist.rc",
],
@@ -112,8 +116,8 @@
],
srcs: [
+ "logging.cpp",
"recovery-refresh.cpp",
- "rotate_logs.cpp",
],
shared_libs: [
@@ -121,6 +125,10 @@
"liblog",
],
+ static_libs: [
+ "libotautil",
+ ],
+
init_rc: [
"recovery-refresh.rc",
],