summaryrefslogtreecommitdiffstats
path: root/keymaster/Android.mk
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-01-09 13:59:45 -0800
committerKenny Root <kroot@google.com>2012-03-27 20:08:01 -0700
commit7d863c7f2f5f89205756af35989268a81ca5c581 (patch)
tree397ebcdf939fec683ca5db30f7df3ea7bf169a54 /keymaster/Android.mk
parent01a204140470ffc5fb8428fa80abeb0c89a3e202 (diff)
downloaddevice_samsung_tuna-7d863c7f2f5f89205756af35989268a81ca5c581.zip
device_samsung_tuna-7d863c7f2f5f89205756af35989268a81ca5c581.tar.gz
device_samsung_tuna-7d863c7f2f5f89205756af35989268a81ca5c581.tar.bz2
Add implementation of keymaster for tuna
This implements the hardware crypto for tuna devices based on libtf_crypto_tee which means it should be compatible with all OMAP4 devices. Change-Id: I17667214f7ba132428dee829078d990fde8447d1
Diffstat (limited to 'keymaster/Android.mk')
-rw-r--r--keymaster/Android.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/keymaster/Android.mk b/keymaster/Android.mk
new file mode 100644
index 0000000..885812f
--- /dev/null
+++ b/keymaster/Android.mk
@@ -0,0 +1,43 @@
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ifeq ($(TARGET_BOARD_PLATFORM),omap4)
+ifeq ($(BOARD_USES_SECURE_SERVICES),true)
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := keystore.tuna
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+
+LOCAL_SRC_FILES := \
+ keymaster_tuna.cpp
+
+LOCAL_C_INCLUDES := \
+ libcore/include \
+ external/openssl/include \
+ hardware/ti/omap4xxx/security/tf_sdk/include
+
+LOCAL_CFLAGS := -fvisibility=hidden -Wall -Werror
+
+LOCAL_SHARED_LIBRARIES := libcutils liblog libcrypto libtf_crypto_sst
+
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_SHARED_LIBRARY)
+
+endif # ifeq ($(BOARD_USES_SECURE_SERVICES),true)
+endif # ifeq ($(TARGET_BOARD_PLATFORM),omap4)