summaryrefslogtreecommitdiffstats
path: root/modules/vibrator/Android.mk
diff options
context:
space:
mode:
authorVincent Becker <vincentx.becker@intel.com>2012-08-10 14:40:49 +0200
committerDavid Wagner <david.wagner@intel.com>2014-01-13 15:07:41 +0100
commit022224fbf883bb1600a69e4537b9a80eed35fbb8 (patch)
tree22f70ac0e9b767fe5b77c6e884501195ab8a0c28 /modules/vibrator/Android.mk
parent20ebefd966eed9da545ab645199c2f93ca93af20 (diff)
downloadhardware_libhardware-022224fbf883bb1600a69e4537b9a80eed35fbb8.zip
hardware_libhardware-022224fbf883bb1600a69e4537b9a80eed35fbb8.tar.gz
hardware_libhardware-022224fbf883bb1600a69e4537b9a80eed35fbb8.tar.bz2
Vibra: Adapt AOSP (default) vibrator HAL into a hardware module.
Android's implementation of vibrator needs to be done inside a hardware module, so that it can make a vendor implementation possible. Hw module's name becomes vibrator.default.so. This change is related to other changes in: - frameworks/base - hardware/libhardware_legacy - device/generic/goldfish - platform/build Change-Id: I844279f5535289f079d412fdc44c5cb3c9c1130c Author: Vincent Becker <vincentx.becker@intel.com> Signed-off-by: Vincent Becker <vincentx.becker@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Signed-off-by: David Wagner <david.wagner@intel.com> Author-tracking-BZ: 49760 94611
Diffstat (limited to 'modules/vibrator/Android.mk')
-rw-r--r--modules/vibrator/Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/vibrator/Android.mk b/modules/vibrator/Android.mk
new file mode 100644
index 0000000..bbba114
--- /dev/null
+++ b/modules/vibrator/Android.mk
@@ -0,0 +1,30 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := vibrator.default
+
+# HAL module implementation stored in
+# hw/<VIBRATOR_HARDWARE_MODULE_ID>.default.so
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_C_INCLUDES := hardware/libhardware
+LOCAL_SRC_FILES := vibrator.c
+LOCAL_SHARED_LIBRARIES := liblog
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_SHARED_LIBRARY)
+