summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-08 14:14:41 -0300
committerLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-10 14:12:25 -0300
commitf8c58a0c53a41ac3ae562255ba14c2834ea3d654 (patch)
treed456297ee3aa920063e4d4ac1868dc9f9e90c699 /recipes-graphics
parent7b45fea945631df553e426eff4a5c2cc167705aa (diff)
downloadmeta-freescale-f8c58a0c53a41ac3ae562255ba14c2834ea3d654.tar.gz
mali-imx: Replace the packaging python with static assignments
The loop ran over a fixed set of five packages, so parse-time code was never needed; the file already writes these assignments statically for ${PN}-libgles-dev. Grouped by variable rather than by package. Tested with bitbake mali-imx -C package on imx95-19x19-verdin; every value is token-identical and buildhistory reports no change. Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/mali/mali-imx.inc73
1 files changed, 50 insertions, 23 deletions
diff --git a/recipes-graphics/mali/mali-imx.inc b/recipes-graphics/mali/mali-imx.inc
index e041c81d9..50fa1a94d 100644
--- a/recipes-graphics/mali/mali-imx.inc
+++ b/recipes-graphics/mali/mali-imx.inc
@@ -90,30 +90,57 @@ RDEPENDS:${PN}-libgles3-dev = "${PN}-libgles-dev"
90FILES:${PN}-opencl-icd-dev += "\ 90FILES:${PN}-opencl-icd-dev += "\
91 ${bindir}/mali_clcc" 91 ${bindir}/mali_clcc"
92 92
93python __anonymous() { 93# The GPU interface packages keep their ${PN}- prefix: Debian renaming would
94# drop it and collide with the generic mesa package names.
95DEBIAN_NOAUTONAME:${PN}-libegl = "1"
96DEBIAN_NOAUTONAME:${PN}-libegl-dev = "1"
97DEBIAN_NOAUTONAME:${PN}-libgbm = "1"
98DEBIAN_NOAUTONAME:${PN}-libgbm-dev = "1"
99DEBIAN_NOAUTONAME:${PN}-libgles1 = "1"
100DEBIAN_NOAUTONAME:${PN}-libgles1-dev = "1"
101DEBIAN_NOAUTONAME:${PN}-libgles2 = "1"
102DEBIAN_NOAUTONAME:${PN}-libgles2-dev = "1"
103DEBIAN_NOAUTONAME:${PN}-libgles3 = "1"
104DEBIAN_NOAUTONAME:${PN}-libgles3-dev = "1"
94 105
95 # Avoid Debian-renaming 106RREPLACES:${PN}-libegl += "libegl libegl1"
96 for p in (("libegl", "libegl1" ), 107RREPLACES:${PN}-libegl-dev += "libegl-dev"
97 ("libgbm", "libgbm1" ), 108RREPLACES:${PN}-libgbm += "libgbm libgbm1"
98 ("libgles1", "libglesv1-cm1"), 109RREPLACES:${PN}-libgbm-dev += "libgbm-dev"
99 ("libgles2", "libglesv2-2" ), 110RREPLACES:${PN}-libgles1 += "libgles1 libglesv1-cm1"
100 ("libgles3", )): 111RREPLACES:${PN}-libgles1-dev += "libgles1-dev"
101 fullp = "${PN}-" + p[0] 112RREPLACES:${PN}-libgles2 += "libgles2 libglesv2-2"
102 pkgs = "".join(' %s' % i for i in p) 113RREPLACES:${PN}-libgles2-dev += "libgles2-dev"
103 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") 114RREPLACES:${PN}-libgles3 += "libgles3"
104 d.appendVar("RREPLACES:" + fullp, pkgs) 115RREPLACES:${PN}-libgles3-dev += "libgles3-dev"
105 d.appendVar("RPROVIDES:" + fullp, pkgs)
106 d.appendVar("RCONFLICTS:" + fullp, pkgs)
107 # libmali.so is loaded with dlopen, so an explicit runtime dependency is necessary
108 d.appendVar("RDEPENDS:" + fullp, "${PN}")
109 116
110 # For -dev, the first element is both the Debian and original name 117# libmali.so is loaded with dlopen, so an explicit runtime dependency is necessary
111 fullp += "-dev" 118RDEPENDS:${PN}-libegl += "${PN}"
112 pkgs = p[0] + "-dev" 119RDEPENDS:${PN}-libgbm += "${PN}"
113 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") 120RDEPENDS:${PN}-libgles1 += "${PN}"
114 d.appendVar("RREPLACES:" + fullp, pkgs) 121RDEPENDS:${PN}-libgles2 += "${PN}"
115 d.appendVar("RPROVIDES:" + fullp, pkgs) 122RDEPENDS:${PN}-libgles3 += "${PN}"
116 d.appendVar("RCONFLICTS:" + fullp, pkgs) 123
117} 124RPROVIDES:${PN}-libegl += "libegl libegl1"
125RPROVIDES:${PN}-libegl-dev += "libegl-dev"
126RPROVIDES:${PN}-libgbm += "libgbm libgbm1"
127RPROVIDES:${PN}-libgbm-dev += "libgbm-dev"
128RPROVIDES:${PN}-libgles1 += "libgles1 libglesv1-cm1"
129RPROVIDES:${PN}-libgles1-dev += "libgles1-dev"
130RPROVIDES:${PN}-libgles2 += "libgles2 libglesv2-2"
131RPROVIDES:${PN}-libgles2-dev += "libgles2-dev"
132RPROVIDES:${PN}-libgles3 += "libgles3"
133RPROVIDES:${PN}-libgles3-dev += "libgles3-dev"
134
135RCONFLICTS:${PN}-libegl += "libegl libegl1"
136RCONFLICTS:${PN}-libegl-dev += "libegl-dev"
137RCONFLICTS:${PN}-libgbm += "libgbm libgbm1"
138RCONFLICTS:${PN}-libgbm-dev += "libgbm-dev"
139RCONFLICTS:${PN}-libgles1 += "libgles1 libglesv1-cm1"
140RCONFLICTS:${PN}-libgles1-dev += "libgles1-dev"
141RCONFLICTS:${PN}-libgles2 += "libgles2 libglesv2-2"
142RCONFLICTS:${PN}-libgles2-dev += "libgles2-dev"
143RCONFLICTS:${PN}-libgles3 += "libgles3"
144RCONFLICTS:${PN}-libgles3-dev += "libgles3-dev"
118 145
119COMPATIBLE_MACHINE = "(mx95-nxp-bsp)" 146COMPATIBLE_MACHINE = "(mx95-nxp-bsp)"