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 LOCAL_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. 22 MODULE := $(LOCAL_DIR) 23 24 MODULE_SRCS += \ 25 $(LOCAL_DIR)/crypto_boringssl.cpp \ 26 $(LOCAL_DIR)/nvram_manager.cpp \ 27 $(LOCAL_DIR)/persistence.cpp 28 29 MODULE_CPPFLAGS := -Wall -Werror -Wextra 30 31 MODULE_DEPS += \ 32 external/openssl \ 33 lib/libc-trusty \ 34 lib/libstdc++-trusty \ 35 system/nvram/messages 36 37 ifneq ($(NVRAM_LOG_LEVEL),) 38 GLOBAL_DEFINES += NVRAM_LOG_LEVEL=$(NVRAM_LOG_LEVEL) 39 endif 40 41 ifneq ($(NVRAM_WIPE_STORAGE_SUPPORT),) 42 GLOBAL_DEFINES += NVRAM_WIPE_STORAGE_SUPPORT=$(NVRAM_WIPE_STORAGE_SUPPORT) 43 endif 44 45 GLOBAL_INCLUDES += $(LOCAL_DIR)/include/ 46 47 include make/module.mk 48