summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp1
-rw-r--r--scrypt.config8
-rw-r--r--sources.bp8
3 files changed, 17 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index f3aa4d0..ef9b8a0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,6 +22,7 @@ cc_library_static {
shared_libs: ["libcrypto"],
sdk_version: "9",
host_supported: true,
+ vendor_available: true,
}
cc_test {
diff --git a/scrypt.config b/scrypt.config
index 8099182..f00a3f6 100644
--- a/scrypt.config
+++ b/scrypt.config
@@ -65,6 +65,14 @@ SCRYPT_SOURCES_EXCLUDES_arm_neon="\
lib/crypto/crypto_scrypt-ref.c \
"
+SCRYPT_SOURCES_arm64="\
+lib/crypto/crypto_scrypt-neon.c \
+"
+
+SCRYPT_SOURCES_EXCLUDES_arm64="\
+lib/crypto/crypto_scrypt-ref.c \
+"
+
SCRYPT_SOURCES_mips="\
"
diff --git a/sources.bp b/sources.bp
index 39216b1..a2ba3f4 100644
--- a/sources.bp
+++ b/sources.bp
@@ -50,6 +50,14 @@ cc_defaults {
],
},
},
+ arm64: {
+ srcs: [
+ "lib/crypto/crypto_scrypt-neon.c",
+ ],
+ exclude_srcs: [
+ "lib/crypto/crypto_scrypt-ref.c",
+ ],
+ },
x86: {
srcs: [
"lib/crypto/crypto_scrypt-sse.c",