mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: Make the common tree more common
* Compare things that are used in s3ve, ms01, kmini3g , and matisse wifi and move the stuff that's truly common to here. This will greatly ease O bring-up of the child trees. * Also do a bit of cleanup while we are at it. Change-Id: I8fc5a099a348fa7feb502e3afe9b43df6e22d00b
This commit is contained in:
parent
9ea1a043a0
commit
91d52d50a5
4 changed files with 264 additions and 17 deletions
|
@ -20,8 +20,11 @@ VENDOR_PATH := device/samsung/msm8226-common
|
|||
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
||||
|
||||
# Architecture
|
||||
BOARD_USES_QCOM_HARDWARE := true
|
||||
TARGET_CPU_MEMCPY_BASE_OPT_DISABLE := true
|
||||
TARGET_CPU_VARIANT := krait
|
||||
BOARD_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
|
||||
BOARD_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
|
||||
|
||||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
|
||||
|
@ -53,6 +56,8 @@ BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril
|
|||
# Display
|
||||
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
||||
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
||||
TARGET_USES_C2D_COMPOSITION := true
|
||||
TARGET_USES_ION := true
|
||||
|
||||
# Shader cache config options
|
||||
# Maximum size of the GLES Shaders that can be cached for reuse.
|
||||
|
@ -64,13 +69,13 @@ MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
|||
# of the device.
|
||||
MAX_EGL_CACHE_SIZE := 2048*1024
|
||||
|
||||
# FM
|
||||
AUDIO_FEATURE_ENABLED_FM := true
|
||||
TARGET_QCOM_NO_FM_FIRMWARE := true
|
||||
|
||||
# Fonts
|
||||
EXTENDED_FONT_FOOTPRINT := true
|
||||
|
||||
# HIDL
|
||||
DEVICE_MANIFEST_FILE := device/samsung/msm8226-common/manifest.xml
|
||||
DEVICE_MATRIX_FILE := device/samsung/msm8226-common/compatibility_matrix.xml
|
||||
|
||||
# SELinux
|
||||
include device/samsung/msm8226-common/sepolicy/sepolicy.mk
|
||||
|
||||
|
@ -96,6 +101,9 @@ USE_CLANG_PLATFORM_BUILD := true
|
|||
# Properties (reset them here, include more in device if needed)
|
||||
TARGET_SYSTEM_PROP := $(VENDOR_PATH)/system.prop
|
||||
|
||||
# Time services
|
||||
BOARD_USES_QC_TIME_SERVICES := true
|
||||
|
||||
# Basic dexpreopt
|
||||
ifeq ($(HOST_OS),linux)
|
||||
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
||||
|
|
59
compatibility_matrix.xml
Normal file
59
compatibility_matrix.xml
Normal file
|
@ -0,0 +1,59 @@
|
|||
<compatibility-matrix version="1.0" type="device">
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.frameworks.schedulerservice</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISchedulingPolicyService</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.frameworks.sensorservice</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISensorManager</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.hidl.allocator</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IAllocator</name>
|
||||
<instance>ashmem</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.hidl.manager</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IServiceManager</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.hidl.memory</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IMapper</name>
|
||||
<instance>ashmem</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.hidl.token</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ITokenManager</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="false">
|
||||
<name>android.system.wifi.keystore</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IKeystore</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
|
||||
</compatibility-matrix>
|
153
manifest.xml
Normal file
153
manifest.xml
Normal file
|
@ -0,0 +1,153 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IDevicesFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio.effect</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IEffectsFactory</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IBluetoothHci</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.configstore</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISurfaceFlingerConfigs</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.drm</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ICryptoFactory</name>
|
||||
<instance>widevine</instance>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>IDrmFactory</name>
|
||||
<instance>widevine</instance>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.gnss</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IGnss</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.graphics.allocator</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IAllocator</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.graphics.composer</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<impl level="generic"></impl>
|
||||
<version>2.1</version>
|
||||
<interface>
|
||||
<name>IComposer</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.graphics.mapper</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IMapper</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.keymaster</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>3.0</version>
|
||||
<interface>
|
||||
<name>IKeymasterDevice</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.memtrack</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IMemtrack</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.power</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IPower</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.sensors</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISensors</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.usb</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IUsb</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IWifi</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.supplicant</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ISupplicant</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
53
msm8226.mk
53
msm8226.mk
|
@ -52,6 +52,21 @@ PRODUCT_PACKAGES += \
|
|||
init.qcom.usb.rc \
|
||||
init.recovery.qcom.rc \
|
||||
ueventd.qcom.rc
|
||||
|
||||
# System properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
audio.offload.buffer.size.kb=32 \
|
||||
audio.offload.gapless.enabled=false \
|
||||
av.offload.enable=true
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.opengles.version=196608
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.timed.enable=true
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.vendor.extension_library=/vendor/lib/libqc-opt.so
|
||||
|
||||
# Audio
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -68,6 +83,11 @@ PRODUCT_PACKAGES += \
|
|||
libqcomvisualizer \
|
||||
libqcomvoiceprocessing \
|
||||
tinymix
|
||||
|
||||
# Bluetooth
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-impl \
|
||||
libbt-vendor
|
||||
|
||||
# Camera
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -96,19 +116,14 @@ PRODUCT_PACKAGES += \
|
|||
hwcomposer.msm8226 \
|
||||
memtrack.msm8226
|
||||
|
||||
# Ebtables
|
||||
# DRM
|
||||
PRODUCT_PACKAGES += \
|
||||
ebtables \
|
||||
ethertypes \
|
||||
libebtc
|
||||
|
||||
# FM
|
||||
PRODUCT_PACKAGES += \
|
||||
FMRadio \
|
||||
libfmjni
|
||||
android.hardware.drm@1.0-impl \
|
||||
android.hardware.drm@1.0-service
|
||||
|
||||
# GPS
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gnss@1.0-impl \
|
||||
gps.msm8226
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
@ -122,6 +137,10 @@ PRODUCT_COPY_FILES += \
|
|||
$(LOCAL_PATH)/keylayout/Button_Jack.kl:system/usr/keylayout/Button_Jack.kl \
|
||||
$(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
|
||||
|
||||
# Keymaster
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.keymaster@3.0-impl
|
||||
|
||||
# Keystore
|
||||
PRODUCT_PACKAGES += \
|
||||
keystore.msm8226
|
||||
|
@ -150,19 +169,27 @@ PRODUCT_COPY_FILES += \
|
|||
$(LOCAL_PATH)/seccomp/mediacodec.policy:system/vendor/etc/seccomp_policy/mediacodec.policy \
|
||||
$(LOCAL_PATH)/seccomp/mediaextractor.policy:system/vendor/etc/seccomp_policy/mediaextractor.policy
|
||||
|
||||
# Sensors
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.sensors@1.0-impl
|
||||
|
||||
# USB
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.usb@1.0-service
|
||||
|
||||
# Wifi
|
||||
PRODUCT_PACKAGES += \
|
||||
dhcpcd.conf \
|
||||
hostapd \
|
||||
wificond \
|
||||
wpa_supplicant \
|
||||
wpa_supplicant.conf
|
||||
wpa_supplicant.conf \
|
||||
libwpa_client \
|
||||
android.hardware.wifi@1.0-service
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libcurl \
|
||||
libqsap_sdk \
|
||||
libQWiFiSoftApCfg \
|
||||
libwcnss_qmi \
|
||||
wcnss_service
|
||||
|
||||
# Inherit from qcom-common
|
||||
$(call inherit-product, device/samsung/qcom-common/qcom-common.mk)
|
||||
|
|
Loading…
Reference in a new issue