Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ on:
default: 'qcom-multimedia-image-rb3gen2-core-kit.rootfs.qcomflash.tar.gz'

env:
RB3GEN2_ROOTFS_KEY: qualcomm-linux-stg/qcom-multimedia-image-rb3gen2-core-kit.rootfs.qcomflash.tar.gz
S3_BUCKET: qli-stg-gen-qlnx-gh-artifacts
RB3GEN2_ROOTFS_KEY: qcom-multimedia-image-rb3gen2-core-kit.rootfs.qcomflash.tar.gz
S3_BUCKET: qli-prd-sensors-gh-artifacts

jobs:
build:
runs-on:
group: GHA-Gen-Qlnx-Stg-SelfHosted-RG
labels: [ self-hosted, gen-qlnx-stg-u2404-x64-md-od-ephem ]
group: GHA-Sensors-Prd-SelfHosted-RG
labels: [ self-hosted, sensors-prd-u2404-x64-large-od-ephem ]
strategy:
fail-fast: false
outputs:
Expand Down Expand Up @@ -364,7 +364,7 @@ jobs:
s3_bucket: ${{ env.S3_BUCKET }}
local_file: ${{ steps.make_file_list_all.outputs.file_list_all }}
mode: multi-upload
upload_location: qualcomm-linux-stg/sensinghub/${{ github.run_id }}-${{ github.run_attempt }}
upload_location: qualcomm/sensinghub/${{ github.run_id }}-${{ github.run_attempt }}

publish_summary:
needs: [build]
Expand All @@ -379,4 +379,4 @@ jobs:
echo "- Build script: ${{ inputs.build_script }}" >> $GITHUB_STEP_SUMMARY
echo "- Build args: ${{ inputs.build_args }}" >> $GITHUB_STEP_SUMMARY
echo "- Uploaded to S3 bucket: ${{ env.S3_BUCKET }}" >> $GITHUB_STEP_SUMMARY
echo "- Upload location: qualcomm-linux-stg/sensinghub/${{ github.run_id }}-${{ github.run_attempt }}" >> $GITHUB_STEP_SUMMARY
echo "- Upload location: qualcomm/sensinghub/${{ github.run_id }}-${{ github.run_attempt }}" >> $GITHUB_STEP_SUMMARY
18 changes: 9 additions & 9 deletions .github/workflows/qcom-preflight-checks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Qualcomm Preflight Checks

on:
pull_request_target:
pull_request:
branches: [ main ]
push:
branches: [ main ]
Expand All @@ -13,13 +13,13 @@ permissions:

jobs:
qcom-preflight-checks:
uses: qualcomm/qcom-reusable-workflows/.github/workflows/qcom-preflight-checks-reusable-workflow.yml@v1.1.4
uses: qualcomm/qcom-reusable-workflows/.github/workflows/reusable-qcom-preflight-checks-orchestrator.yml@v2
with:
# ✅ Preflight Checkers
repolinter: true
semgrep: true
copyright-license-detector: true
pr-check-emails: true
dependency-review: true
secrets:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
enable-repolinter-check: true # default: true
enable-semgrep-scan: true # default: true
enable-copyright-license-check: true # default: true
enable-commit-email-check: true # default: true
enable-dependency-review: true # default: true
enable-armor-checkers: true
armor-checker-options: '{"build-script":"ci/build.sh","runs-on":{"group":"GHA-Sensors-Prd-SelfHosted-RG","labels":["self-hosted","sensors-prd-u2404-x64-large-od-ephem"]}}'
63 changes: 0 additions & 63 deletions .github/workflows/run_armor.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ ACLOCAL_AMFLAGS = -I m4

dirs = apis/proto \
session/1.0 \
examples/SessionClient
examples/SessionClient \
utils

SUBDIRS = $(dirs)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Thanks for your interest in contributing to Qualcomm Sensing Hub! Please read ou

## License

Qualcomm Sensing Hub is licensed under the BSD 3-clause "New" or "Revised" License. Check out the [LICENSE](LICENSE.txt) for more details.
Qualcomm Sensing Hub is licensed under the BSD 3-clause "New" or "Revised" License. Check out the [LICENSE](LICENSE.txt) for more details
2 changes: 1 addition & 1 deletion apis/proto/sns_suid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @brief Defines standard message types to request and receive SUIDs.
//
// @copyright
// Copyright (c) 2023-2025 Qualcomm Innovation Center, Inc. All rights reserved.
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// SPDX-License-Identifier: BSD-3-Clause-Clear
//
// @details This file provides definitions for requests and parameters for
Expand Down
3 changes: 2 additions & 1 deletion build_config/sensinghub_vendor_product.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SENSING_HUB_PRODUCTS := libsensinghubapi
SENSING_HUB_PRODUCTS += libsensinghubsession
SENSING_HUB_PRODUCTS += libqshUtil

SNS_VENDOR_PRODUCTS_DBG := descriptor.proto
SNS_VENDOR_PRODUCTS_DBG += nanopb.proto
Expand Down Expand Up @@ -39,5 +40,5 @@ SNS_VENDOR_PRODUCTS_DBG += sns_std_type.proto
SNS_VENDOR_PRODUCTS_DBG += sns_suid.proto
SNS_VENDOR_PRODUCTS_DBG += sns_tilt.proto

PRODUCT_PACKAGES += SENSING_HUB_PRODUCTS
PRODUCT_PACKAGES += $(SENSING_HUB_PRODUCTS)
PRODUCT_PACKAGES_DEBUG += $(SNS_VENDOR_PRODUCTS_DBG)
41 changes: 36 additions & 5 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
#!/usr/bin/env bash
#!/bin/bash
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.

set -euxo pipefail

echo "Running SensingHub build script..."

cd "${GITHUB_WORKSPACE}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Load default build args if not provided
if [ -z "${BUILD_ARGS:-}" ]; then
source "${SCRIPT_DIR}/build_args.sh"
fi

echo "BUILD_ARGS=${BUILD_ARGS}"

sudo apt-get clean
sudo apt-get update -y

sudo apt-get install -y --no-install-recommends \
autoconf \
automake \
libtool \
pkg-config \
make \
gcc \
g++ \
libprotobuf-dev \
protobuf-compiler \
libglib2.0-dev


WORKSPACE="${GITHUB_WORKSPACE:-$(pwd)}"
cd "${WORKSPACE}"

rm -rf build || true
mkdir -p build

autoreconf -fi
./configure --prefix=/usr ${BUILD_ARGS:-}
./configure ${BUILD_ARGS}
make -j"$(nproc)"
make DESTDIR="${GITHUB_WORKSPACE}/build" install
make DESTDIR="${WORKSPACE}/build" install

echo "Build done. Listing build/:"
echo "Build completed successfully."
8 changes: 8 additions & 0 deletions ci/build_args.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.

# Default build arguments for SensingHub

BUILD_ARGS="--host=arm-poky-linux --prefix=/usr --enable-shared"
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ AC_ARG_ENABLE(versioned-lib,
[VERSIONED_LIB="no"])
AM_CONDITIONAL([ENABLE_VERSIONED_LIB], [test "x${VERSIONED_LIB}" != "xno"])

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, AC_MSG_ERROR(GLib >= 2.16 is required))
GLIB_CFLAGS="$GLIB_CFLAGS"
GLIB_LIBS="$GLIB_LIBS"
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes")
m4_define([LT_MAJOR], [1])
m4_define([LT_MINOR], [0])
m4_define([LT_PATCH], [0])
Expand All @@ -86,6 +93,7 @@ AC_CONFIG_FILES([ \
apis/proto/Makefile \
session/1.0/Makefile \
examples/SessionClient/Makefile \
utils/Makefile \
sensing-hub.pc
])
AC_OUTPUT
Expand Down
31 changes: 0 additions & 31 deletions debian/changelog

This file was deleted.

25 changes: 0 additions & 25 deletions debian/control

This file was deleted.

36 changes: 0 additions & 36 deletions debian/copyright

This file was deleted.

1 change: 0 additions & 1 deletion debian/not-installed

This file was deleted.

3 changes: 0 additions & 3 deletions debian/qcom-sensing-hub-dev.install

This file was deleted.

3 changes: 0 additions & 3 deletions debian/qcom-sensing-hub.install

This file was deleted.

9 changes: 0 additions & 9 deletions debian/rules

This file was deleted.

1 change: 0 additions & 1 deletion debian/source/format

This file was deleted.

8 changes: 8 additions & 0 deletions public_headers/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ branches:
headers:
- common/inc/*.h
- session/1.0/inc/*.h
- utils/inc/*.h

abi_checks:
- path: build/usr/lib
include_globs:
- libsensinghubapi.so
- libsensinghubsession.so
- libqshUtil.so
4 changes: 2 additions & 2 deletions sensing-hub.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ includedir=@includedir@
Name: sensing-hub
Description: sensing-hub library
Version: @LT_VERSION@
Libs: -L${libdir} -lsensinghubapi -lsensinghubsession
Cflags: -I${includedir}/sensing-hub/common/inc/ -I${includedir}/sensing-hub/session/1.0/inc/
Libs: -L${libdir} -lsensinghubapi -lsensinghubsession -lqshUtil
Cflags: -I${includedir}/sensing-hub/common/inc/ -I${includedir}/sensing-hub/session/1.0/inc/ -I${includedir}/sensing-hub/utils/inc
Loading
Loading