diff options
Diffstat (limited to 'recipes-graphics/wayland/weston_14.0.2.imx.bb')
| -rw-r--r-- | recipes-graphics/wayland/weston_14.0.2.imx.bb | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/recipes-graphics/wayland/weston_14.0.2.imx.bb b/recipes-graphics/wayland/weston_14.0.2.imx.bb index 299796f3b..025c65d7a 100644 --- a/recipes-graphics/wayland/weston_14.0.2.imx.bb +++ b/recipes-graphics/wayland/weston_14.0.2.imx.bb | |||
| @@ -32,8 +32,8 @@ inherit meson pkgconfig useradd | |||
| 32 | # | 32 | # |
| 33 | require ${THISDIR}/required-distro-features.inc | 33 | require ${THISDIR}/required-distro-features.inc |
| 34 | 34 | ||
| 35 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | 35 | DEPENDS = "cairo gdk-pixbuf glib-2.0 libdisplay-info libinput libxkbcommon \ |
| 36 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native libdisplay-info" | 36 | pango pixman virtual/egl wayland wayland-native wayland-protocols" |
| 37 | 37 | ||
| 38 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" | 38 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" |
| 39 | 39 | ||
| @@ -103,29 +103,29 @@ PACKAGECONFIG[pipewire] = "-Dbackend-pipewire=true,-Dbackend-pipewire=false,pipe | |||
| 103 | PACKAGECONFIG[vnc] = "-Dbackend-vnc=true,-Dbackend-vnc=false,neatvnc libpam" | 103 | PACKAGECONFIG[vnc] = "-Dbackend-vnc=true,-Dbackend-vnc=false,neatvnc libpam" |
| 104 | 104 | ||
| 105 | do_install:append() { | 105 | do_install:append() { |
| 106 | # Weston doesn't need the .la files to load modules, so wipe them | 106 | # Weston doesn't need the .la files to load modules, so wipe them |
| 107 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la | 107 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la |
| 108 | 108 | ||
| 109 | # If X11, ship a desktop file to launch it | 109 | # If X11, ship a desktop file to launch it |
| 110 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then | 110 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then |
| 111 | install -d ${D}${datadir}/applications | 111 | install -d ${D}${datadir}/applications |
| 112 | install ${UNPACKDIR}/weston.desktop ${D}${datadir}/applications | 112 | install ${UNPACKDIR}/weston.desktop ${D}${datadir}/applications |
| 113 | 113 | ||
| 114 | install -d ${D}${datadir}/icons/hicolor/48x48/apps | 114 | install -d ${D}${datadir}/icons/hicolor/48x48/apps |
| 115 | install ${UNPACKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps | 115 | install ${UNPACKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps |
| 116 | fi | 116 | fi |
| 117 | 117 | ||
| 118 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then | 118 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then |
| 119 | install -Dm 644 ${UNPACKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland | 119 | install -Dm 644 ${UNPACKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland |
| 120 | fi | 120 | fi |
| 121 | 121 | ||
| 122 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'yes', 'no', d)}" = "yes" ]; then | 122 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'yes', 'no', d)}" = "yes" ]; then |
| 123 | install -Dm 644 ${UNPACKDIR}/systemd-notify.weston-start ${D}${datadir}/weston-start/systemd-notify | 123 | install -Dm 644 ${UNPACKDIR}/systemd-notify.weston-start ${D}${datadir}/weston-start/systemd-notify |
| 124 | fi | 124 | fi |
| 125 | 125 | ||
| 126 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then | 126 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then |
| 127 | chmod u+s ${D}${bindir}/weston-launch | 127 | chmod u+s ${D}${bindir}/weston-launch |
| 128 | fi | 128 | fi |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ | 131 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ |
| @@ -155,7 +155,7 @@ GROUPADD_PARAM:${PN} = "--system weston-launch" | |||
| 155 | 155 | ||
| 156 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" | 156 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" |
| 157 | LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" | 157 | LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" |
| 158 | LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | 158 | LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" |
| 159 | 159 | ||
| 160 | DEFAULT_PREFERENCE = "-1" | 160 | DEFAULT_PREFERENCE = "-1" |
| 161 | 161 | ||
| @@ -163,17 +163,21 @@ SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV} | |||
| 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " | 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
| 164 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" | 164 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" |
| 165 | SRCBRANCH = "weston-imx-14.0.2" | 165 | SRCBRANCH = "weston-imx-14.0.2" |
| 166 | SRCREV = "c267ba8e6eed3a824e042a200bcc1b4c370ba88f" | 166 | SRCREV = "be99fd1adad7e77c8c31926b09520ade5cdaca35" |
| 167 | 167 | ||
| 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" | 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" |
| 169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | 169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" |
| 170 | 170 | ||
| 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D} ${PACKAGECONFIG_PIPEWIRE}" |
| 172 | PACKAGECONFIG_G2D ??= "" | 172 | PACKAGECONFIG_G2D ??= "" |
| 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" | 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" |
| 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" | 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" |
| 175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" | 175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" |
| 176 | 176 | ||
| 177 | PACKAGECONFIG_PIPEWIRE ??= "" | ||
| 178 | PACKAGECONFIG_PIPEWIRE:mx8-nxp-bsp ??= "pipewire" | ||
| 179 | PACKAGECONFIG_PIPEWIRE:mx9-nxp-bsp ??= "pipewire" | ||
| 180 | |||
| 177 | # Weston with i.MX G2D renderer | 181 | # Weston with i.MX G2D renderer |
| 178 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" | 182 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" |
| 179 | 183 | ||
