Snap for 5364434 from 84e267cb0aa88997f314fd2b9aa97354b036592d to qt-release
Change-Id: I20bbb79fd00c80e165835ab3d85d8ac99604cbfa
diff --git a/Android.bp b/Android.bp
index 64774a5..7245161 100644
--- a/Android.bp
+++ b/Android.bp
@@ -74,12 +74,27 @@
],
}
-cc_prebuilt_binary {
+python_binary_host {
name: "avbtool",
- srcs: ["avbtool"],
+ srcs: [":avbtool_py"],
+ main: "avbtool.py",
required: ["fec"],
- device_supported: false,
- host_supported: true,
+ version: {
+ py2: {
+ enabled: true,
+ embedded_launcher: true,
+ },
+ py3: {
+ enabled: false,
+ },
+ },
+}
+
+genrule {
+ name: "avbtool_py",
+ srcs: ["avbtool",],
+ out: ["avbtool.py"],
+ cmd: "cp $(in) $(out)",
}
// Build libavb - this is a static library that depends