diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2017-11-29 19:13:41 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2017-11-29 20:23:50 +0100 |
commit | 31344a3b2f0adbb226134aacf10f70712775b78e (patch) | |
tree | 72c55bb0e98bf1bba5c74b88b57fe7293b413b44 | |
parent | minui: Fix building graphics_overlay.cpp (diff) | |
download | android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar.gz android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar.bz2 android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar.lz android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar.xz android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.tar.zst android_bootable_recovery-31344a3b2f0adbb226134aacf10f70712775b78e.zip |
-rw-r--r-- | crypto/ext4crypt/Android.mk | 15 | ||||
-rw-r--r-- | prebuilt/Android.mk | 14 |
2 files changed, 21 insertions, 8 deletions
diff --git a/crypto/ext4crypt/Android.mk b/crypto/ext4crypt/Android.mk index b32f3841a..af5ab3af0 100644 --- a/crypto/ext4crypt/Android.mk +++ b/crypto/ext4crypt/Android.mk @@ -15,12 +15,19 @@ ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),) LOCAL_C_INCLUDES += external/boringssl/src/include endif ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) - LOCAL_CFLAGS += -DUSE_KEYSTORAGE_3 -DHAVE_LIBKEYUTILS -DHAVE_SYNTH_PWD_SUPPORT -DHAVE_GATEKEEPER1 + LOCAL_CFLAGS += -DUSE_KEYSTORAGE_3 -DHAVE_GATEKEEPER1 LOCAL_SRC_FILES += Keymaster3.cpp KeyStorage3.cpp - LOCAL_SHARED_LIBRARIES += android.hardware.keymaster@3.0 libkeystore_binder libhidlbase libutils libkeyutils libbinder + LOCAL_SHARED_LIBRARIES += android.hardware.keymaster@3.0 libkeystore_binder libhidlbase libutils libbinder LOCAL_SHARED_LIBRARIES += android.hardware.gatekeeper@1.0 - LOCAL_SRC_FILES += Weaver1.cpp - LOCAL_SHARED_LIBRARIES += android.hardware.weaver@1.0 + ifneq ($(wildcard hardware/interfaces/weaver/Android.bp),) + LOCAL_CFLAGS += -DHAVE_SYNTH_PWD_SUPPORT + LOCAL_SRC_FILES += Weaver1.cpp + LOCAL_SHARED_LIBRARIES += android.hardware.weaver@1.0 + endif + ifneq ($(wildcard system/core/libkeyutils/Android.bp),) + LOCAL_CFLAGS += -DHAVE_LIBKEYUTILS + LOCAL_SHARED_LIBRARIES += libkeyutils + endif else LOCAL_SRC_FILES += Keymaster.cpp KeyStorage.cpp endif diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk index 4e180105c..02bb49afa 100644 --- a/prebuilt/Android.mk +++ b/prebuilt/Android.mk @@ -195,10 +195,14 @@ ifeq ($(TW_INCLUDE_CRYPTO), true) RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/servicemanager RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.wifi.keystore@1.0.so - RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so - RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so + ifneq ($(wildcard system/keymaster/keymaster_stl.cpp),) + RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so + RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so + endif RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libwifikeystorehal.so - RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so + ifneq ($(wildcard hardware/interfaces/weaver/Android.bp),) + RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so + endif RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware_legacy.so else RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster1.so @@ -300,7 +304,9 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so - RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so + ifneq ($(wildcard system/core/libkeyutils/Android.bp),) + RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so + endif endif TWRP_AUTOGEN := $(intermediates)/teamwin |