Merge "refactor and merge gps build system" into udc-qpr-dev am: 327749d8d0 am: 8b91a2522a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24237366 Change-Id: Ic095cbe4599119d039af0da6304257aa1d47bbe9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
fcb8d3019c
@ -1,13 +1,14 @@
|
|||||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/brcm/sepolicy
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/brcm/sepolicy
|
||||||
|
|
||||||
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/gps/brcm/prebuilt
|
PRODUCT_SOONG_NAMESPACES += vendor/broadcom/gps/bcm47765
|
||||||
|
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
$(call soong_config_set, gpssdk, sdkv1, False)
|
||||||
$(call soong_config_set, SensorHub_debug, assertion, true)
|
|
||||||
endif
|
$(call soong_config_set, gpssdk, gpsmcuversion, gpsv2_$(TARGET_BUILD_VARIANT))
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
bcm47765_gps_package \
|
bcm47765_gps_package \
|
||||||
|
sitril-gps \
|
||||||
android.hardware.location.gps.prebuilt.xml
|
android.hardware.location.gps.prebuilt.xml
|
||||||
|
|
||||||
PRODUCT_PACKAGES_DEBUG += \
|
PRODUCT_PACKAGES_DEBUG += \
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/brcm/sepolicy
|
|
||||||
|
|
||||||
PRODUCT_SOONG_NAMESPACES += vendor/broadcom/gps/bcm47765
|
|
||||||
|
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
||||||
$(call soong_config_set, gpsv2, assertion, true)
|
|
||||||
endif
|
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
bcm47765_gps_package_v2 \
|
|
||||||
android.hardware.location.gps.prebuilt.xml
|
|
||||||
|
|
||||||
PRODUCT_PACKAGES_DEBUG += \
|
|
||||||
init.gps_log.rc
|
|
@ -1,240 +0,0 @@
|
|||||||
soong_namespace {
|
|
||||||
imports: [
|
|
||||||
"hardware/google/pixel",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
package {
|
|
||||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "android.hardware.gnss@2.1-impl-google",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["android.hardware.gnss@2.1-impl-google.so"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libbinder_ndk",
|
|
||||||
"android.hardware.gnss-V3-ndk",
|
|
||||||
"libhardware",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
// Bypass because libhidltransport is deprecated
|
|
||||||
check_elf_files: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
|
||||||
name: "android.hardware.gnss@2.1-service-brcm",
|
|
||||||
init_rc: ["init.gps.rc"],
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["android.hardware.gnss@2.1-service-brcm"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libhardware",
|
|
||||||
"libbinder_ndk",
|
|
||||||
"android.hardware.gnss-V3-ndk",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
// Bypass because libhidltransport is deprecated
|
|
||||||
// Bypass because libhwbinder is deprecated
|
|
||||||
check_elf_files: false,
|
|
||||||
vintf_fragments: ["android.hardware.gnss@2.1-service-brcm.xml"]
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "flp.default",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["flp.default.so"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libcutils",
|
|
||||||
"libutils",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
// Bypass because soname mismatch
|
|
||||||
check_elf_files: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
|
||||||
name: "gpsd",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["gpsd"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libhardware_legacy",
|
|
||||||
"libcutils",
|
|
||||||
"libssl",
|
|
||||||
"libcrypto",
|
|
||||||
// "libsitril-gps",
|
|
||||||
"android.frameworks.sensorservice@1.0",
|
|
||||||
"libhidlbase",
|
|
||||||
"libandroid_net",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
// Bypass because libsitril-gps is Android.mk module
|
|
||||||
check_elf_files: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "gps.default",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["gps.default.so"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libcutils",
|
|
||||||
"libutils",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
// Bypass because soname mismatch
|
|
||||||
check_elf_files: false,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
|
||||||
name: "lhd",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["lhd"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libhardware_legacy",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libz",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
|
||||||
name: "scd",
|
|
||||||
arch: {
|
|
||||||
arm64: {
|
|
||||||
srcs: ["scd"],
|
|
||||||
shared_libs: [
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libssl",
|
|
||||||
"libcrypto",
|
|
||||||
"libandroid_net",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
vendor: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
soong_config_module_type {
|
|
||||||
name: "gps_prebuilt_firmware",
|
|
||||||
module_type: "prebuilt_firmware",
|
|
||||||
config_namespace: "SensorHub_debug",
|
|
||||||
bool_variables: [
|
|
||||||
"assertion",
|
|
||||||
],
|
|
||||||
properties: [
|
|
||||||
"src"
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
gps_prebuilt_firmware {
|
|
||||||
name: "SensorHub.patch",
|
|
||||||
soong_config_variables: {
|
|
||||||
assertion: {
|
|
||||||
src: "SensorHub_DebugBuild_A0.patch",
|
|
||||||
conditions_default: {
|
|
||||||
src: "SensorHub_A0.patch"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
vendor: true,
|
|
||||||
filename: "SensorHub.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
phony {
|
|
||||||
name: "bcm47765_gps_package",
|
|
||||||
required: [
|
|
||||||
"android.hardware.gnss@2.1-impl-google",
|
|
||||||
"android.hardware.gnss@2.1-service-brcm",
|
|
||||||
"flp.default",
|
|
||||||
"gpsd",
|
|
||||||
"lhd",
|
|
||||||
"gps.default",
|
|
||||||
"scd",
|
|
||||||
"SensorHub.patch"
|
|
||||||
],
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -1,7 +0,0 @@
|
|||||||
<manifest version="1.0" type="device">
|
|
||||||
<hal format="aidl">
|
|
||||||
<name>android.hardware.gnss</name>
|
|
||||||
<version>3</version>
|
|
||||||
<fqname>IGnss/default</fqname>
|
|
||||||
</hal>
|
|
||||||
</manifest>
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,26 +0,0 @@
|
|||||||
service lhd /vendor/bin/hw/lhd /vendor/etc/gnss/lhd.conf
|
|
||||||
class main
|
|
||||||
user gps
|
|
||||||
group system inet net_raw sdcard_rw
|
|
||||||
ioprio be 0
|
|
||||||
|
|
||||||
service gpsd /vendor/bin/hw/gpsd -c /vendor/etc/gnss/gps.xml
|
|
||||||
class main
|
|
||||||
user gps
|
|
||||||
group system gps radio inet wakelock sdcard_rw net_raw
|
|
||||||
ioprio be 0
|
|
||||||
|
|
||||||
service scd /vendor/bin/hw/scd /vendor/etc/gnss/scd.conf
|
|
||||||
class main
|
|
||||||
user gps
|
|
||||||
group system inet net_raw wakelock
|
|
||||||
ioprio be 0
|
|
||||||
priority -1
|
|
||||||
|
|
||||||
service gnss_service /vendor/bin/hw/android.hardware.gnss@2.1-service-brcm
|
|
||||||
class hal
|
|
||||||
user gps
|
|
||||||
group system gps radio
|
|
||||||
ioprio be 0
|
|
||||||
priority -1
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user