• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2015 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
15LOCAL_PATH := $(call my-dir)
16
17# libupdate_verifier (static library)
18# ===============================
19include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES := \
22    update_verifier.cpp
23
24LOCAL_MODULE := libupdate_verifier
25LOCAL_SHARED_LIBRARIES := \
26    libbase \
27    libcutils \
28    android.hardware.boot@1.0
29
30LOCAL_CFLAGS := -Wall -Werror
31
32LOCAL_EXPORT_C_INCLUDE_DIRS := \
33    $(LOCAL_PATH)/include
34
35LOCAL_C_INCLUDES := \
36    $(LOCAL_PATH)/include
37
38ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
39LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
40endif
41
42ifeq ($(BOARD_AVB_ENABLE),true)
43LOCAL_CFLAGS += -DBOARD_AVB_ENABLE=1
44endif
45
46include $(BUILD_STATIC_LIBRARY)
47
48# update_verifier (executable)
49# ===============================
50include $(CLEAR_VARS)
51
52LOCAL_SRC_FILES := \
53    update_verifier_main.cpp
54
55LOCAL_MODULE := update_verifier
56LOCAL_STATIC_LIBRARIES := \
57    libupdate_verifier
58LOCAL_SHARED_LIBRARIES := \
59    libbase \
60    libcutils \
61    libhardware \
62    liblog \
63    libutils \
64    libhidlbase \
65    android.hardware.boot@1.0
66
67LOCAL_CFLAGS := -Wall -Werror
68
69LOCAL_INIT_RC := update_verifier.rc
70
71include $(BUILD_EXECUTABLE)
72