-rw-r--r-- | Android.mk | 20 | ||||
-rw-r--r-- | GKPModule.cpp (renamed from module.cpp) | 26 | ||||
-rw-r--r-- | soft/SoftGateKeeper.h | 182 | ||||
-rw-r--r-- | soft/SoftGateKeeperDevice.cpp (copied from trusty_gatekeeper.cpp) | 147 | ||||
-rw-r--r-- | soft/SoftGateKeeperDevice.h | 93 | ||||
-rw-r--r-- | trusty/gatekeeper_ipc.h (renamed from gatekeeper_ipc.h) | 0 | ||||
-rw-r--r-- | trusty/trusty_gatekeeper.cpp (renamed from trusty_gatekeeper.cpp) | 0 | ||||
-rw-r--r-- | trusty/trusty_gatekeeper.h (renamed from trusty_gatekeeper.h) | 0 | ||||
-rw-r--r-- | trusty/trusty_gatekeeper_ipc.c (renamed from trusty_gatekeeper_ipc.c) | 0 | ||||
-rw-r--r-- | trusty/trusty_gatekeeper_ipc.h (renamed from trusty_gatekeeper_ipc.h) | 0 |
10 files changed, 354 insertions, 114 deletions
@@ -29,9 +29,16 @@ LOCAL_MODULE := gatekeeper.amlogic LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SRC_FILES := \ - module.cpp \ - trusty_gatekeeper_ipc.c \ - trusty_gatekeeper.cpp + GKPModule.cpp \ + trusty/trusty_gatekeeper_ipc.c \ + trusty/trusty_gatekeeper.cpp \ + soft/SoftGateKeeperDevice.cpp + +LOCAL_STATIC_LIBRARIES := libscrypt_static +LOCAL_C_INCLUDES := \ + external/boringssl/src/include/ \ + external/scrypt/lib/crypto \ + system/core/base/include LOCAL_CLFAGS = -fvisibility=hidden -Wall -Werror @@ -39,8 +46,13 @@ LOCAL_SHARED_LIBRARIES := \ libgatekeeper \ liblog \ libcutils \ - libtrusty + libtrusty \ + libcrypto LOCAL_MODULE_TAGS := optional +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) +LOCAL_PROPRIETARY_MODULE := true +endif + include $(BUILD_SHARED_LIBRARY) |