summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2019-04-24 23:09:07 +0200
committerDees Troy <dees_troy@teamw.in>2019-05-24 22:39:12 +0200
commitabf1fb00862cec01d457972419fbff4b95cc6300 (patch)
tree33d00f57c1f7c7783eca85c9a383db43d279957d /crypto
parentDigest: Create digest for each subpartition and not just the first. (diff)
downloadandroid_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar.gz
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar.bz2
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar.lz
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar.xz
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.tar.zst
android_bootable_recovery-abf1fb00862cec01d457972419fbff4b95cc6300.zip
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ext4crypt/Android.mk6
-rw-r--r--crypto/scrypt/Scrypt.mk12
2 files changed, 15 insertions, 3 deletions
diff --git a/crypto/ext4crypt/Android.mk b/crypto/ext4crypt/Android.mk
index 8e77cdf30..0c6ef5b56 100644
--- a/crypto/ext4crypt/Android.mk
+++ b/crypto/ext4crypt/Android.mk
@@ -45,7 +45,11 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
LOCAL_SHARED_LIBRARIES += libkeyutils
endif
endif
- LOCAL_REQUIRED_MODULES := keystore_auth
+ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0)
+ LOCAL_REQUIRED_MODULES := keystore_auth
+ else
+ LOCAL_ADDITIONAL_DEPENDENCIES := keystore_auth
+ endif
else
#7.x rules
LOCAL_SRC_FILES += Ext4Crypt.cpp Keymaster.cpp KeyStorage.cpp
diff --git a/crypto/scrypt/Scrypt.mk b/crypto/scrypt/Scrypt.mk
index baa41eca6..67e73c80f 100644
--- a/crypto/scrypt/Scrypt.mk
+++ b/crypto/scrypt/Scrypt.mk
@@ -27,7 +27,11 @@ LOCAL_CFLAGS += $(target_c_flags)
LOCAL_C_INCLUDES += $(target_c_includes) $(commands_recovery_local_path)/crypto/scrypt/lib/util
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE:= libscrypttwrp_static
-LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0)
+ LOCAL_REQUIRED_MODULES := $(local_additional_dependencies)
+else
+ LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
+endif
include $(BUILD_STATIC_LIBRARY)
########################################
@@ -42,5 +46,9 @@ LOCAL_C_INCLUDES += $(host_c_includes) $(commands_recovery_local_path)/crypto/sc
LOCAL_LDLIBS += -ldl
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE:= libscrypttwrp_static
-LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0)
+ LOCAL_REQUIRED_MODULES := $(local_additional_dependencies)
+else
+ LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
+endif
include $(BUILD_HOST_STATIC_LIBRARY)