liblibfdt: Add no_std variant for libfdt_baremetal
Add a second rlib that wraps the newly-created libfdt_baremetal
cc_library to ensure that baremetal clients (using the *_nostd library
variants) don't use the non-_baremetal C library. This allows baremetal
code to be compiled with a different set of Clang flags.
Test: m pvmfw
Change-Id: I71b50eeafe257fa6086805ca5a6b4c0de935bb32
diff --git a/libs/fdtpci/Android.bp b/libs/fdtpci/Android.bp
index e12c24f..d7a5da3 100644
--- a/libs/fdtpci/Android.bp
+++ b/libs/fdtpci/Android.bp
@@ -11,7 +11,7 @@
defaults: ["avf_build_flags_rust"],
srcs: ["src/lib.rs"],
rustlibs: [
- "liblibfdt",
+ "liblibfdt_nostd",
"liblog_rust_nostd",
"libvirtio_drivers",
],