Switch mkenvimage to new one supported by cf team
mkenvimage usage is being dropped since it's a host dependency on uboot
tools that's being cut. It's being replaced with a mkenvimage_slim
binary that's built from source out of the cuttlefish repo.
Bug: 199211719
Test: Treehugger
Change-Id: Ic441cb1a52c0d30c69524effbc32eea2cbd7760a
diff --git a/microdroid/Android.bp b/microdroid/Android.bp
index 4901351..9d7e4f9 100644
--- a/microdroid/Android.bp
+++ b/microdroid/Android.bp
@@ -527,7 +527,7 @@
genrule {
name: "microdroid_uboot_env_gen",
tools: [
- "mkenvimage_host",
+ "mkenvimage_slim",
"avbtool",
],
srcs: [
@@ -535,7 +535,7 @@
":microdroid_sign_key",
],
out: ["output.img"],
- cmd: "$(location mkenvimage_host) -s 4096 -o $(out) $(location uboot-env.txt) && " +
+ cmd: "$(location mkenvimage_slim) -output_path $(out) -input_path $(location uboot-env.txt) && " +
"$(location avbtool) add_hash_footer " +
"--algorithm SHA256_RSA4096 " +
"--partition_name uboot_env " +