summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2026-09-10 15:06:52 -0300
committerGitHub <noreply@github.com>2026-09-10 15:06:52 -0300
commitba990f26cb6cbbc8b0ec4a719faf914adaf58fa6 (patch)
treebf55cbf7a25bdd402dfd66be865d541648f596c3 /recipes-graphics
parentdef11d13fc3b72f136385eb5a2c2c3e54fb9d581 (diff)
parentace8929de3c377335bc7caf8532203d4ef5745e5 (diff)
downloadmeta-freescale-ba990f26cb6cbbc8b0ec4a719faf914adaf58fa6.tar.gz
Merge pull request #2679 from lucianogdittgen/oelint-task-noanonpython
Remove or document the layer's anonymous python functions
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc60
-rw-r--r--recipes-graphics/mali/mali-imx.inc53
2 files changed, 62 insertions, 51 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 6876d7c57..a126d11af 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -73,7 +73,8 @@ PACKAGECONFIG ?= ""
73# Enables valgrind annotations for libgal-imx 73# Enables valgrind annotations for libgal-imx
74PACKAGECONFIG[valgrind] = "" 74PACKAGECONFIG[valgrind] = ""
75 75
76# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below 76# Note: if you add a package here, see the Debian-rename block at the end of
77# this file to prevent a naming conflict.
77PACKAGES =+ "\ 78PACKAGES =+ "\
78 libgles1-imx libgles1-imx-dev \ 79 libgles1-imx libgles1-imx-dev \
79 libgles2-imx libgles2-imx-dev \ 80 libgles2-imx libgles2-imx-dev \
@@ -115,6 +116,9 @@ PACKAGES_VULKAN:mx8mm-nxp-bsp = "libvulkan-imx libvulkan-imx-dev"
115# recognised even when the current parse does not activate those conditions. 116# recognised even when the current parse does not activate those conditions.
116PACKAGES_DYNAMIC += "^libgbm-imx ^libvulkan-imx ^libopenvx-imx" 117PACKAGES_DYNAMIC += "^libgbm-imx ^libvulkan-imx ^libopenvx-imx"
117 118
119# MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT is a machine capability flag that a
120# machine conf may set on its own, so COMPATIBLE_MACHINE cannot express this skip.
121# nooelint: oelint.task.noanonpython
118python __anonymous () { 122python __anonymous () {
119 has_vivante_kernel_driver_support = (d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT') or '0') 123 has_vivante_kernel_driver_support = (d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT') or '0')
120 if has_vivante_kernel_driver_support != '1': 124 if has_vivante_kernel_driver_support != '1':
@@ -134,33 +138,10 @@ INHIBIT_SYSROOT_STRIP = "1"
134REALSOLIBS := "${SOLIBS}" 138REALSOLIBS := "${SOLIBS}"
135SOLIBS = "${SOLIBSDEV}" 139SOLIBS = "${SOLIBSDEV}"
136 140
137python __anonymous() { 141# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
138 # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have 142# the source we cannot fix it. Disable the insane check for now.
139 # the source we cannot fix it. Disable the insane check for now. 143# nooelint: oelint.vars.insaneskip
140 packages = d.getVar('PACKAGES').split() 144INSANE_SKIP += "ldflags"
141 for p in packages:
142 d.appendVar("INSANE_SKIP:%s" % p, " ldflags")
143
144 # For the packages that make up the OpenGL interfaces, inject variables so that
145 # they don't get Debian-renamed (which would remove the -imx suffix).
146 for p in (("libegl", "libegl1"),
147 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"),
148 ("libgles3",), ("libgbm",)):
149 fullp = p[0] + "-imx"
150 pkgs = "".join(' %s' % i for i in p)
151 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
152 d.appendVar("RREPLACES:" + fullp, pkgs)
153 d.appendVar("RPROVIDES:" + fullp, pkgs)
154 d.appendVar("RCONFLICTS:" + fullp, pkgs)
155
156 # For -dev, the first element is both the Debian and original name
157 fullp += "-dev"
158 pkgs = p[0] + "-dev"
159 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
160 d.appendVar("RREPLACES:" + fullp, pkgs)
161 d.appendVar("RPROVIDES:" + fullp, pkgs)
162 d.appendVar("RCONFLICTS:" + fullp, pkgs)
163}
164 145
165IS_MX6SL = "0" 146IS_MX6SL = "0"
166IS_MX6SL:mx6sl-nxp-bsp = "1" 147IS_MX6SL:mx6sl-nxp-bsp = "1"
@@ -418,3 +399,26 @@ INSANE_SKIP:imx-gpu-viv-demos += "rpaths dev-deps"
418# nooelint: oelint.vars.insaneskip 399# nooelint: oelint.vars.insaneskip
419INSANE_SKIP:append:libc-musl = " file-rdeps" 400INSANE_SKIP:append:libc-musl = " file-rdeps"
420 401
402# The OpenGL interface packages keep their -imx suffix: Debian renaming would
403# drop it and collide with the generic mesa package names.
404DEBIAN_NOAUTONAME:libegl-imx = "1"
405DEBIAN_NOAUTONAME:libegl-imx-dev = "1"
406DEBIAN_NOAUTONAME:libgles1-imx = "1"
407DEBIAN_NOAUTONAME:libgles1-imx-dev = "1"
408DEBIAN_NOAUTONAME:libgles2-imx = "1"
409DEBIAN_NOAUTONAME:libgles2-imx-dev = "1"
410DEBIAN_NOAUTONAME:libgles3-imx-dev = "1"
411DEBIAN_NOAUTONAME:libgbm-imx = "1"
412DEBIAN_NOAUTONAME:libgbm-imx-dev = "1"
413
414# The generic names stay provided: consumers that dlopen a GL backend depend on
415# them by name rather than through shlibs, as cogl-1.0 does for libgles2.
416RPROVIDES:libegl-imx += "libegl"
417RPROVIDES:libegl-imx-dev += "libegl-dev"
418RPROVIDES:libgles1-imx += "libgles1"
419RPROVIDES:libgles1-imx-dev += "libgles1-dev"
420RPROVIDES:libgles2-imx += "libgles2"
421RPROVIDES:libgles2-imx-dev += "libgles2-dev"
422RPROVIDES:libgles3-imx-dev += "libgles3-dev"
423RPROVIDES:libgbm-imx += "libgbm"
424RPROVIDES:libgbm-imx-dev += "libgbm-dev"
diff --git a/recipes-graphics/mali/mali-imx.inc b/recipes-graphics/mali/mali-imx.inc
index 85658c494..4aed50c77 100644
--- a/recipes-graphics/mali/mali-imx.inc
+++ b/recipes-graphics/mali/mali-imx.inc
@@ -92,30 +92,37 @@ ALLOW_EMPTY:${PN}-libgles1-dev = "1"
92ALLOW_EMPTY:${PN}-libgles2-dev = "1" 92ALLOW_EMPTY:${PN}-libgles2-dev = "1"
93ALLOW_EMPTY:${PN}-libgles3-dev = "1" 93ALLOW_EMPTY:${PN}-libgles3-dev = "1"
94 94
95python __anonymous() { 95# The GPU interface packages keep their ${PN}- prefix: Debian renaming would
96# drop it and collide with the generic mesa package names.
97DEBIAN_NOAUTONAME:${PN}-libegl = "1"
98DEBIAN_NOAUTONAME:${PN}-libegl-dev = "1"
99DEBIAN_NOAUTONAME:${PN}-libgbm = "1"
100DEBIAN_NOAUTONAME:${PN}-libgbm-dev = "1"
101DEBIAN_NOAUTONAME:${PN}-libgles1 = "1"
102DEBIAN_NOAUTONAME:${PN}-libgles1-dev = "1"
103DEBIAN_NOAUTONAME:${PN}-libgles2 = "1"
104DEBIAN_NOAUTONAME:${PN}-libgles2-dev = "1"
105DEBIAN_NOAUTONAME:${PN}-libgles3 = "1"
106DEBIAN_NOAUTONAME:${PN}-libgles3-dev = "1"
96 107
97 # Avoid Debian-renaming 108# libmali.so is loaded with dlopen, so an explicit runtime dependency is necessary
98 for p in (("libegl", "libegl1" ), 109RDEPENDS:${PN}-libegl += "${PN}"
99 ("libgbm", "libgbm1" ), 110RDEPENDS:${PN}-libgbm += "${PN}"
100 ("libgles1", "libglesv1-cm1"), 111RDEPENDS:${PN}-libgles1 += "${PN}"
101 ("libgles2", "libglesv2-2" ), 112RDEPENDS:${PN}-libgles2 += "${PN}"
102 ("libgles3", )): 113RDEPENDS:${PN}-libgles3 += "${PN}"
103 fullp = "${PN}-" + p[0]
104 pkgs = "".join(' %s' % i for i in p)
105 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
106 d.appendVar("RREPLACES:" + fullp, pkgs)
107 d.appendVar("RPROVIDES:" + fullp, pkgs)
108 d.appendVar("RCONFLICTS:" + fullp, pkgs)
109 # libmali.so is loaded with dlopen, so an explicit runtime dependency is necessary
110 d.appendVar("RDEPENDS:" + fullp, "${PN}")
111 114
112 # For -dev, the first element is both the Debian and original name 115# The generic names stay provided: consumers that dlopen a GL backend depend on
113 fullp += "-dev" 116# them by name rather than through shlibs, as cogl-1.0 does for libgles2.
114 pkgs = p[0] + "-dev" 117RPROVIDES:${PN}-libegl += "libegl"
115 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") 118RPROVIDES:${PN}-libegl-dev += "libegl-dev"
116 d.appendVar("RREPLACES:" + fullp, pkgs) 119RPROVIDES:${PN}-libgbm += "libgbm"
117 d.appendVar("RPROVIDES:" + fullp, pkgs) 120RPROVIDES:${PN}-libgbm-dev += "libgbm-dev"
118 d.appendVar("RCONFLICTS:" + fullp, pkgs) 121RPROVIDES:${PN}-libgles1 += "libgles1"
119} 122RPROVIDES:${PN}-libgles1-dev += "libgles1-dev"
123RPROVIDES:${PN}-libgles2 += "libgles2"
124RPROVIDES:${PN}-libgles2-dev += "libgles2-dev"
125RPROVIDES:${PN}-libgles3 += "libgles3"
126RPROVIDES:${PN}-libgles3-dev += "libgles3-dev"
120 127
121COMPATIBLE_MACHINE = "(mx95-nxp-bsp)" 128COMPATIBLE_MACHINE = "(mx95-nxp-bsp)"