Sathish Ambley | 519f68e | 2017-07-19 10:26:51 -0700 | [diff] [blame] | 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 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Anirudh Radhakrishnan | 59864a2 | 2018-04-25 13:37:30 -0700 | [diff] [blame] | 19 | LOCAL_HEADER_LIBRARIES := libThermal_headers libcutils_headers libhardware_headers |
Rohit Bandi | 2df5b73 | 2017-09-18 12:37:11 -0700 | [diff] [blame] | 20 | LOCAL_MODULE := vr.$(TARGET_BOARD_PLATFORM) |
Bob Badour | d7c27fd | 2021-02-03 22:32:29 -0800 | [diff] [blame] | 21 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution |
| 22 | LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice |
| 23 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/LICENSE |
Sathish Ambley | 519f68e | 2017-07-19 10:26:51 -0700 | [diff] [blame] | 24 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 25 | LOCAL_PROPRIETARY_MODULE := true |
| 26 | LOCAL_SRC_FILES := vr.c |
Rohit Bandi | 2df5b73 | 2017-09-18 12:37:11 -0700 | [diff] [blame] | 27 | |
Sasha Smundak | 32a1653 | 2021-10-21 16:26:47 -0700 | [diff] [blame] | 28 | ifneq (,$(call is-board-platform-in-list2,msm8998)) |
Sathish Ambley | 519f68e | 2017-07-19 10:26:51 -0700 | [diff] [blame] | 29 | LOCAL_SRC_FILES += vr-8998.c |
Rohit Bandi | 2df5b73 | 2017-09-18 12:37:11 -0700 | [diff] [blame] | 30 | endif |
| 31 | |
Sasha Smundak | 32a1653 | 2021-10-21 16:26:47 -0700 | [diff] [blame] | 32 | ifneq (,$(call is-board-platform-in-list2,sdm845)) |
Rohit Bandi | 2df5b73 | 2017-09-18 12:37:11 -0700 | [diff] [blame] | 33 | LOCAL_SRC_FILES += vr-845.c |
| 34 | endif |
| 35 | |
Sathish Ambley | 519f68e | 2017-07-19 10:26:51 -0700 | [diff] [blame] | 36 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 37 | LOCAL_MODULE_TAGS := optional |
| 38 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 39 | |
| 40 | include $(BUILD_SHARED_LIBRARY) |