Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
SUMMARY = "Prebuilt Qualcomm sensors libraries and test applications"
DESCRIPTION = "Prebuilt core binaries required for sensor enablement and hardware sensor data access. These prebuilt binaries also Includes test applications to validate sensor services functionality through the Sensinghub Interface."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Includes/include

LICENSE = "LICENSE.qcom-2"
LIC_FILES_CHKSUM = "file://NO.LOGIN.BINARY.LICENSE.QTI.txt;md5=f33ba334514c4dfabc6ab7377babb377"

SRC_URI = "https://qartifactory-edge.qualcomm.com/artifactory/qsc_releases/software/chip/component/sensors.lnx.0.0/${PBT_BUILD_DATE}/prebuilt_yocto/qcom-sensors-prebuilts_${PV}_armv8a.tar.gz"
PBT_BUILD_DATE = "251211"
SRC_URI[sha256sum] = "1c31505b3b8672109e8fbadc04a072cad93fc179371c63eb98ca18f40a04ecd6"

S = "${UNPACKDIR}"

DEPENDS += "glib-2.0 protobuf sensinghub qmi-framework libdiag fastrpc"

inherit systemd

SYSTEMD_SERVICE:${PN} = "sscrpcd.service"

# This package is currently only used and tested on ARMv8 (aarch64) machines.
# Therefore, builds for other architectures are not necessary and are explicitly excluded.
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE:aarch64 = "(.*)"

do_install() {
install -d ${D}${bindir}
install -d ${D}${libdir}
install -d ${D}${libdir}/pkgconfig
install -d ${D}${includedir}
install -d ${D}/etc/sensors/config
install -d ${D}${systemd_system_unitdir}

# Install binaries
install -m 0755 ${S}/usr/bin/* ${D}${bindir}/

# Install library
oe_libinstall -C ${S}/usr/lib -so libsnsutils ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libsuidlookup ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libsensinghubapiprop ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libQshQmiIDL ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libQshSession ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libSensorTest ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libsnsdiaglog ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libUSTANative ${D}${libdir}
oe_libinstall -C ${S}/usr/lib -so libSEESalt ${D}${libdir}

# Install registry and Service files
install -m 0644 ${S}/etc/sensors/config/* ${D}/etc/sensors/config/
install -m 0644 ${S}${systemd_system_unitdir}/sscrpcd.service ${D}${systemd_system_unitdir}/sscrpcd.service

# Install pkgconfig
install -m 0644 ${S}/usr/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/

# Install headers
install -m 0644 ${S}/usr/include/*.h ${D}${includedir}/
}

Loading