summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ciocca <denis.ciocca@st.com>2017-10-31 17:18:50 +0800
committerDenis Ciocca <denis.ciocca@st.com>2017-11-01 13:48:00 +0800
commitb92f2ef088486ec5f51712ab00bca52601cb607a (patch)
tree6f5597d1153f08b97534011e50015dc54fcc7b37
parentbc86535529da148828db594772723ef472ae9f5f (diff)
downloadhikey-b92f2ef088486ec5f51712ab00bca52601cb607a.tar.gz
hikey: Add sensors config files with neonkey / argonkey
Copy permissions config files if target is built with mezzanine board enabled. Change-Id: I765509e8eafb68bd4c504a29bdfb2b8686650c4d Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
-rw-r--r--device-common.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index 7c35fa77..d3476b5f 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -108,6 +108,25 @@ PRODUCT_PACKAGES += stm32_flash nanoapp_cmd nanotool
PRODUCT_COPY_FILES += \
device/linaro/hikey/init.common.nanohub.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.nanohub.rc
+
+# Copy sensors config file(s)
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
+ frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \
+ frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
+ frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
+ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
+ frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
+ frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
+ frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml \
+ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
+ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml
+
+# Argonkey VL53L0X proximity driver is not available yet. So we are going to copy conf file for neonkey only
+ifeq ($(TARGET_SENSOR_MEZZANINE),neonkey)
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml
+endif
endif
# Use Launcher3