diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-08-12 17:41:40 -0300 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-08-14 18:48:16 +0000 |
| commit | 3b35d3f46e507262a2b6987699bdcee6e2ebf415 (patch) | |
| tree | 918c07a6729ec547f0463fbff414592ac31232a2 /dynamic-layers | |
| parent | 81abd98d6f22a4b6e63e251bc07d6c4a84c8001a (diff) | |
| download | meta-freescale-3b35d3f46e507262a2b6987699bdcee6e2ebf415.tar.gz | |
opencv: Document FILES overrides per oelint.var.filesoverride
oelint.var.filesoverride flags six FILES assignments in this recipe. All
are intentional and correct as written, so document each with an inline
# nooelint rather than rewriting it:
- ${PN} is intentionally empty (ALLOW_EMPTY:${PN}), with everything split
into the sub-packages and the PACKAGES_DYNAMIC libopencv-* packages.
- -dev is deliberately curated to headers/pkgconfig/cmake because the
per-library dev symlinks ship via those dynamic packages; += would re-add
the default ${libdir}/*.so and pull them out of the dynamic packages.
- -apps, -java, -samples and python3-opencv are recipe-specific split
packages with no default FILES, so '=' is a complete definition. These
lines are kept byte-identical to meta-oe opencv_4.13.0.bb to avoid drift
in this .imx fork.
No functional change.
Tested with opencv on imx8mp-lpddr4-evk; buildhistory unchanged.
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
(cherry picked from commit 2aeb8de99e5ef5a036f5c672eb56d515d96fe038)
Diffstat (limited to 'dynamic-layers')
| -rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb index e10048095..65b3f64b4 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/opencv_4.13.0.imx.bb | |||
| @@ -183,12 +183,24 @@ python populate_packages:prepend () { | |||
| 183 | 183 | ||
| 184 | PACKAGES_DYNAMIC += "^libopencv-.*" | 184 | PACKAGES_DYNAMIC += "^libopencv-.*" |
| 185 | 185 | ||
| 186 | # Main package is intentionally empty (see ALLOW_EMPTY below); everything is | ||
| 187 | # split into the sub-packages and the PACKAGES_DYNAMIC libopencv-* packages. | ||
| 188 | # nooelint: oelint.var.filesoverride | ||
| 186 | FILES:${PN} = "" | 189 | FILES:${PN} = "" |
| 187 | FILES:${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*" | 190 | FILES:${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*" |
| 191 | # -dev is curated to headers/pkgconfig/cmake; the per-library dev symlinks are | ||
| 192 | # packaged by the PACKAGES_DYNAMIC libopencv-* packages, not the main -dev. | ||
| 193 | # nooelint: oelint.var.filesoverride | ||
| 188 | FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/cmake/opencv4/*.cmake" | 194 | FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/cmake/opencv4/*.cmake" |
| 189 | FILES:${PN}-staticdev += "${libdir}/opencv4/3rdparty/*.a" | 195 | FILES:${PN}-staticdev += "${libdir}/opencv4/3rdparty/*.a" |
| 196 | # -apps/-java/-samples are recipe-specific split packages (no default FILES), so | ||
| 197 | # the '=' is a complete definition. Kept byte-identical to meta-oe | ||
| 198 | # opencv_4.13.0.bb to avoid fork drift; suppress the append-preference warning. | ||
| 199 | # nooelint: oelint.var.filesoverride | ||
| 190 | FILES:${PN}-apps = "${bindir}/* ${datadir}/opencv4 ${datadir}/licenses" | 200 | FILES:${PN}-apps = "${bindir}/* ${datadir}/opencv4 ${datadir}/licenses" |
| 201 | # nooelint: oelint.var.filesoverride | ||
| 191 | FILES:${PN}-java = "${datadir}/OpenCV/java" | 202 | FILES:${PN}-java = "${datadir}/OpenCV/java" |
| 203 | # nooelint: oelint.var.filesoverride | ||
| 192 | FILES:${PN}-samples = "${datadir}/opencv4/samples/" | 204 | FILES:${PN}-samples = "${datadir}/opencv4/samples/" |
| 193 | 205 | ||
| 194 | INSANE_SKIP:${PN}-java = "libdir" | 206 | INSANE_SKIP:${PN}-java = "libdir" |
| @@ -197,6 +209,9 @@ INSANE_SKIP:${PN}-dbg = "libdir" | |||
| 197 | ALLOW_EMPTY:${PN} = "1" | 209 | ALLOW_EMPTY:${PN} = "1" |
| 198 | 210 | ||
| 199 | SUMMARY:python3-opencv = "Python bindings to opencv" | 211 | SUMMARY:python3-opencv = "Python bindings to opencv" |
| 212 | # Recipe-specific split package (no default FILES); '=' is a complete definition. | ||
| 213 | # Kept byte-identical to meta-oe opencv_4.13.0.bb to avoid fork drift. | ||
| 214 | # nooelint: oelint.var.filesoverride | ||
| 200 | FILES:python3-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" | 215 | FILES:python3-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" |
| 201 | RDEPENDS:python3-opencv = "python3-core python3-numpy" | 216 | RDEPENDS:python3-opencv = "python3-core python3-numpy" |
| 202 | 217 | ||
