diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-08 14:14:41 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-09-10 14:12:25 -0300 |
| commit | f8c58a0c53a41ac3ae562255ba14c2834ea3d654 (patch) | |
| tree | d456297ee3aa920063e4d4ac1868dc9f9e90c699 /recipes-graphics | |
| parent | 7b45fea945631df553e426eff4a5c2cc167705aa (diff) | |
| download | meta-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.inc | 73 |
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" | |||
| 90 | FILES:${PN}-opencl-icd-dev += "\ | 90 | FILES:${PN}-opencl-icd-dev += "\ |
| 91 | ${bindir}/mali_clcc" | 91 | ${bindir}/mali_clcc" |
| 92 | 92 | ||
| 93 | python __anonymous() { | 93 | # The GPU interface packages keep their ${PN}- prefix: Debian renaming would |
| 94 | # drop it and collide with the generic mesa package names. | ||
| 95 | DEBIAN_NOAUTONAME:${PN}-libegl = "1" | ||
| 96 | DEBIAN_NOAUTONAME:${PN}-libegl-dev = "1" | ||
| 97 | DEBIAN_NOAUTONAME:${PN}-libgbm = "1" | ||
| 98 | DEBIAN_NOAUTONAME:${PN}-libgbm-dev = "1" | ||
| 99 | DEBIAN_NOAUTONAME:${PN}-libgles1 = "1" | ||
| 100 | DEBIAN_NOAUTONAME:${PN}-libgles1-dev = "1" | ||
| 101 | DEBIAN_NOAUTONAME:${PN}-libgles2 = "1" | ||
| 102 | DEBIAN_NOAUTONAME:${PN}-libgles2-dev = "1" | ||
| 103 | DEBIAN_NOAUTONAME:${PN}-libgles3 = "1" | ||
| 104 | DEBIAN_NOAUTONAME:${PN}-libgles3-dev = "1" | ||
| 94 | 105 | ||
| 95 | # Avoid Debian-renaming | 106 | RREPLACES:${PN}-libegl += "libegl libegl1" |
| 96 | for p in (("libegl", "libegl1" ), | 107 | RREPLACES:${PN}-libegl-dev += "libegl-dev" |
| 97 | ("libgbm", "libgbm1" ), | 108 | RREPLACES:${PN}-libgbm += "libgbm libgbm1" |
| 98 | ("libgles1", "libglesv1-cm1"), | 109 | RREPLACES:${PN}-libgbm-dev += "libgbm-dev" |
| 99 | ("libgles2", "libglesv2-2" ), | 110 | RREPLACES:${PN}-libgles1 += "libgles1 libglesv1-cm1" |
| 100 | ("libgles3", )): | 111 | RREPLACES:${PN}-libgles1-dev += "libgles1-dev" |
| 101 | fullp = "${PN}-" + p[0] | 112 | RREPLACES:${PN}-libgles2 += "libgles2 libglesv2-2" |
| 102 | pkgs = "".join(' %s' % i for i in p) | 113 | RREPLACES:${PN}-libgles2-dev += "libgles2-dev" |
| 103 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 114 | RREPLACES:${PN}-libgles3 += "libgles3" |
| 104 | d.appendVar("RREPLACES:" + fullp, pkgs) | 115 | RREPLACES:${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" | 118 | RDEPENDS:${PN}-libegl += "${PN}" |
| 112 | pkgs = p[0] + "-dev" | 119 | RDEPENDS:${PN}-libgbm += "${PN}" |
| 113 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 120 | RDEPENDS:${PN}-libgles1 += "${PN}" |
| 114 | d.appendVar("RREPLACES:" + fullp, pkgs) | 121 | RDEPENDS:${PN}-libgles2 += "${PN}" |
| 115 | d.appendVar("RPROVIDES:" + fullp, pkgs) | 122 | RDEPENDS:${PN}-libgles3 += "${PN}" |
| 116 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | 123 | |
| 117 | } | 124 | RPROVIDES:${PN}-libegl += "libegl libegl1" |
| 125 | RPROVIDES:${PN}-libegl-dev += "libegl-dev" | ||
| 126 | RPROVIDES:${PN}-libgbm += "libgbm libgbm1" | ||
| 127 | RPROVIDES:${PN}-libgbm-dev += "libgbm-dev" | ||
| 128 | RPROVIDES:${PN}-libgles1 += "libgles1 libglesv1-cm1" | ||
| 129 | RPROVIDES:${PN}-libgles1-dev += "libgles1-dev" | ||
| 130 | RPROVIDES:${PN}-libgles2 += "libgles2 libglesv2-2" | ||
| 131 | RPROVIDES:${PN}-libgles2-dev += "libgles2-dev" | ||
| 132 | RPROVIDES:${PN}-libgles3 += "libgles3" | ||
| 133 | RPROVIDES:${PN}-libgles3-dev += "libgles3-dev" | ||
| 134 | |||
| 135 | RCONFLICTS:${PN}-libegl += "libegl libegl1" | ||
| 136 | RCONFLICTS:${PN}-libegl-dev += "libegl-dev" | ||
| 137 | RCONFLICTS:${PN}-libgbm += "libgbm libgbm1" | ||
| 138 | RCONFLICTS:${PN}-libgbm-dev += "libgbm-dev" | ||
| 139 | RCONFLICTS:${PN}-libgles1 += "libgles1 libglesv1-cm1" | ||
| 140 | RCONFLICTS:${PN}-libgles1-dev += "libgles1-dev" | ||
| 141 | RCONFLICTS:${PN}-libgles2 += "libgles2 libglesv2-2" | ||
| 142 | RCONFLICTS:${PN}-libgles2-dev += "libgles2-dev" | ||
| 143 | RCONFLICTS:${PN}-libgles3 += "libgles3" | ||
| 144 | RCONFLICTS:${PN}-libgles3-dev += "libgles3-dev" | ||
| 118 | 145 | ||
| 119 | COMPATIBLE_MACHINE = "(mx95-nxp-bsp)" | 146 | COMPATIBLE_MACHINE = "(mx95-nxp-bsp)" |
