mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
synced 2025-08-02 22:46:25 +09:00
sm6250-common: Import Pixel thermal HAL
* From hardware/google/pixel at 728fb99bbb910be05711421310efa6827aaaa4fa. Change-Id: I763b4dbef65084cfee337065b2c5ab465f69bca8
This commit is contained in:
56
thermal/Android.bp
Normal file
56
thermal/Android.bp
Normal file
@ -0,0 +1,56 @@
|
||||
cc_binary {
|
||||
name: "android.hardware.thermal@2.0-service.pixel",
|
||||
defaults: [
|
||||
"hidl_defaults",
|
||||
],
|
||||
vendor: true,
|
||||
relative_install_path: "hw",
|
||||
vintf_fragments: ["android.hardware.thermal@2.0-service.pixel.xml"],
|
||||
init_rc: [
|
||||
"android.hardware.thermal@2.0-service.pixel.rc",
|
||||
],
|
||||
srcs: [
|
||||
"service.cpp",
|
||||
"Thermal.cpp",
|
||||
"thermal-helper.cpp",
|
||||
"utils/config_parser.cpp",
|
||||
"utils/thermal_files.cpp",
|
||||
"utils/thermal_watcher.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libcutils",
|
||||
"libhidlbase",
|
||||
"libjsoncpp",
|
||||
"libutils",
|
||||
"libbinder_ndk",
|
||||
"android.hardware.thermal@1.0",
|
||||
"android.hardware.thermal@2.0",
|
||||
"android.hardware.power-ndk_platform",
|
||||
"pixel-power-ext-ndk_platform"
|
||||
],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wextra",
|
||||
"-Wunused",
|
||||
],
|
||||
tidy: true,
|
||||
tidy_checks: [
|
||||
"android-*",
|
||||
"cert-*",
|
||||
"clang-analyzer-security*",
|
||||
],
|
||||
tidy_flags: [
|
||||
"-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
|
||||
],
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "thermal_logd",
|
||||
src: "init.thermal.logging.sh",
|
||||
vendor: true,
|
||||
init_rc: [
|
||||
"pixel-thermal-logd.rc",
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user