bpfloader-rs: implement rust native logging
Add a logger to enable rust native logging to kmsg on errors (and
therefore also to the serial port). Because bpfloader runs early in the
init process, errors could cause the boot to fail and therefore we
require the messages to go to the serial port to debug.
Bug: 359646531
Test: manual/TH
Change-Id: If3c5963fd17dea101769b844b970c7e2d6dd93c9
Signed-off-by: Neill Kapron <nkapron@google.com>
diff --git a/loader/Android.bp b/loader/Android.bp
index 1e68f92..c9ea5d0 100644
--- a/loader/Android.bp
+++ b/loader/Android.bp
@@ -113,6 +113,8 @@
],
rustlibs: [
"libbpf_android_bindgen",
+ "libandroid_logger",
+ "liblog_rust",
],
required: [
"timeInState.o",