-
Notifications
You must be signed in to change notification settings - Fork 9
Fixes to barton-matter-example #40
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
base: main
Are you sure you want to change the base?
Changes from all commits
5abd0e9
47898bf
7085632
ab88b18
2a52e9d
7a1cea9
bf6df0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| DESCRIPTION = "Barton IoT Platform Library" | ||
| HOMEPAGE = "https://github.com/rdkcentral/BartonCommon" | ||
| LICENSE = "Apache-2.0" | ||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=1079582effd6f382a3fba8297d579b46" | ||
|
|
||
| DEPENDS:append = " \ | ||
| cjson \ | ||
| curl \ | ||
| dbus \ | ||
| glib-2.0 \ | ||
| mbedtls \ | ||
| libxml2 \ | ||
| " | ||
|
|
||
| SRC_URI = "git://git@github.com/rdkcentral/BartonCommon.git;protocol=ssh;name=barton;nobranch=1" | ||
| SRCREV = "aadf6f2b18991deb9bd261adb8125e3caa4abfcd" | ||
| S = "${WORKDIR}/git" | ||
| PR = "r0" | ||
|
|
||
| inherit cmake pkgconfig | ||
|
|
||
| EXTRA_OECMAKE = "\ | ||
| -DBUILD_TESTING=OFF \ | ||
| " | ||
|
|
||
| do_install() { | ||
| install -d ${D}/${libdir} | ||
| # Copy static libraries to ${libdir} | ||
| find ${WORKDIR}/build -name "*.a" -exec cp {} ${D}/${libdir}/ \; | ||
|
|
||
| install -d ${D}${includedir} | ||
|
|
||
| # Copy any subdirectory of ${S}/libs/*/c/public to ${includedir} | ||
| for dir in ${S}/libs/*/c/public; do | ||
| if [ -d "$dir" ]; then | ||
| cp -r --no-preserve=ownership "$dir"/* ${D}${includedir} | ||
| fi | ||
| done | ||
|
|
||
| # device helper special case | ||
| cp -r --no-preserve=ownership ${S}/libs/device/helper/c/public/* ${D}${includedir} | ||
| } | ||
|
|
||
| FILES_${PN}-dev += "${libdir}/*.a" | ||
| FILES_${PN}-dev += "${includedir}" | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,82 @@ | ||||||
| DESCRIPTION = "Barton IoT Platform Library" | ||||||
| HOMEPAGE = "https://github.com/rdkcentral/BartonCore" | ||||||
| LICENSE = "Apache-2.0" | ||||||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=1079582effd6f382a3fba8297d579b46" | ||||||
|
|
||||||
| DEPENDS:append = " \ | ||||||
| cjson \ | ||||||
| curl \ | ||||||
| dbus \ | ||||||
| glib-2.0 \ | ||||||
| mbedtls \ | ||||||
| libxml2 \ | ||||||
| barton-common \ | ||||||
| " | ||||||
|
|
||||||
| RPROVIDES_${PN} += "barton" | ||||||
|
||||||
| RPROVIDES_${PN} += "barton" | |
| RPROVIDES:${PN} += "barton" |
Copilot
AI
Jan 13, 2026
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.
The variable syntax RDEPENDS_${PN} is deprecated in modern BitBake/Yocto. The recommended syntax uses a colon separator instead of an underscore. This should be changed to RDEPENDS:${PN} to align with current best practices and avoid potential deprecation warnings in newer Yocto releases.
| RDEPENDS_${PN}:append = "${@bb.utils.contains('BARTON_BUILD_THREAD', 'ON', ' otbr-agent', '', d)}" | |
| RDEPENDS:${PN}:append = "${@bb.utils.contains('BARTON_BUILD_THREAD', 'ON', ' otbr-agent', '', d)}" |
Copilot
AI
Jan 13, 2026
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.
The variable syntax FILES_${PN} is deprecated in modern BitBake/Yocto. The recommended syntax uses a colon separator instead of an underscore. These should be changed to FILES:${PN} to align with current best practices and avoid potential deprecation warnings in newer Yocto releases.
Copilot
AI
Jan 13, 2026
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.
The variable syntax INSANE_SKIP_${PN} is deprecated in modern BitBake/Yocto. The recommended syntax uses a colon separator instead of an underscore. This should be changed to INSANE_SKIP:${PN} to align with current best practices and avoid potential deprecation warnings in newer Yocto releases.
| INSANE_SKIP_${PN}-dev += "dev-elf" | |
| INSANE_SKIP:${PN}-dev += "dev-elf" |
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.
The variable syntax
FILES_${PN}is deprecated in modern BitBake/Yocto. The recommended syntax uses a colon separator instead of an underscore. These should be changed toFILES:${PN}to align with current best practices and avoid potential deprecation warnings in newer Yocto releases.