diff options
Diffstat (limited to 'trusty/nvram/Android.bp')
-rw-r--r-- | trusty/nvram/Android.bp | 61 |
1 files changed, 61 insertions, 0 deletions
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. | ||
18 | cc_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. | ||
42 | cc_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 | } | ||