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 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | LOCAL_CLANG := true |
| 20 | LOCAL_SRC_FILES := update_verifier.cpp |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 21 | |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 22 | LOCAL_MODULE := update_verifier |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 23 | LOCAL_SHARED_LIBRARIES := \ |
| 24 | libbase \ |
| 25 | libcutils \ |
| 26 | libhardware \ |
Connor O'Brien | ad43d2d | 2016-11-21 12:47:33 -0800 | [diff] [blame] | 27 | liblog \ |
| 28 | libutils \ |
| 29 | libhidlbase \ |
| 30 | android.hardware.boot@1.0 |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 31 | |
Tianjie Xu | 7aa8874 | 2016-09-28 11:42:17 -0700 | [diff] [blame] | 32 | LOCAL_CFLAGS := -Werror |
Tianjie Xu | d007cf2 | 2016-02-29 16:08:06 -0800 | [diff] [blame] | 33 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 34 | |
Tom Cherry | beaa39b | 2017-03-28 13:24:56 -0700 | [diff] [blame] | 35 | LOCAL_INIT_RC := update_verifier.rc |
| 36 | |
Tao Bao | db57f0d | 2017-03-10 14:21:25 -0800 | [diff] [blame] | 37 | ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true) |
| 38 | LOCAL_CFLAGS += -DPRODUCT_SUPPORTS_VERITY=1 |
| 39 | endif |
| 40 | |
Tao Bao | 1171d3a | 2015-12-05 21:21:27 -0800 | [diff] [blame] | 41 | include $(BUILD_EXECUTABLE) |