Merge "Add host_supported to some Keymaster libraries."
diff --git a/Android.bp b/Android.bp
index 3ce107c..fb69928 100644
--- a/Android.bp
+++ b/Android.bp
@@ -54,6 +54,14 @@
],
stl: "none",
export_include_dirs: ["include"],
+ host_supported: true,
+ target: {
+ host: {
+ clang_cflags: [
+ "-fno-rtti", // TODO(b/156427382): Remove workaround when possible.
+ ],
+ },
+ },
}
// libkeymaster_portable contains almost everything needed for a keymaster
@@ -124,7 +132,15 @@
// weakly defines the subset of stl symbols required for this library to work
// and which are also available in the trusty context.
stl: "none",
+ host_supported: true,
export_include_dirs: ["include"],
+ target: {
+ host: {
+ clang_cflags: [
+ "-fno-rtti", // TODO(b/156427382): Remove workaround when possible.
+ ],
+ },
+ },
}
// libsoftkeymaster provides a software-based keymaster HAL implementation.
@@ -172,6 +188,7 @@
"libkeymaster_portable",
],
+ host_supported: true,
export_include_dirs: ["include"],
}
@@ -193,7 +210,6 @@
"libcutils",
"libbase",
],
-
export_include_dirs: ["include"],
}