From 421d1c1cba61227300e7666208583cd7ba4d489b Mon Sep 17 00:00:00 2001 From: Bhanu Vivek Matsa Date: Sun, 21 Jun 2026 00:52:50 +0530 Subject: [PATCH] sensors: upgrade 1.2.1 -> 2.0.0 Upgraded sensor binaries from 1.2.1 to 2.0.0 and migrated protobuf compilation to a nanopb-based implementation. Updated the codebase to support the new protobuf workflow and enabled sensor functionality on the Shikra target through integration with the new GLink communication layer. Signed-off-by: Bhanu Vivek Matsa --- ...es_1.2.1.bb => qcom-sensors-binaries_2.0.0.bb} | 15 +++++++++++++-- .../{sensinghub_1.0.6.bb => sensinghub_2.2.0.bb} | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) rename dynamic-layers/openembedded-layer/recipes-support/sensors/{qcom-sensors-binaries_1.2.1.bb => qcom-sensors-binaries_2.0.0.bb} (70%) rename dynamic-layers/openembedded-layer/recipes-support/sensors/{sensinghub_1.0.6.bb => sensinghub_2.2.0.bb} (75%) diff --git a/dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_1.2.1.bb b/dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_2.0.0.bb similarity index 70% rename from dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_1.2.1.bb rename to dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_2.0.0.bb index 37ae71d49..d65e01e4f 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_1.2.1.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/sensors/qcom-sensors-binaries_2.0.0.bb @@ -5,9 +5,9 @@ validate sensor services functionality through the Sensinghub Interface." LICENSE = "LICENSE.qcom-2" LIC_FILES_CHKSUM = "file://LICENSE.qcom-2;md5=f33ba334514c4dfabc6ab7377babb377" -PBT_BUILD_DATE = "260514.1" +PBT_BUILD_DATE = "260620.1" 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" -SRC_URI[sha256sum] = "507652592b326bfeb1b31c4c37f61a5173439bd3dffa7ded72b675f834ea11bb" +SRC_URI[sha256sum] = "78ef50da376fcc2ba4e7add016dc8fbdfffdc76c099c021e06b2ac1b1c69d151" S = "${UNPACKDIR}" @@ -28,12 +28,16 @@ do_install() { install -d ${D}${sysconfdir}/sensors/config install -d ${D}${sysconfdir}/sensors/registry install -d ${D}${systemd_system_unitdir} + install -d ${D}${nonarch_base_libdir}/firmware/qcom/shikra/sensors/config + install -d ${D}${sysconfdir}/udev/rules.d + install -d ${D}${localstatedir}/lib/tqftpserv/sensors/registry # Install binaries install -m 0755 ${S}/usr/bin/* ${D}${bindir}/ # Install library oe_libinstall -C ${S}/usr/lib -so libsensinghubapiprop ${D}${libdir} + oe_libinstall -C ${S}/usr/lib -so libsensinghubapipropc ${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 libsnsdiaglog ${D}${libdir} @@ -46,6 +50,11 @@ do_install() { install -m 0644 ${S}/etc/sensors/sns_reg_config ${D}${sysconfdir}/sensors/ install -m 0644 ${S}/etc/sensors/config/* ${D}${sysconfdir}/sensors/config/ install -m 0644 ${S}/etc/sensors/registry/sns_reg_version ${D}${sysconfdir}/sensors/registry/ + install -m 0644 ${S}/lib/firmware/qcom/shikra/sensors/config/* ${D}${nonarch_base_libdir}/firmware/qcom/shikra/sensors/config/ + install -m 0644 ${S}/lib/firmware/qcom/shikra/sensors/sns_reg_config ${D}${nonarch_base_libdir}/firmware/qcom/shikra/sensors/ + install -m 0644 ${S}/etc/udev/rules.d/99-rpmsg.rules ${D}${sysconfdir}/udev/rules.d/ + install -m 0644 ${S}/var/lib/tqftpserv/sensors/registry/sns_reg_version ${D}${localstatedir}/lib/tqftpserv/sensors/registry/ + install -m 0644 ${S}/var/lib/tqftpserv/sensors/registry/sensors_registry ${D}${localstatedir}/lib/tqftpserv/sensors/registry/ install -m 0644 ${S}${systemd_system_unitdir}/sscrpcd.service ${D}${systemd_system_unitdir}/sscrpcd.service # Install pkgconfig @@ -56,3 +65,5 @@ do_install() { } SYSTEMD_SERVICE:${PN} = "sscrpcd.service" + +FILES:${PN} += "${nonarch_base_libdir}/firmware/qcom/shikra/sensors/*" diff --git a/dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_1.0.6.bb b/dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_2.2.0.bb similarity index 75% rename from dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_1.0.6.bb rename to dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_2.2.0.bb index e800f809e..bd1be4978 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_1.0.6.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/sensors/sensinghub_2.2.0.bb @@ -4,11 +4,11 @@ HOMEPAGE = "https://github.com/qualcomm/sensinghub" LICENSE = "BSD-3-Clause-Clear" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9701d0ef17353f1d05d7b74c8712ebbd" -SRCREV = "c08dcfa05a39aaf7d9b7f3241f612d29a2df1073" +SRCREV = "cc4f596e119da90fad9efa54e744c5fca333d06f" SRC_URI = "git://github.com/qualcomm/sensinghub.git;protocol=https;branch=main;tag=v${PV}" -DEPENDS = "protobuf-camx protobuf-camx-native glib-2.0" +DEPENDS = "protobuf-camx protobuf-camx-native glib-2.0 nanopb-runtime nanopb-generator-native" inherit autotools pkgconfig