Regenerate Android.bp patch with correct context so it applies cleanly
Test: treehugger
Change-Id: I4c3ff5dd496ab426738cac56415b6e3aefc49047
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index 2a063c6..d2c3c5b 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -1,8 +1,15 @@
diff --git a/Android.bp b/Android.bp
-index e2b5dd5..6132b98 100644
+index 81021c8..916b74c 100644
--- a/Android.bp
+++ b/Android.bp
-@@ -30,8 +30,8 @@ rust_library_rlib {
+@@ -25,22 +25,22 @@ license {
+ rust_library_rlib {
+ name: "libvirtio_drivers",
+ crate_name: "virtio_drivers",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.7.1",
+ crate_root: "src/lib.rs",
+ edition: "2018",
features: ["alloc"],
rustlibs: [
"libbitflags",
@@ -13,7 +20,21 @@
],
apex_available: [
"//apex_available:platform",
-@@ -58,6 +58,6 @@ rust_test {
+ "//apex_available:anyapex",
+ ],
+ prefer_rlib: true,
+ no_stdlibs: true,
+ stdlibs: [
+ "libcompiler_builtins.rust_sysroot",
+ "libcore.rust_sysroot",
+@@ -53,13 +53,13 @@ rust_test {
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.7.1",
+ crate_root: "src/lib.rs",
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2018",
+ features: ["alloc"],
rustlibs: [
"libbitflags",
"liblog_rust",