• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DIR := $(GET_LOCAL_DIR)
18
19# A library target that contains the trusty NVRAM implementation, without any
20# glue to build the app or dependencies to other services. This allows to link
21# this module into the unittest app with dependencies mocked out.
22MODULE := $(LOCAL_DIR)
23
24MODULE_SRCS += \
25	$(LOCAL_DIR)/crypto_boringssl.cpp \
26	$(LOCAL_DIR)/nvram_manager.cpp \
27	$(LOCAL_DIR)/persistence.cpp
28
29MODULE_CPPFLAGS := -Wall -Werror -Wextra
30
31MODULE_DEPS += \
32	external/openssl \
33	lib/libc-trusty \
34	lib/libstdc++-trusty \
35	system/nvram/messages
36
37ifneq ($(NVRAM_LOG_LEVEL),)
38GLOBAL_DEFINES += NVRAM_LOG_LEVEL=$(NVRAM_LOG_LEVEL)
39endif
40
41ifneq ($(NVRAM_WIPE_STORAGE_SUPPORT),)
42GLOBAL_DEFINES += NVRAM_WIPE_STORAGE_SUPPORT=$(NVRAM_WIPE_STORAGE_SUPPORT)
43endif
44
45GLOBAL_INCLUDES += $(LOCAL_DIR)/include/
46
47include make/module.mk
48