Add Android.bp am: 0b4c84e037

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/gdbstub_arch/+/1783796

Change-Id: I0c031997a82ead1900d8e7caa39eb8a0b60ba5c0
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..66bcbee
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,42 @@
+// This file is generated by cargo2android.py --device --run --tests.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+rust_defaults {
+    name: "gdbstub_arch_defaults",
+    crate_name: "gdbstub_arch",
+    srcs: ["src/lib.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    edition: "2018",
+    rustlibs: [
+        "libgdbstub",
+        "libnum_traits",
+    ],
+}
+
+rust_test_host {
+    name: "gdbstub_arch_host_test_src_lib",
+    defaults: ["gdbstub_arch_defaults"],
+    test_options: {
+        unit_test: true,
+    },
+}
+
+rust_test {
+    name: "gdbstub_arch_device_test_src_lib",
+    defaults: ["gdbstub_arch_defaults"],
+}
+
+rust_library {
+    name: "libgdbstub_arch",
+    host_supported: true,
+    crate_name: "gdbstub_arch",
+    srcs: ["src/lib.rs"],
+    edition: "2018",
+    rustlibs: [
+        "libgdbstub",
+        "libnum_traits",
+    ],
+}
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..1e91e7e
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,8 @@
+// Generated by update_crate_tests.py for tests that depend on this crate.
+{
+  "presubmit": [
+    {
+      "name": "gdbstub_arch_device_test_src_lib"
+    }
+  ]
+}