Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 17 | # libupdate_verifier (static library) |
| 18 | # =============================== |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 21 | LOCAL_SRC_FILES := \ |
| 22 | update_verifier.cpp |
| 23 | |
| 24 | LOCAL_MODULE := libupdate_verifier |
Tao Bao | 160514b | 2017-11-04 00:08:08 -0700 | [diff] [blame] | 25 | |
| 26 | LOCAL_STATIC_LIBRARIES := \ |
| 27 | libotautil |
| 28 | |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 29 | LOCAL_SHARED_LIBRARIES := \ |
| 30 | libbase \ |
| 31 | libcutils \ |
| 32 | android.hardware.boot@1.0 |
| 33 | |
| 34 | LOCAL_CFLAGS := -Wall -Werror |
| 35 | |
| 36 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 37 | $(LOCAL_PATH)/include |
| 38 | |
| 39 | LOCAL_C_INCLUDES := \ |
| 40 | $(LOCAL_PATH)/include |
| 41 | |
| 42 | ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true) |
| 43 | LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1 |
| 44 | endif |
| 45 | |
David Zeuthen | 8ed9738 | 2017-05-08 13:41:28 -0400 | [diff] [blame] | 46 | ifeq ($(BOARD_AVB_ENABLE),true) |
| 47 | LOCAL_CFLAGS += -DBOARD_AVB_ENABLE=1 |
| 48 | endif |
| 49 | |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 50 | include $(BUILD_STATIC_LIBRARY) |
| 51 | |
| 52 | # update_verifier (executable) |
| 53 | # =============================== |
| 54 | include $(CLEAR_VARS) |
| 55 | |
| 56 | LOCAL_SRC_FILES := \ |
| 57 | update_verifier_main.cpp |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 58 | |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 59 | LOCAL_MODULE := update_verifier |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 60 | LOCAL_STATIC_LIBRARIES := \ |
Tao Bao | 160514b | 2017-11-04 00:08:08 -0700 | [diff] [blame] | 61 | libupdate_verifier \ |
| 62 | libotautil |
| 63 | |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 64 | LOCAL_SHARED_LIBRARIES := \ |
| 65 | libbase \ |
| 66 | libcutils \ |
| 67 | libhardware \ |
Connor O'Brien | ad43d2d | 2016-11-21 12:47:33 -0800 | [diff] [blame] | 68 | liblog \ |
| 69 | libutils \ |
| 70 | libhidlbase \ |
| 71 | android.hardware.boot@1.0 |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 72 | |
Tao Bao | 83b0780 | 2017-04-26 14:30:56 -0700 | [diff] [blame] | 73 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 74 | |
Tom Cherry | 545317f | 2017-03-28 13:24:56 -0700 | [diff] [blame] | 75 | LOCAL_INIT_RC := update_verifier.rc |
| 76 | |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 77 | include $(BUILD_EXECUTABLE) |