Sathish Ambley | 635292e | 2017-07-17 20:37:08 -0700 | [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 | |
Rohit Bandi | e4e88d5 | 2017-09-18 12:48:39 -0700 | [diff] [blame] | 19 | LOCAL_MODULE := thermal.$(TARGET_BOARD_PLATFORM) |
Bob Badour | ab56da7 | 2021-02-03 17:02:31 -0800 | [diff] [blame] | 20 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution |
| 21 | LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice |
Sathish Ambley | 635292e | 2017-07-17 20:37:08 -0700 | [diff] [blame] | 22 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 23 | LOCAL_PROPRIETARY_MODULE := true |
Rohit Bandi | e4e88d5 | 2017-09-18 12:48:39 -0700 | [diff] [blame] | 24 | |
Manaf Meethalavalappu Pallikunhi | 3cd560f | 2018-09-03 18:04:03 +0530 | [diff] [blame] | 25 | LOCAL_SRC_FILES := thermal.c |
| 26 | LOCAL_SRC_FILES += thermal_common.c |
| 27 | |
Rohit Bandi | e4e88d5 | 2017-09-18 12:48:39 -0700 | [diff] [blame] | 28 | ifeq ($(call is-board-platform-in-list,msm8998), true) |
Sathish Ambley | 635292e | 2017-07-17 20:37:08 -0700 | [diff] [blame] | 29 | LOCAL_SRC_FILES += thermal-8998.c |
Manaf Meethalavalappu Pallikunhi | 3cd560f | 2018-09-03 18:04:03 +0530 | [diff] [blame] | 30 | else ifeq ($(call is-board-platform-in-list,sdm845), true) |
Rohit Bandi | e4e88d5 | 2017-09-18 12:48:39 -0700 | [diff] [blame] | 31 | LOCAL_SRC_FILES += thermal-845.c |
Manaf Meethalavalappu Pallikunhi | 3cd560f | 2018-09-03 18:04:03 +0530 | [diff] [blame] | 32 | else |
| 33 | LOCAL_SRC_FILES += thermal_target.c |
Rohit Bandi | e4e88d5 | 2017-09-18 12:48:39 -0700 | [diff] [blame] | 34 | endif |
Sathish Ambley | 635292e | 2017-07-17 20:37:08 -0700 | [diff] [blame] | 35 | |
Vinay Verma | 34f922d | 2018-04-29 13:49:25 +0530 | [diff] [blame] | 36 | LOCAL_HEADER_LIBRARIES := libutils_headers libhardware_headers |
Sathish Ambley | 635292e | 2017-07-17 20:37:08 -0700 | [diff] [blame] | 37 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
| 38 | LOCAL_MODULE_TAGS := optional |
| 39 | LOCAL_CFLAGS := -Wno-unused-parameter |
| 40 | |
| 41 | include $(BUILD_SHARED_LIBRARY) |