diff options
| author | Quanyang Wang <quanyang.wang@windriver.com> | 2021-01-14 08:31:02 +0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-25 07:24:20 -0800 |
| commit | 13071f99ebd0db1b3b1a5ac1f5b77b096434d250 (patch) | |
| tree | 98fd4c90ee3c58c926f91ef852cf358765fc6e19 | |
| parent | 74303191ac63e79a72751bf6d08dda003952246e (diff) | |
| download | meta-xilinx-13071f99ebd0db1b3b1a5ac1f5b77b096434d250.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>
| -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}" |
