aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-08-03 00:35:25 -0700
committerDan Willemsen <dwillemsen@google.com>2016-08-10 16:57:03 -0700
commit3bf1a085050c797f4af31353325c9ee69ca6c02f (patch)
tree6cc35038a938a8b195c45f8103152bf5c709ec8c /Android.bp
parent25a4e07df8d4c6f653d69baa16cd22d1f07e89a1 (diff)
downloadbuild_soong-3bf1a085050c797f4af31353325c9ee69ca6c02f.tar.gz
build_soong-3bf1a085050c797f4af31353325c9ee69ca6c02f.tar.bz2
build_soong-3bf1a085050c797f4af31353325c9ee69ca6c02f.zip
Add zip2zip tool to copy zip entries from one file to another
This doesn't do any decompression / recompression, but just copies over the already compressed contents. So it's similar to zip -U, but allows rewriting of the paths. The first expected usecase is to replace img_from_target_files during the build, since it does the equivalent of this: zip2zip -i <target-files.zip> -o <img.zip> OTA/android-info.txt:android-info.txt IMAGES/*:. Except it decompresses and recompresses the images, which takes over a minute instead of a few seconds. Change-Id: I88d0df188635088783223873f78e193272dbdf1c
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index e1a66213..523bec16 100644
--- a/Android.bp
+++ b/Android.bp
@@ -10,6 +10,8 @@
// 2) Build again
//
+subdirs = ["third_party/zip"]
+
bootstrap_go_binary {
name: "soong_build",
deps: [
@@ -195,6 +197,14 @@ bootstrap_go_package {
}
blueprint_go_binary {
+ name: "zip2zip",
+ deps: ["android-archive-zip"],
+ srcs: [
+ "cmd/zip2zip/zip2zip.go",
+ ],
+}
+
+blueprint_go_binary {
name: "soong_jar",
srcs: [
"cmd/soong_jar/soong_jar.go",