• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018 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
16LOCAL_PATH := $(call my-dir)
17include $(CLEAR_VARS)
18
19LOCAL_MODULE := android.hardware.keymaster@4.0-service.citadel
20LOCAL_INIT_RC := android.hardware.keymaster@4.0-service.citadel.rc
21
22LOCAL_SRC_FILES := service.cpp
23
24LOCAL_REQUIRED_MODULES := citadeld
25LOCAL_HEADER_LIBRARIES := nos_headers
26LOCAL_SHARED_LIBRARIES := \
27    libbase \
28    libhidlbase \
29    libhidltransport \
30    libnos \
31    libnosprotos \
32    libutils \
33    libprotobuf-cpp-full \
34    android.hardware.keymaster@4.0 \
35    android.hardware.keymaster@4.0-impl.nos \
36    libnos_citadeld_proxy \
37    nos_app_keymaster
38
39
40LOCAL_MODULE_RELATIVE_PATH := hw
41
42LOCAL_CFLAGS := -pedantic -Wall -Wextra -Werror -Wno-zero-length-array
43LOCAL_CONLYFLAGS := -std=c11
44LOCAL_CLANG := true
45LOCAL_VENDOR_MODULE := true
46LOCAL_MODULE_OWNER := google
47
48ifneq ($(BUILD_WITHOUT_VENDOR),true)
49ifeq ($(call is-board-platform-in-list, sdm845),true)
50LOCAL_SHARED_LIBRARIES += \
51    libkeymasterprovision \
52    libkeymasterutils \
53    libkeymasterdeviceutils \
54    libQSEEComAPI
55
56LOCAL_CFLAGS += -DENABLE_QCOM_OTF_PROVISIONING=1
57endif
58endif
59
60include $(BUILD_EXECUTABLE)
61
62#cc_binary {
63#    name: "android.hardware.keymaster@4.0-service.citadel",
64#    init_rc: ["android.hardware.keymaster@4.0-service.citadel.rc"],
65#    required: ["citadeld"],
66#    srcs: [
67#        "service.cpp",
68#    ],
69#    defaults: ["nos_hal_service_defaults"],
70#    shared_libs: [
71#        "android.hardware.keymaster@4.0",
72#        "android.hardware.keymaster@4.0-impl.nos",
73#        "libnos_citadeld_proxy",
74#        "nos_app_keymaster",
75#        "libkeymasterprovision",
76#        "libkeymasterutils",
77#        "libkeymasterdeviceutils",
78#        "libQSEEComAPI",
79#    ],
80#}
81