1# Copyright (C) 2016 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16LOCAL_DIR := $(GET_LOCAL_DIR)
17COMMON_DIR := $(LOCAL_DIR)/../common
18STORAGE_DIR := $(LOCAL_DIR)/../..
19
20HOST_TEST := storage_block_test
21
22HOST_SRCS := \
23	$(STORAGE_DIR)/block_allocator.c \
24	$(STORAGE_DIR)/block_cache.c \
25	$(STORAGE_DIR)/block_mac.c \
26	$(STORAGE_DIR)/block_map.c \
27	$(STORAGE_DIR)/block_set.c \
28	$(STORAGE_DIR)/block_tree.c \
29	$(STORAGE_DIR)/checkpoint.c \
30	$(STORAGE_DIR)/crypt.c \
31	$(STORAGE_DIR)/file.c \
32	$(STORAGE_DIR)/super.c \
33	$(STORAGE_DIR)/transaction.c \
34	$(LOCAL_DIR)/block_test.c \
35	$(COMMON_DIR)/error_reporting_mock.c \
36
37HOST_FLAGS := -DBUILD_STORAGE_TEST=1
38
39HOST_INCLUDE_DIRS += \
40	$(STORAGE_DIR) \
41	$(COMMON_DIR) \
42	trusty/kernel/lib/libc-ext/include \
43
44HOST_LIBS := \
45	m \
46
47HOST_DEPS := \
48	trusty/user/base/host/boringssl
49
50include make/host_test.mk
51