Skip to content

Commit 1f0bdd3

Browse files
committed
fix: resolve gst-bridge compile error
Update the commit id align with Mar 5 meta-qcom nightly build. Fix the ros-gst-bridge do_configure task error. Signed-off-by: Teng Fan <tengf@qti.qualcomm.com>
1 parent 61d0a12 commit 1f0bdd3

File tree

8 files changed

+105
-75
lines changed

8 files changed

+105
-75
lines changed

ci/base.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
header:
44
version: 14
55

6-
distro: poky-altcfg
6+
distro: nodistro
77

88
defaults:
99
repos:
1010
branch: master
1111

1212
repos:
1313
meta-qcom:
14-
url: "https://github.com/qualcomm-linux/meta-qcom.git"
15-
branch: master
1614

1715
oe-core:
1816
url: https://github.com/openembedded/openembedded-core
@@ -24,27 +22,48 @@ repos:
2422
layers:
2523
.: disabled
2624

27-
meta-yocto:
28-
url: https://git.yoctoproject.org/meta-yocto
29-
layers:
30-
meta-poky:
31-
3225
local_conf_header:
3326
base: |
3427
CONF_VERSION = "2"
3528
INHERIT += "buildstats-summary"
3629
INHERIT += "buildhistory"
3730
INHERIT += "rm_work"
31+
INHERIT += "image-buildinfo"
32+
diskmon: |
33+
BB_DISKMON_DIRS ??= "\
34+
STOPTASKS,${TMPDIR},1G,100K \
35+
STOPTASKS,${DL_DIR},1G,100K \
36+
STOPTASKS,${SSTATE_DIR},1G,100K \
37+
STOPTASKS,/tmp,100M,100K \
38+
HALT,${TMPDIR},100M,1K \
39+
HALT,${DL_DIR},100M,1K \
40+
HALT,${SSTATE_DIR},100M,1K \
41+
HALT,/tmp,10M,1K"
42+
clo-mirrors: |
43+
# clo-mirrors
44+
MIRRORS:append = " \
45+
git://github.com git://git.codelinaro.org/clo/yocto-mirrors/github/ \
46+
git://.*/ git://git.codelinaro.org/clo/yocto-mirrors/ \
47+
https://.*/.*/ https://artifacts.codelinaro.org/codelinaro-le/ \
48+
"
49+
# All the download files of meta-qcom layer have been deployed on this server.
50+
PREMIRRORS:prepend = "\
51+
.*://.*/.* https://artifacts.codelinaro.org/artifactory/qli-ci/downloads/main/ \n \
52+
"
3853
cmdline: |
3954
KERNEL_CMDLINE_EXTRA:append = " qcom_scm.download_mode=1"
4055
qcomflash: |
4156
IMAGE_CLASSES += "image_types_qcom"
4257
IMAGE_FSTYPES += "qcomflash"
4358
extra: |
44-
DISTRO_FEATURES:append = " efi pni-names"
59+
DISTRO_FEATURES:append = " efi pam pni-names"
4560
EXTRA_IMAGE_FEATURES = "allow-empty-password empty-root-password allow-root-login"
4661
IMAGE_ROOTFS_EXTRA_SPACE = "307200"
4762
WATCHDOG_RUNTIME_SEC:pn-systemd = "30"
63+
uninative: |
64+
INHERIT:remove = "uninative"
65+
sstate: |
66+
BB_SIGNATURE_HANDLER = "OEBasicHash"
4867
4968
machine: unset
5069

ci/qcom-distro.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ repos:
3737
branch: master
3838
url: https://github.com/uptane/meta-updater
3939

40+
meta-security:
41+
url: https://git.yoctoproject.org/meta-security
42+
branch: master
43+
layers:
44+
.:
45+
meta-tpm:
46+
4047
local_conf_header:
4148
virtualization:
4249
SKIP_META_VIRT_SANITY_CHECK = "1"

ci/qcom-robotics-distro.yml

Lines changed: 22 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ repos:
99
meta-qcom-robotics-sdk:
1010

1111
meta-qcom:
12-
url: https://github.com/qualcomm-linux/meta-qcom.git
13-
branch: master
14-
commit: 5c1e91fcbb9bb2149c89e395acc8e19869d43a8a
12+
url: https://github.com/qualcomm-linux/meta-qcom
13+
commit: 3b2c2c8b815e135a01db7b6a77e3a0c57048bca8
1514
oe-core:
1615
url: https://github.com/openembedded/openembedded-core
1716
layers:
@@ -20,21 +19,16 @@ repos:
2019
fix-BSD-license-missing:
2120
repo: meta-qcom-robotics-sdk
2221
path: patches/Initial-commit-of-license.patch
23-
commit: 4c31a7b410fc9c14815c6853431c7bd56c0e173c
22+
commit: d3e757f21403554e7064c5fa2b353080d14d2ce7
2423
bitbake:
2524
url: https://github.com/openembedded/bitbake
2625
layers:
2726
.: disabled
28-
commit: cdd79c1768ac396a9c6577e38098da4331507f24
29-
meta-yocto:
30-
url: https://git.yoctoproject.org/meta-yocto
31-
layers:
32-
meta-poky:
33-
commit: de4abc0a175af12eacc761a2e1e60ca7fdfeaa1b
27+
commit: 48efc36b4e03f736e7521d269ced3417522784e9
3428
meta-qcom-distro:
3529
url: https://github.com/qualcomm-linux/meta-qcom-distro
3630
branch: main
37-
commit: 9754815d7eeb95e68db943dbae342496a586f53f
31+
commit: 98e83ead3caa95184d2a37e02b4b6928caa754a4
3832
meta-openembedded:
3933
url: https://github.com/openembedded/meta-openembedded
4034
layers:
@@ -45,23 +39,30 @@ repos:
4539
meta-oe:
4640
meta-python:
4741
meta-xfce:
48-
commit: dfd6cf901aa530eb924ed62ad2498f8abf43fed2
42+
commit: 7bc5268662f1428bdbca08e14d223aa6b62e87f3
4943
meta-virtualization:
5044
url: https://git.yoctoproject.org/git/meta-virtualization
5145
branch: master
52-
commit: 28d26fd95397bf575e65fcca0cbb302b1e9bc7ff
46+
commit: a1e1a021b49f5257d8908aa9b8c2ee9c083e674c
5347
meta-audioreach:
5448
url: https://github.com/AudioReach/meta-audioreach
5549
branch: master
56-
commit: f864c62336a771b05b6d1e03a1092ddd286f4038
50+
commit: 7cd6eeb2c6bfda35a622df9a37eb5bbf0371253e
5751
meta-selinux:
5852
branch: master
5953
url: https://git.yoctoproject.org/meta-selinux
60-
commit: d670531ad7e6cd0dac08010fbd9b604501391245
54+
commit: 27758bca5ad8f74f387de5cc7c88e73ef2aed951
6155
meta-updater:
6256
branch: master
6357
url: https://github.com/uptane/meta-updater
64-
commit: 1e9ec9b9c10bd16c018bf5440ed6ffc56789dab0
58+
commit: 9fb4d7e2c087511d3dff233ebd342f35facf4cde
59+
meta-security:
60+
url: https://git.yoctoproject.org/meta-security
61+
branch: master
62+
layers:
63+
.:
64+
meta-tpm:
65+
commit: 9e6d962250aab6e5319215f15b0201ef233c46cd
6566

6667
meta-ros:
6768
url: https://github.com/ros/meta-ros.git
@@ -83,16 +84,7 @@ repos:
8384
commit: fceba46917fe9473e64534d972d3cf853aa7674d
8485

8586
local_conf_header:
86-
base: |
87-
CONF_VERSION = "2"
88-
INHERIT += "buildstats-summary"
89-
INHERIT += "buildhistory"
90-
INHERIT += "rm_work"
91-
92-
# Disable the libcamera recipe to avoid conflicts with the meta-qcom-distro libcamera recipe
93-
BBMASK .= "|^${TOPDIR}/meta-ros/meta-ros-common/recipes-multimedia/libcamera/.*"
94-
PREFERRED_VERSION_libcamera = "1:0.6.0"
95-
87+
resource_limitation: |
9688
# Capture the count of cpu cores available from the host.
9789
CPU_COUNT = "${@oe.utils.cpu_count(at_least=2)}"
9890
@@ -116,19 +108,10 @@ local_conf_header:
116108
117109
# Determines how many processes make should run in parallel when running compile tasks.
118110
PARALLEL_MAKE ?= "-j ${THREAD_COUNT} -l ${THREAD_COUNT}"
119-
120-
cmdline: |
121-
KERNEL_CMDLINE_EXTRA:append = " qcom_scm.download_mode=1"
122-
qcomflash: |
123-
IMAGE_CLASSES += "image_types_qcom"
124-
IMAGE_FSTYPES += "qcomflash"
125-
extra: |
126-
DISTRO_FEATURES:append = " efi pni-names"
127-
EXTRA_IMAGE_FEATURES = "allow-empty-password empty-root-password allow-root-login"
128-
IMAGE_ROOTFS_EXTRA_SPACE = "307200"
129-
WATCHDOG_RUNTIME_SEC:pn-systemd = "30"
130-
robotics_base: |
131-
PATCHRESOLVE = "noop"
111+
libcamera_mask: |
112+
# Disable the libcamera recipe to avoid conflicts with the meta-qcom-distro libcamera recipe
113+
BBMASK .= "|^${TOPDIR}/meta-ros/meta-ros-common/recipes-multimedia/libcamera/.*"
114+
PREFERRED_VERSION_libcamera = "1:0.6.0"
132115
133116
distro: qcom-robotics-ros2-jazzy
134117
target: qcom-robotics-image

recipes/ros-gst-bridge/ros-gst-bridge-audio-msgs_0.0.0.bb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
inherit ros_distro_${ROS_DISTRO}
22
inherit ros_component
3+
inherit robotics-package
34

45
DESCRIPTION = "audio_msgs: subpackage of ros-gst-bridge."
56
LICENSE = "Apache-2.0"
@@ -13,8 +14,6 @@ ROS_BPN = "audio_msgs"
1314

1415
S = "${UNPACKDIR}/${PN}-${PV}/${ROS_CN}"
1516

16-
inherit robotics-package
17-
1817
ROS_BUILD_TYPE = "ament_cmake"
1918
inherit ros_${ROS_BUILD_TYPE}
2019

@@ -40,8 +39,8 @@ ROS_TEST_DEPENDS = " \
4039

4140
DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
4241

43-
EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
44-
EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
42+
# EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
43+
# EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
4544

4645
FILES:${PN} += "${libdir}"
4746

recipes/ros-gst-bridge/ros-gst-bridge-msgs_0.0.0.bb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
inherit ros_distro_${ROS_DISTRO}
22
inherit ros_component
3+
inherit robotics-package
34

45
DESCRIPTION = "gst_msgs: subpackage of ros-gst-bridge."
56
LICENSE = "Apache-2.0"
@@ -13,8 +14,6 @@ ROS_BPN = "gst_msgs"
1314

1415
S = "${UNPACKDIR}/${PN}-${PV}/${ROS_CN}"
1516

16-
inherit robotics-package
17-
1817
ROS_BUILD_TYPE = "ament_cmake"
1918
inherit ros_${ROS_BUILD_TYPE}
2019

@@ -40,8 +39,8 @@ ROS_TEST_DEPENDS = " \
4039

4140
DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
4241

43-
EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
44-
EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
42+
# EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
43+
# EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
4544

4645
FILES:${PN} += "${libdir}"
4746

recipes/ros-gst-bridge/ros-gst-bridge-pipeline-plugins_0.0.0.bb

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
inherit ros_distro_${ROS_DISTRO}
22
inherit ros_component
3+
inherit robotics-package
34

45
DESCRIPTION = "This package provides a ROS node that hosts a gstreamer pipeline inside a ROS composable node. This is similar to the gscam2 package, but here we use the gst-bridge package for shared-memory IO, allowing this package to focus on supporting features we attach to the pipeline itself."
56
LICENSE = "LGPL-3.0-only"
@@ -13,8 +14,6 @@ ROS_BPN = "gst_pipeline_plugins"
1314

1415
S = "${UNPACKDIR}/${PN}-${PV}/${ROS_CN}"
1516

16-
inherit robotics-package
17-
1817
ROS_BUILD_TYPE = "ament_cmake"
1918
inherit ros_${ROS_BUILD_TYPE}
2019

@@ -32,6 +31,7 @@ ROS_BUILD_DEPENDS = " \
3231
ros-gst-bridge-msgs \
3332
ros-gst-bridge \
3433
ros-gst-bridge-pipeline \
34+
gstreamer1.0 \
3535
gstreamer1.0-plugins-base \
3636
image-transport \
3737
cv-bridge \
@@ -62,12 +62,19 @@ ROS_TEST_DEPENDS = " \
6262
"
6363

6464
DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
65-
DEPENDS += "pkgconfig-native"
65+
DEPENDS += "pkgconfig-native pkgconfig gstreamer1.0 glib-2.0"
66+
67+
do_configure:prepend() {
68+
export PKG_CONFIG_SYSROOT_DIR="${RECIPE_SYSROOT}"
69+
export PKG_CONFIG_PATH="${RECIPE_SYSROOT}${libdir}/pkgconfig:${RECIPE_SYSROOT}${datadir}/pkgconfig"
70+
export PKG_CONFIG_LIBDIR="${RECIPE_SYSROOT}${libdir}/pkgconfig:${RECIPE_SYSROOT}${datadir}/pkgconfig"
71+
}
72+
73+
# EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
74+
# EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
6675

67-
EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
68-
EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
6976
# Disable format-security for error: "format not a string literal and no format arguments"
70-
EXTRA_OECMAKE:append = " -DCMAKE_CXX_FLAGS='-Wno-error=format-security'"
77+
EXTRA_OECMAKE:append = " -DCMAKE_CXX_FLAGS=-Wno-error=format-security"
7178

7279
# Skip build of tests for QA issues
7380
INSANE_SKIP:${PN} += "buildpaths"

recipes/ros-gst-bridge/ros-gst-bridge-pipeline_0.0.0.bb

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
inherit ros_distro_${ROS_DISTRO}
22
inherit ros_component
3+
inherit robotics-package
34

45
DESCRIPTION = "This package provides a ROS node that hosts a gstreamer pipeline inside a ROS composable node. This is similar to the gscam2 package, but here we use the gst-bridge package for shared-memory IO, allowing this package to focus on supporting features we attach to the pipeline itself."
56
LICENSE = "LGPL-3.0-only"
@@ -13,8 +14,6 @@ ROS_BPN = "gst_pipeline"
1314

1415
S = "${UNPACKDIR}/${PN}-${PV}/${ROS_CN}"
1516

16-
inherit robotics-package
17-
1817
ROS_BUILD_TYPE = "ament_cmake"
1918
inherit ros_${ROS_BUILD_TYPE}
2019

@@ -24,6 +23,7 @@ ROS_BUILDTOOL_DEPENDS = " \
2423
"
2524

2625
ROS_BUILD_DEPENDS = " \
26+
gstreamer1.0 \
2727
gstreamer1.0-plugins-base \
2828
rclcpp \
2929
rclcpp-components \
@@ -61,12 +61,19 @@ ROS_TEST_DEPENDS = " \
6161
"
6262

6363
DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
64-
DEPENDS += "pkgconfig-native"
64+
DEPENDS += "pkgconfig-native pkgconfig gstreamer1.0 glib-2.0"
65+
66+
do_configure:prepend() {
67+
export PKG_CONFIG_SYSROOT_DIR="${RECIPE_SYSROOT}"
68+
export PKG_CONFIG_PATH="${RECIPE_SYSROOT}${libdir}/pkgconfig:${RECIPE_SYSROOT}${datadir}/pkgconfig"
69+
export PKG_CONFIG_LIBDIR="${RECIPE_SYSROOT}${libdir}/pkgconfig:${RECIPE_SYSROOT}${datadir}/pkgconfig"
70+
}
71+
72+
# EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
73+
# EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
6574

66-
EXTRA_OECMAKE += "-DSYSROOT_LIBDIR=${STAGING_LIBDIR}"
67-
EXTRA_OECMAKE += "-DGST_PLUGINS_QTI_OSS_INSTALL_LIBDIR=${libdir}"
6875
# Disable format-security for error: "format not a string literal and no format arguments"
69-
EXTRA_OECMAKE:append = " -DCMAKE_CXX_FLAGS='-Wno-error=format-security'"
76+
EXTRA_OECMAKE:append = " -DCMAKE_CXX_FLAGS=-Wno-error=format-security"
7077
# Skip build of tests for QA issues
7178
INSANE_SKIP:${PN} += "buildpaths"
7279

0 commit comments

Comments
 (0)