summaryrefslogtreecommitdiffstats
path: root/trusty
diff options
context:
space:
mode:
authorSteven Moreland2017-05-05 19:16:10 -0500
committerSteven Moreland2017-05-08 11:47:26 -0500
commitc5c1937b589b03c7743b37a24e5be752e41a7c92 (patch)
treea1cb362b7d2cef4fa02ae43f25739fe90dad879a /trusty
parenta716ad6e0bcd461154bc4bdb411151715970ba72 (diff)
downloadplatform-system-core-c5c1937b589b03c7743b37a24e5be752e41a7c92.tar.gz
platform-system-core-c5c1937b589b03c7743b37a24e5be752e41a7c92.tar.xz
platform-system-core-c5c1937b589b03c7743b37a24e5be752e41a7c92.zip
trusty*: Android.mk -> Android.bp
Test: links Bug: 37512442 Change-Id: I86bcdcfffbbd81dedb921612bd2d21ea4aabaeb1
Diffstat (limited to 'trusty')
-rw-r--r--trusty/Android.bp3
-rw-r--r--trusty/gatekeeper/Android.bp46
-rw-r--r--trusty/gatekeeper/Android.mk46
-rw-r--r--trusty/keymaster/Android.bp68
-rw-r--r--trusty/keymaster/Android.mk69
-rw-r--r--trusty/nvram/Android.bp61
-rw-r--r--trusty/nvram/Android.mk43
7 files changed, 178 insertions, 158 deletions
diff --git a/trusty/Android.bp b/trusty/Android.bp
index 9681488d8..386fbe623 100644
--- a/trusty/Android.bp
+++ b/trusty/Android.bp
@@ -1,4 +1,7 @@
1subdirs = [ 1subdirs = [
2 "gatekeeper",
3 "keymaster",
2 "libtrusty", 4 "libtrusty",
5 "nvram",
3 "storage/*", 6 "storage/*",
4] 7]
diff --git a/trusty/gatekeeper/Android.bp b/trusty/gatekeeper/Android.bp
new file mode 100644
index 000000000..a9566a17e
--- /dev/null
+++ b/trusty/gatekeeper/Android.bp
@@ -0,0 +1,46 @@
1//
2// Copyright (C) 2015 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// WARNING: Everything listed here will be built on ALL platforms,
18// including x86, the emulator, and the SDK. Modules must be uniquely
19// named (liblights.panda), and must build everywhere, or limit themselves
20// to only building on ARM if they include assembly. Individual makefiles
21// are responsible for having their own logic, for fine-grained control.
22
23cc_library_shared {
24 name: "gatekeeper.trusty",
25
26 relative_install_path: "hw",
27
28 srcs: [
29 "module.cpp",
30 "trusty_gatekeeper_ipc.c",
31 "trusty_gatekeeper.cpp",
32 ],
33
34 cflags: [
35 "-fvisibility=hidden",
36 "-Wall",
37 "-Werror",
38 ],
39
40 shared_libs: [
41 "libgatekeeper",
42 "liblog",
43 "libcutils",
44 "libtrusty",
45 ],
46}
diff --git a/trusty/gatekeeper/Android.mk b/trusty/gatekeeper/Android.mk
deleted file mode 100644
index 3982c8fd9..000000000
--- a/trusty/gatekeeper/Android.mk
+++ /dev/null
@@ -1,46 +0,0 @@
1#
2# Copyright (C) 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# WARNING: Everything listed here will be built on ALL platforms,
18# including x86, the emulator, and the SDK. Modules must be uniquely
19# named (liblights.panda), and must build everywhere, or limit themselves
20# to only building on ARM if they include assembly. Individual makefiles
21# are responsible for having their own logic, for fine-grained control.
22
23LOCAL_PATH:= $(call my-dir)
24
25include $(CLEAR_VARS)
26
27LOCAL_MODULE := gatekeeper.trusty
28
29LOCAL_MODULE_RELATIVE_PATH := hw
30
31LOCAL_SRC_FILES := \
32 module.cpp \
33 trusty_gatekeeper_ipc.c \
34 trusty_gatekeeper.cpp
35
36LOCAL_CLFAGS = -fvisibility=hidden -Wall -Werror
37
38LOCAL_SHARED_LIBRARIES := \
39 libgatekeeper \
40 liblog \
41 libcutils \
42 libtrusty
43
44LOCAL_MODULE_TAGS := optional
45
46include $(BUILD_SHARED_LIBRARY)
diff --git a/trusty/keymaster/Android.bp b/trusty/keymaster/Android.bp
new file mode 100644
index 000000000..6b9d72359
--- /dev/null
+++ b/trusty/keymaster/Android.bp
@@ -0,0 +1,68 @@
1//
2// Copyright (C) 2015 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// WARNING: Everything listed here will be built on ALL platforms,
18// including x86, the emulator, and the SDK. Modules must be uniquely
19// named (liblights.panda), and must build everywhere, or limit themselves
20// to only building on ARM if they include assembly. Individual makefiles
21// are responsible for having their own logic, for fine-grained control.
22
23// trusty_keymaster is a binary used only for on-device testing. It
24// runs Trusty Keymaster through a basic set of operations with RSA
25// and ECDSA keys.
26cc_binary {
27 name: "trusty_keymaster_tipc",
28 srcs: [
29 "trusty_keymaster_device.cpp",
30 "trusty_keymaster_ipc.cpp",
31 "trusty_keymaster_main.cpp",
32 ],
33 shared_libs: [
34 "libcrypto",
35 "libcutils",
36 "libkeymaster_portable",
37 "libkeymaster_staging",
38 "libtrusty",
39 "libkeymaster_messages",
40 "libsoftkeymasterdevice",
41 "liblog",
42 ],
43}
44
45// keystore.trusty is the HAL used by keystore on Trusty devices.
46cc_library_shared {
47 name: "keystore.trusty",
48 relative_install_path: "hw",
49 srcs: [
50 "module.cpp",
51 "trusty_keymaster_ipc.cpp",
52 "trusty_keymaster_device.cpp",
53 ],
54
55 cflags: [
56 "-fvisibility=hidden",
57 "-Wall",
58 "-Werror",
59 ],
60
61 shared_libs: [
62 "libcrypto",
63 "libkeymaster_messages",
64 "libtrusty",
65 "liblog",
66 "libcutils",
67 ],
68}
diff --git a/trusty/keymaster/Android.mk b/trusty/keymaster/Android.mk
deleted file mode 100644
index 5d2f6424f..000000000
--- a/trusty/keymaster/Android.mk
+++ /dev/null
@@ -1,69 +0,0 @@
1#
2# Copyright (C) 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# WARNING: Everything listed here will be built on ALL platforms,
18# including x86, the emulator, and the SDK. Modules must be uniquely
19# named (liblights.panda), and must build everywhere, or limit themselves
20# to only building on ARM if they include assembly. Individual makefiles
21# are responsible for having their own logic, for fine-grained control.
22
23LOCAL_PATH:= $(call my-dir)
24
25include $(CLEAR_VARS)
26
27###
28# trusty_keymaster is a binary used only for on-device testing. It
29# runs Trusty Keymaster through a basic set of operations with RSA
30# and ECDSA keys.
31###
32LOCAL_MODULE := trusty_keymaster_tipc
33LOCAL_SRC_FILES := \
34 trusty_keymaster_device.cpp \
35 trusty_keymaster_ipc.cpp \
36 trusty_keymaster_main.cpp
37LOCAL_SHARED_LIBRARIES := \
38 libcrypto \
39 libcutils \
40 libkeymaster_portable \
41 libkeymaster_staging \
42 libtrusty \
43 libkeymaster_messages \
44 libsoftkeymasterdevice \
45 liblog
46
47include $(BUILD_EXECUTABLE)
48
49###
50# keystore.trusty is the HAL used by keystore on Trusty devices.
51##
52
53include $(CLEAR_VARS)
54
55LOCAL_MODULE := keystore.trusty
56LOCAL_MODULE_RELATIVE_PATH := hw
57LOCAL_SRC_FILES := module.cpp \
58 trusty_keymaster_ipc.cpp \
59 trusty_keymaster_device.cpp
60LOCAL_CLFAGS = -fvisibility=hidden -Wall -Werror
61LOCAL_SHARED_LIBRARIES := \
62 libcrypto \
63 libkeymaster_messages \
64 libtrusty \
65 liblog \
66 libcutils
67LOCAL_MODULE_TAGS := optional
68
69include $(BUILD_SHARED_LIBRARY)
diff --git a/trusty/nvram/Android.bp b/trusty/nvram/Android.bp
new file mode 100644
index 000000000..15e6c3e5e
--- /dev/null
+++ b/trusty/nvram/Android.bp
@@ -0,0 +1,61 @@
1//
2// Copyright (C) 2016 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// nvram.trusty is the Trusty NVRAM HAL module.
18cc_library_shared {
19 name: "nvram.trusty",
20 relative_install_path: "hw",
21 srcs: [
22 "module.c",
23 "trusty_nvram_device.cpp",
24 "trusty_nvram_implementation.cpp",
25 ],
26
27 cflags: [
28 "-Wall",
29 "-Werror",
30 "-Wextra",
31 "-fvisibility=hidden",
32 ],
33 static_libs: ["libnvram-hal"],
34 shared_libs: [
35 "libtrusty",
36 "libnvram-messages",
37 "liblog",
38 ],
39}
40
41// nvram-wipe is a helper tool for clearing NVRAM state.
42cc_binary {
43 name: "nvram-wipe",
44 srcs: [
45 "nvram_wipe.cpp",
46 "trusty_nvram_implementation.cpp",
47 ],
48
49 cflags: [
50 "-Wall",
51 "-Werror",
52 "-Wextra",
53 "-fvisibility=hidden",
54 ],
55 static_libs: ["libnvram-hal"],
56 shared_libs: [
57 "libtrusty",
58 "libnvram-messages",
59 "liblog",
60 ],
61}
diff --git a/trusty/nvram/Android.mk b/trusty/nvram/Android.mk
deleted file mode 100644
index 44e2212b1..000000000
--- a/trusty/nvram/Android.mk
+++ /dev/null
@@ -1,43 +0,0 @@
1#
2# Copyright (C) 2016 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19# nvram.trusty is the Trusty NVRAM HAL module.
20include $(CLEAR_VARS)
21LOCAL_MODULE := nvram.trusty
22LOCAL_MODULE_RELATIVE_PATH := hw
23LOCAL_SRC_FILES := \
24 module.c \
25 trusty_nvram_device.cpp \
26 trusty_nvram_implementation.cpp
27LOCAL_MODULE_TAGS := optional
28LOCAL_CFLAGS := -Wall -Werror -Wextra -fvisibility=hidden
29LOCAL_STATIC_LIBRARIES := libnvram-hal
30LOCAL_SHARED_LIBRARIES := libtrusty libnvram-messages liblog
31include $(BUILD_SHARED_LIBRARY)
32
33# nvram-wipe is a helper tool for clearing NVRAM state.
34include $(CLEAR_VARS)
35LOCAL_MODULE := nvram-wipe
36LOCAL_SRC_FILES := \
37 nvram_wipe.cpp \
38 trusty_nvram_implementation.cpp
39LOCAL_MODULE_TAGS := optional
40LOCAL_CFLAGS := -Wall -Werror -Wextra -fvisibility=hidden
41LOCAL_STATIC_LIBRARIES := libnvram-hal
42LOCAL_SHARED_LIBRARIES := libtrusty libnvram-messages liblog
43include $(BUILD_EXECUTABLE)