blob: 0a195f7443a0f145536ef80b13fe6d91148cffdf [file] [log] [blame]
Tao Bao1171d3a2015-12-05 21:21:27 -08001# 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
Tao Bao83b07802017-04-26 14:30:56 -070017# libupdate_verifier (static library)
18# ===============================
Tao Bao1171d3a2015-12-05 21:21:27 -080019include $(CLEAR_VARS)
20
Tao Bao83b07802017-04-26 14:30:56 -070021LOCAL_SRC_FILES := \
22 update_verifier.cpp
23
24LOCAL_MODULE := libupdate_verifier
Tao Bao160514b2017-11-04 00:08:08 -070025
26LOCAL_STATIC_LIBRARIES := \
27 libotautil
28
Tao Bao83b07802017-04-26 14:30:56 -070029LOCAL_SHARED_LIBRARIES := \
30 libbase \
31 libcutils \
32 android.hardware.boot@1.0
33
34LOCAL_CFLAGS := -Wall -Werror
35
36LOCAL_EXPORT_C_INCLUDE_DIRS := \
37 $(LOCAL_PATH)/include
38
39LOCAL_C_INCLUDES := \
40 $(LOCAL_PATH)/include
41
Dan Pasanenfe2901b2017-11-29 09:20:03 -060042ifeq ($(LINEAGE_BUILD),)
Tao Bao83b07802017-04-26 14:30:56 -070043ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)
44LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1
45endif
Dan Pasanenfe2901b2017-11-29 09:20:03 -060046endif
Tao Bao83b07802017-04-26 14:30:56 -070047
David Zeuthen8ed97382017-05-08 13:41:28 -040048ifeq ($(BOARD_AVB_ENABLE),true)
49LOCAL_CFLAGS += -DBOARD_AVB_ENABLE=1
50endif
51
Tao Bao83b07802017-04-26 14:30:56 -070052include $(BUILD_STATIC_LIBRARY)
53
54# update_verifier (executable)
55# ===============================
56include $(CLEAR_VARS)
57
58LOCAL_SRC_FILES := \
59 update_verifier_main.cpp
Tianjie Xud007cf22016-02-29 16:08:06 -080060
Tao Bao1171d3a2015-12-05 21:21:27 -080061LOCAL_MODULE := update_verifier
Tao Bao83b07802017-04-26 14:30:56 -070062LOCAL_STATIC_LIBRARIES := \
Tao Bao160514b2017-11-04 00:08:08 -070063 libupdate_verifier \
64 libotautil
65
Tianjie Xud007cf22016-02-29 16:08:06 -080066LOCAL_SHARED_LIBRARIES := \
67 libbase \
68 libcutils \
69 libhardware \
Connor O'Brienad43d2d2016-11-21 12:47:33 -080070 liblog \
71 libutils \
72 libhidlbase \
73 android.hardware.boot@1.0
Tianjie Xud007cf22016-02-29 16:08:06 -080074
Tao Bao83b07802017-04-26 14:30:56 -070075LOCAL_CFLAGS := -Wall -Werror
Tao Bao1171d3a2015-12-05 21:21:27 -080076
Tom Cherry545317f2017-03-28 13:24:56 -070077LOCAL_INIT_RC := update_verifier.rc
78
Tao Bao1171d3a2015-12-05 21:21:27 -080079include $(BUILD_EXECUTABLE)