diff options
| author | Quanyang Wang <quanyang.wang@windriver.com> | 2021-01-14 08:31:02 +0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
| commit | d52f4b0e57127fd7e0d5c0e43576260484696111 (patch) | |
| tree | 886ea8bf46dce4cfbea8c16062fc2bcb84dd73e3 /meta-xilinx-core/recipes-graphics | |
| parent | 35b40e93b5af08777b1bba809f9190836a3fb928 (diff) | |
| download | meta-xilinx-d52f4b0e57127fd7e0d5c0e43576260484696111.tar.gz | |
libmali-xlnx: install packages only when related DISTRO_FEATURES are selected
Issue: LINCD-4047
When DISTRO_FEATURES doesn't contain fbdev, ${D}${libdir}/fbdev/${MONOLITHIC_LIBMALI}
will not be installed, and this will trigger the build warning as below:
WARNING: libmali-xlnx-r9p0-01rel0-r0 do_package: libmali-xlnx:NOT adding alternative provide /usr/lib64/libMali.so.9.0: /usr/lib64/fbdev/libMali.so.9.0 does not exist
So only add ${PN}-x11/fbdev/wayland to PACKAGES when related DISTRO_FEATURES is selected.
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-graphics')
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb b/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb index ebdda630..e3113b4d 100644 --- a/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb +++ b/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb | |||
| @@ -118,7 +118,10 @@ do_install() { | |||
| 118 | 118 | ||
| 119 | # We need separate packages to provide multiple alternatives, at this point we install | 119 | # We need separate packages to provide multiple alternatives, at this point we install |
| 120 | # everything on the default one but that can be split if necessary | 120 | # everything on the default one but that can be split if necessary |
| 121 | PACKAGES += "${PN}-x11 ${PN}-fbdev ${PN}-wayland ${PN}-headless" | 121 | PACKAGES += "${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-x11", "", d)}" |
| 122 | PACKAGES += "${@bb.utils.contains("DISTRO_FEATURES", "fbdev", "${PN}-fbdev", "", d)}" | ||
| 123 | PACKAGES += "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "${PN}-wayland", "", d)}" | ||
| 124 | PACKAGES += "${PN}-headless" | ||
| 122 | 125 | ||
| 123 | # This is default/common for all alternatives | 126 | # This is default/common for all alternatives |
| 124 | ALTERNATIVE_LINK_NAME[libmali-xlnx] = "${libdir}/${MONOLITHIC_LIBMALI}" | 127 | ALTERNATIVE_LINK_NAME[libmali-xlnx] = "${libdir}/${MONOLITHIC_LIBMALI}" |
