aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-06-16 14:33:13 -0700
committerElliott Hughes <enh@google.com>2017-06-21 16:49:34 -0700
commitf56c789601b4db04080e307a94d2bdb6da3162f8 (patch)
tree4b7fada96893a1046f3161467b3b8c7cedbd8cb0
parentf330d702e42ddba309f54e5a48f2274bf8a0bfdd (diff)
downloadxz-embedded-f56c789601b4db04080e307a94d2bdb6da3162f8.tar.gz
Build libxz from external/xz-embedded.
Also add the various bits of Android tree detritus. Bug: http://b/32846435 Test: builds Change-Id: I520a6b37d4f66078b6d94f91f1208a84c2d5d9c4
-rw-r--r--Android.bp13
-rw-r--r--MODULE_LICENSE_PUBLIC_DOMAIN0
l---------NOTICE1
-rw-r--r--README.version2
4 files changed, 16 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4572804
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,13 @@
+cc_library_static {
+ name: "libxz",
+ host_supported: true,
+ srcs: [
+ "linux/lib/xz/xz_crc32.c",
+ "linux/lib/xz/xz_dec_bcj.c",
+ "linux/lib/xz/xz_dec_lzma2.c",
+ "linux/lib/xz/xz_dec_stream.c",
+ ],
+ include_dirs: ["external/xz-embedded/userspace/"],
+ cflags: ["-DXZ_DEC_X86", "-DXZ_DEC_ARM", "-DXZ_DEC_ARMTHUMB"],
+ export_include_dirs: ["linux/include/linux/"],
+}
diff --git a/MODULE_LICENSE_PUBLIC_DOMAIN b/MODULE_LICENSE_PUBLIC_DOMAIN
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_PUBLIC_DOMAIN
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..d24842f
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+COPYING \ No newline at end of file
diff --git a/README.version b/README.version
new file mode 100644
index 0000000..a9aaf07
--- /dev/null
+++ b/README.version
@@ -0,0 +1,2 @@
+URL: https://git.tukaani.org/?p=xz-embedded.git
+Version: 79b68de5657beecfad575578a7181cf6fca869cb