gps: pixel gnss aidl service (config)
Bug: 298924540 Test: atest VtsHalGnssTargetTest Change-Id: I4fa55bf80859c93be3bd46ac7b3d43d7607ae55d
This commit is contained in:
parent
f30d441d64
commit
0b3f36d5fc
6 changed files with 56 additions and 7 deletions
|
@ -13,8 +13,29 @@ license {
|
|||
],
|
||||
}
|
||||
|
||||
soong_config_module_type {
|
||||
name: "lassen_gnss_aidl_service_cc_defaults",
|
||||
module_type: "cc_defaults",
|
||||
config_namespace: "pixel_gnss",
|
||||
bool_variables: ["enable_pixel_gnss_aidl_service"],
|
||||
properties: ["vintf_fragments"],
|
||||
}
|
||||
|
||||
lassen_gnss_aidl_service_cc_defaults {
|
||||
name: "lassen_gnss_aidl_service_cc_defaults",
|
||||
soong_config_variables: {
|
||||
enable_pixel_gnss_aidl_service: {
|
||||
vintf_fragments: ["android.hardware.gnss@vendor.xml"],
|
||||
conditions_default: {
|
||||
vintf_fragments: ["android.hardware.gnss@default.xml"]
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
cc_prebuilt_binary {
|
||||
name: "android.hardware.gnss-service",
|
||||
defaults: ["lassen_gnss_aidl_service_cc_defaults"],
|
||||
arch: {
|
||||
arm64: {
|
||||
srcs: ["release/android.hardware.gnss-service"],
|
||||
|
@ -41,7 +62,6 @@ cc_prebuilt_binary {
|
|||
// Bypass because libhidltransport is deprecated
|
||||
// Bypass because libhwbinder is deprecated
|
||||
check_elf_files: false,
|
||||
vintf_fragments: ["android.hardware.gnss@lassen.xml"],
|
||||
init_rc: ["init.gnss.rc"],
|
||||
}
|
||||
|
||||
|
|
7
location/gnssd/android.hardware.gnss@vendor.xml
Normal file
7
location/gnssd/android.hardware.gnss@vendor.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="aidl">
|
||||
<name>android.hardware.gnss</name>
|
||||
<version>3</version>
|
||||
<fqname>IGnss/vendor</fqname>
|
||||
</hal>
|
||||
</manifest>
|
10
location/gnssd/device_framework_matrix_product.xml
Normal file
10
location/gnssd/device_framework_matrix_product.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<compatibility-matrix version="1.0" type="framework" level="8">
|
||||
<hal format="aidl" optional="true">
|
||||
<name>android.hardware.gnss</name>
|
||||
<version>3</version>
|
||||
<interface>
|
||||
<name>IGnss</name>
|
||||
<instance>vendor</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
|
@ -1,5 +1,5 @@
|
|||
# only GPS libraries and binaries to the target directory
|
||||
GPS_ROOT := device/google/akita/location/gnssd
|
||||
# Enable pixel gnss hal service
|
||||
include device/google/akita/location/gnssd/pixel_gnss_hal.mk
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
gnssd \
|
||||
|
@ -7,17 +7,17 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.location.gps.prebuilt.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(GPS_ROOT)/release/ca.pem:vendor/etc/gnss/ca.pem \
|
||||
device/google/akita/location/gnssd/release/ca.pem:vendor/etc/gnss/ca.pem
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(GPS_ROOT)
|
||||
device/google/akita/location/gnssd
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(GPS_ROOT)/release/gps.cfg:vendor/etc/gnss/gps.cfg
|
||||
device/google/akita/location/gnssd/release/gps.cfg:vendor/etc/gnss/gps.cfg
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
vendor.gps.aol.enabled=true
|
||||
else
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(GPS_ROOT)/release/gps_user.cfg:vendor/etc/gnss/gps.cfg
|
||||
device/google/akita/location/gnssd/release/gps_user.cfg:vendor/etc/gnss/gps.cfg
|
||||
endif
|
||||
|
|
12
location/gnssd/pixel_gnss_hal.mk
Normal file
12
location/gnssd/pixel_gnss_hal.mk
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Enable aidl service
|
||||
$(call soong_config_set, pixel_gnss, enable_pixel_gnss_aidl_service, true)
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gnss-service.pixel
|
||||
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
persist.vendor.gps.hal.service.name=vendor
|
||||
|
||||
# Compatibility matrix
|
||||
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
|
||||
device/google/akita/location/gnssd/device_framework_matrix_product.xml
|
Loading…
Add table
Add a link
Reference in a new issue