-
Notifications
You must be signed in to change notification settings - Fork 157
sensors: add recipe for sensors prebuilt binaries #1298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bmasta018
wants to merge
1
commit into
qualcomm-linux:master
Choose a base branch
from
bmasta018:sensors-prebuilts-enablement
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_1.0.2.bb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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." | ||
| 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}/ | ||
| } | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Includes/include