We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3814427 commit 37dfcb7Copy full SHA for 37dfcb7
1 file changed
crypto/ext4crypt/Android.mk
@@ -14,6 +14,8 @@ ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),)
14
LOCAL_CFLAGS += -DTW_CRYPTO_HAVE_KEYMASTERX
15
LOCAL_C_INCLUDES += external/boringssl/src/include
16
endif
17
+
18
+ifneq ($(TW_CRYPTO_USE_KEYMASTER_V1), true)
19
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
20
LOCAL_CFLAGS += -DUSE_KEYSTORAGE_3 -DHAVE_GATEKEEPER1
21
LOCAL_SRC_FILES += Keymaster3.cpp KeyStorage3.cpp
@@ -31,6 +33,9 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
31
33
else
32
34
LOCAL_SRC_FILES += Keymaster.cpp KeyStorage.cpp
35
36
+else
37
+ LOCAL_SRC_FILES += Keymaster.cpp KeyStorage.cpp
38
+endif # TW_CRYPTO_USE_KEYMASTER_V1
39
40
include $(BUILD_SHARED_LIBRARY)
41
0 commit comments