diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-10-23 08:51:20 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-10-23 08:56:37 -0600 |
commit | eb42c7caeac33f42096673522e650441f05ca8da (patch) | |
tree | 33f97fe41ec8855cf591c2692c7c7038b6bc1ae3 /meta-xilinx-core/recipes-graphics | |
parent | 387b31acf85b84bd34f339c87c0b51a9af4e16e4 (diff) | |
parent | 05911e19d85fd98c42054238392afe95a5125265 (diff) | |
download | meta-xilinx-eb42c7caeac33f42096673522e650441f05ca8da.tar.gz |
Merge remote-tracking branch 'origin/rel-v2023.2' into nanbield
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-graphics')
4 files changed, 36 insertions, 4 deletions
diff --git a/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb b/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb index 07de26dc..db99c4d7 100644 --- a/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb +++ b/meta-xilinx-core/recipes-graphics/libgles/libmali-xlnx.bb | |||
@@ -13,7 +13,7 @@ PROVIDES += "virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm" | |||
13 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | 13 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
14 | 14 | ||
15 | REPO ?= "git://github.com/Xilinx/mali-userspace-binaries.git;protocol=https" | 15 | REPO ?= "git://github.com/Xilinx/mali-userspace-binaries.git;protocol=https" |
16 | BRANCH ?= "xlnx_rel_v2023.1" | 16 | BRANCH ?= "xlnx_rel_v2023.2" |
17 | SRCREV ?= "b3a772aad859cdadc8513b11c3e995546c20e75e" | 17 | SRCREV ?= "b3a772aad859cdadc8513b11c3e995546c20e75e" |
18 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | 18 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
19 | 19 | ||
diff --git a/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend new file mode 100644 index 00000000..ca77f0d3 --- /dev/null +++ b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend | |||
@@ -0,0 +1,17 @@ | |||
1 | FILESEXTRAPATHS:prepend:zynqmp := "${THISDIR}/files:" | ||
2 | |||
3 | SRC_URI:append:zynqmp = " file://0001-libweston-Remove-substitute-format-for-ARGB8888.patch" | ||
4 | |||
5 | # Due to the SRC_URI zynqmp specific change, this needs to be SOC_FAMILY_ARCH specific | ||
6 | SOC_FAMILY_ARCH ??= "${TUNE_PKGARCH}" | ||
7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
8 | DEFAULT_PACKAGE_ARCH:zynqmp = "${SOC_FAMILY_ARCH}" | ||
9 | PACKAGE_ARCH = "${DEFAULT_PACKAGE_ARCH}" | ||
10 | |||
11 | |||
12 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
13 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
14 | MALI_PACKAGE_ARCH[vardepsexclude] = "MACHINE_ARCH" | ||
15 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
16 | PACKAGE_ARCH[vardepsexclude] = "MALI_PACKAGE_ARCH" | ||
17 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg/monitor-hotplug.sh b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg/monitor-hotplug.sh index d603082d..bceb5607 100755 --- a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg/monitor-hotplug.sh +++ b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg/monitor-hotplug.sh | |||
@@ -27,12 +27,27 @@ DEVICES=$(find /sys/class/drm/*/status) | |||
27 | 27 | ||
28 | # inspired by /etc/acpd/lid.sh and the function it sources. | 28 | # inspired by /etc/acpd/lid.sh and the function it sources. |
29 | 29 | ||
30 | displaynum=`ls /tmp/.X11-unix/* | sed s#/tmp/.X11-unix/X##` | 30 | # Read first X display number from the list. |
31 | displaynum=`ls /tmp/.X11-unix/* | sed s#/tmp/.X11-unix/X## | head -n 1` | ||
32 | displaynum=${displaynum%% *} | ||
33 | |||
31 | display=":$displaynum.0" | 34 | display=":$displaynum.0" |
32 | export DISPLAY=":$displaynum.0" | 35 | export DISPLAY=":$displaynum.0" |
33 | 36 | ||
34 | # from https://wiki.archlinux.org/index.php/Acpid#Laptop_Monitor_Power_Off | 37 | # from https://wiki.archlinux.org/index.php/Acpid#Laptop_Monitor_Power_Off |
35 | export XAUTHORITY=$(ps -C Xorg -f --no-header | sed -n 's/.*-auth //; s/ -[^ ].*//; p') | 38 | |
39 | # Clear XAUTHORITY by default in case X session is not using display manager. | ||
40 | unset XAUTHORITY | ||
41 | |||
42 | # Detect X session command line started for the display $displaynum and extract | ||
43 | # -auth argument if any. | ||
44 | ps -eo args | grep -e "Xorg\W*:$displaynum" | grep -e -auth | while read -r line | ||
45 | do | ||
46 | if [[ "${line%% *}" == *Xorg ]]; then | ||
47 | export XAUTHORITY=`echo $line | sed -n 's/.*-auth //; s/ -[^ ].*//; p'` | ||
48 | break | ||
49 | fi | ||
50 | done | ||
36 | 51 | ||
37 | for i in /sys/class/drm/*/*/status ; | 52 | for i in /sys/class/drm/*/*/status ; |
38 | do | 53 | do |
diff --git a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend index 460ff581..7486200d 100644 --- a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | |||
@@ -17,7 +17,7 @@ do_install:append() { | |||
17 | install -m 0755 ${WORKDIR}/monitor-hotplug.sh ${D}${bindir} | 17 | install -m 0755 ${WORKDIR}/monitor-hotplug.sh ${D}${bindir} |
18 | 18 | ||
19 | install -d ${D}${sysconfdir}/udev/rules.d | 19 | install -d ${D}${sysconfdir}/udev/rules.d |
20 | install -m 0644 ${WORKDIR}/99-monitor-hotplug.rules ${D}${sysconfdir}/udev/rules.d/99-monitor-hotplug.rules | 20 | install -m 0644 ${WORKDIR}/99-monitor-hotplug.rules ${D}${sysconfdir}/udev/rules.d/local.rules |
21 | } | 21 | } |
22 | 22 | ||
23 | FILES:${PN} += "${sysconfdir}/udev/rules.d/*" | 23 | FILES:${PN} += "${sysconfdir}/udev/rules.d/*" |