msm8226-common: sensors: s3ve3g -> msm8226

This commit is contained in:
Francescodario Cuzzocrea 2019-05-14 23:44:32 +02:00
parent bda3ff3565
commit 2de38b95ac
3 changed files with 133 additions and 5 deletions

View file

@ -1,15 +1,143 @@
cc_library_static { cc_library_static {
name: "multihal-samsung", name: "multihal-samsung8226",
vendor: true, vendor: true,
srcs: [ srcs: [
"multihal.cpp", "multihal.cpp",
"SensorEventQueue.cpp" "SensorEventQueue.cpp",
],
header_libs: [
"libhardware_headers",
], ],
shared_libs: [ shared_libs: [
"liblog", "liblog",
"libcutils", "libcutils",
"libutils", "libutils",
"libdl" "libdl",
], ],
export_include_dirs: ["."], export_include_dirs: ["."],
cflags: [
"-Wall",
"-Werror",
],
}
cc_library_shared {
name: "android.hardware.sensors@1.0-impl.samsung8226",
defaults: ["hidl_defaults"],
proprietary: true,
relative_install_path: "hw",
srcs: ["Sensors.cpp"],
shared_libs: [
"liblog",
"libcutils",
"libhardware",
"libbase",
"libutils",
"libhidlbase",
"libhidltransport",
"android.hardware.sensors@1.0",
],
static_libs: [
"android.hardware.sensors@1.0-convert",
"multihal-samsung8226",
],
local_include_dirs: ["include/sensors"],
}
cc_binary {
name: "android.hardware.sensors@1.0-service.samsung8226",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
vendor: true,
init_rc: ["android.hardware.sensors@1.0-service.samsung8226.rc"],
srcs: ["service.cpp"],
shared_libs: [
"liblog",
"libcutils",
"libdl",
"libbase",
"libutils",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"android.hardware.sensors@1.0",
],
arch: {
cc_library_static {
name: "multihal-samsung8226",
vendor: true,
srcs: [
"multihal.cpp",
"SensorEventQueue.cpp",
],
header_libs: [
"libhardware_headers",
],
shared_libs: [
"liblog",
"libcutils",
"libutils",
"libdl",
],
export_include_dirs: ["."],
cflags: [
"-Wall",
"-Werror",
],
}
cc_library_shared {
name: "android.hardware.sensors@1.0-impl.samsung8226",
defaults: ["hidl_defaults"],
proprietary: true,
relative_install_path: "hw",
srcs: ["Sensors.cpp"],
shared_libs: [
"liblog",
"libcutils",
"libhardware",
"libbase",
"libutils",
"libhidlbase",
"libhidltransport",
"android.hardware.sensors@1.0",
],
static_libs: [
"android.hardware.sensors@1.0-convert",
"multihal-samsung8226",
],
local_include_dirs: ["include/sensors"],
}
cc_binary {
name: "android.hardware.sensors@1.0-service.samsung8226",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
vendor: true,
init_rc: ["android.hardware.sensors@1.0-service.samsung8226.rc"],
srcs: ["service.cpp"],
shared_libs: [
"liblog",
"libcutils",
"libdl",
"libbase",
"libutils",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"android.hardware.sensors@1.0",
],
arch: {
arm: {
cflags: ["-DARCH_ARM_32"],
},
},
}
arm: {
cflags: ["-DARCH_ARM_32"],
},
},
} }

View file

@ -1,4 +1,4 @@
service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service.s3ve3g service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service.samsung8226
class hal class hal
user root user root
group system input wakelock group system input wakelock

View file

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#define LOG_TAG "android.hardware.sensors@1.0-service.wt88047" #define LOG_TAG "android.hardware.sensors@1.0-service"
#include <android/hardware/sensors/1.0/ISensors.h> #include <android/hardware/sensors/1.0/ISensors.h>
#include <hidl/LegacySupport.h> #include <hidl/LegacySupport.h>