diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver/xserver-xorg')
5 files changed, 4 insertions, 174 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch index 4737040675..11d5546537 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Avoid-duplicate-definitions-of-IOPortBase.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From fc04acfd948ac99d04a5dc08c78f3b13bc0c5c41 Mon Sep 17 00:00:00 2001 | 1 | From ce3b8a230a3805c9b557c1f106795675bd034860 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 17 Aug 2020 10:50:51 -0700 | 3 | Date: Mon, 17 Aug 2020 10:50:51 -0700 |
| 4 | Subject: [PATCH] Avoid duplicate definitions of IOPortBase | 4 | Subject: [PATCH] Avoid duplicate definitions of IOPortBase |
| @@ -10,26 +10,13 @@ compiler.h:528: multiple definition of `IOPortBase'; | |||
| 10 | 10 | ||
| 11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | |||
| 13 | --- | 14 | --- |
| 14 | hw/xfree86/common/compiler.h | 2 +- | ||
| 15 | hw/xfree86/os-support/linux/lnx_video.c | 1 + | 15 | hw/xfree86/os-support/linux/lnx_video.c | 1 + |
| 16 | 2 files changed, 2 insertions(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+) |
| 17 | 17 | ||
| 18 | diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h | ||
| 19 | index 2b2008b..c7d617e 100644 | ||
| 20 | --- a/hw/xfree86/common/compiler.h | ||
| 21 | +++ b/hw/xfree86/common/compiler.h | ||
| 22 | @@ -525,7 +525,7 @@ xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset, | ||
| 23 | #define PORT_SIZE short | ||
| 24 | #endif | ||
| 25 | |||
| 26 | -_X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */ | ||
| 27 | +extern _X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */ | ||
| 28 | |||
| 29 | static __inline__ void | ||
| 30 | outb(unsigned PORT_SIZE port, unsigned char val) | ||
| 31 | diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c | 18 | diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c |
| 32 | index 04e4509..9dc7316 100644 | 19 | index fd83022..1d0d96e 100644 |
| 33 | --- a/hw/xfree86/os-support/linux/lnx_video.c | 20 | --- a/hw/xfree86/os-support/linux/lnx_video.c |
| 34 | +++ b/hw/xfree86/os-support/linux/lnx_video.c | 21 | +++ b/hw/xfree86/os-support/linux/lnx_video.c |
| 35 | @@ -78,6 +78,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) | 22 | @@ -78,6 +78,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) |
| @@ -40,6 +27,3 @@ index 04e4509..9dc7316 100644 | |||
| 40 | 27 | ||
| 41 | #if defined(__powerpc__) | 28 | #if defined(__powerpc__) |
| 42 | volatile unsigned char *ioBase = NULL; | 29 | volatile unsigned char *ioBase = NULL; |
| 43 | -- | ||
| 44 | 2.28.0 | ||
| 45 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch deleted file mode 100644 index 8b687d612d..0000000000 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-Fix-segfault-on-probing-a-non-PCI-platform-device-on.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From e50c85f4ebf559a3bac4817b41074c43d4691779 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Eric Anholt <eric@anholt.net> | ||
| 3 | Date: Fri, 26 Oct 2018 17:47:30 -0700 | ||
| 4 | Subject: [PATCH] Fix segfault on probing a non-PCI platform device on a system | ||
| 5 | with PCI. | ||
| 6 | |||
| 7 | Some Broadcom set-top-box boards have PCI busses, but the GPU is still | ||
| 8 | probed through DT. We would dereference a null busid here in that | ||
| 9 | case. | ||
| 10 | |||
| 11 | Signed-off-by: Eric Anholt <eric@anholt.net> | ||
| 12 | |||
| 13 | Upstream-Status: Backport [https://github.com/freedesktop/xorg-xserver/commit/e50c85f4e] | ||
| 14 | Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> | ||
| 15 | --- | ||
| 16 | hw/xfree86/common/xf86platformBus.c | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c | ||
| 20 | index cef47da03..dadbac6c8 100644 | ||
| 21 | --- a/hw/xfree86/common/xf86platformBus.c | ||
| 22 | +++ b/hw/xfree86/common/xf86platformBus.c | ||
| 23 | @@ -289,7 +289,7 @@ xf86platformProbe(void) | ||
| 24 | for (i = 0; i < xf86_num_platform_devices; i++) { | ||
| 25 | char *busid = xf86_platform_odev_attributes(i)->busid; | ||
| 26 | |||
| 27 | - if (pci && (strncmp(busid, "pci:", 4) == 0)) { | ||
| 28 | + if (pci && busid && (strncmp(busid, "pci:", 4) == 0)) { | ||
| 29 | platform_find_pci_info(&xf86_platform_devices[i], busid); | ||
| 30 | } | ||
| 31 | |||
| 32 | -- | ||
| 33 | 2.28.0 | ||
| 34 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch deleted file mode 100644 index c0c242814b..0000000000 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-test-xtest-Initialize-array-with-braces.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 8a382c015cd3c69fcfc146ef03dcbf30c77ff207 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 1 Mar 2019 09:47:57 -0800 | ||
| 4 | Subject: [PATCH] test/xtest: Initialize array with braces | ||
| 5 | |||
| 6 | Fixes an error when extra warnings are enabled, this is caught with clang | ||
| 7 | |||
| 8 | test/xtest.c:64:23: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] | ||
| 9 | WindowRec root = {0}; | ||
| 10 | ^ | ||
| 11 | {} | ||
| 12 | 1 error generated. | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | test/xtest.c | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/test/xtest.c b/test/xtest.c | ||
| 22 | index fc5e433..d7e6620 100644 | ||
| 23 | --- a/test/xtest.c | ||
| 24 | +++ b/test/xtest.c | ||
| 25 | @@ -61,7 +61,7 @@ xtest_init_devices(void) | ||
| 26 | { | ||
| 27 | ScreenRec screen = {0}; | ||
| 28 | ClientRec server_client = {0}; | ||
| 29 | - WindowRec root = {0}; | ||
| 30 | + WindowRec root = {{0}}; | ||
| 31 | WindowOptRec optional = {0}; | ||
| 32 | |||
| 33 | /* random stuff that needs initialization */ | ||
| 34 | -- | ||
| 35 | 2.21.0 | ||
| 36 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch deleted file mode 100644 index 2ef9fa9fe4..0000000000 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/pkgconfig.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/xorg/xserver/merge_requests/22] | ||
| 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 3 | |||
| 4 | From 5f65a6246fe752764045dd1e38912f1dccec71e4 Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Ross Burton <ross.burton@intel.com> | ||
| 6 | Date: Thu, 20 Sep 2018 20:12:24 +0100 | ||
| 7 | Subject: [PATCH] xorg-server.m4: just all cflags instead of just sdkdir | ||
| 8 | |||
| 9 | Instead of fetching just the sdkdir variable of xorg-server using pkg-config, | ||
| 10 | simply get all of the CFLAGS. Aside from completeness, this helps builds in | ||
| 11 | sysroots as pkg-config knows what to do with --cflags but doesn't remap | ||
| 12 | arbitrary variables. | ||
| 13 | |||
| 14 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 15 | --- | ||
| 16 | xorg-server.m4 | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/xorg-server.m4 b/xorg-server.m4 | ||
| 20 | index 18255b91a..195bda5d8 100644 | ||
| 21 | --- a/xorg-server.m4 | ||
| 22 | +++ b/xorg-server.m4 | ||
| 23 | @@ -31,7 +31,7 @@ dnl | ||
| 24 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
| 25 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | ||
| 26 | SAVE_CFLAGS="$CFLAGS" | ||
| 27 | - CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" | ||
| 28 | + CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" | ||
| 29 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
| 30 | #include "xorg-server.h" | ||
| 31 | #if !defined $1 | ||
| 32 | -- | ||
| 33 | 2.11.0 | ||
| 34 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch deleted file mode 100644 index be198ece49..0000000000 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/sdksyms-no-build-path.patch +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/merge_requests/253] | ||
| 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 3 | |||
| 4 | From ca832598d38ba55a001088b57d73c6d7261dc9a7 Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Ross Burton <ross.burton@intel.com> | ||
| 6 | Date: Thu, 1 Aug 2019 15:24:51 +0100 | ||
| 7 | Subject: [PATCH] sdksyms.sh: don't embed the build path | ||
| 8 | |||
| 9 | This script generates a header that has a comment containing the build path for | ||
| 10 | no real reason. As this source can end up deployed on targets in debug packages | ||
| 11 | this means there is both potentially sensitive information leakage about the | ||
| 12 | build environment, and a source of change for reproducible builds. | ||
| 13 | --- | ||
| 14 | hw/xfree86/sdksyms.sh | 7 +++++-- | ||
| 15 | 1 file changed, 5 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh | ||
| 18 | index 39e33711d..bdf47a71a 100755 | ||
| 19 | --- a/hw/xfree86/sdksyms.sh | ||
| 20 | +++ b/hw/xfree86/sdksyms.sh | ||
| 21 | @@ -302,13 +302,16 @@ LC_ALL=C | ||
| 22 | export LC_ALL | ||
| 23 | ${CPP:-cpp} "$@" sdksyms.c > /dev/null || exit $? | ||
| 24 | ${CPP:-cpp} "$@" sdksyms.c | ${AWK:-awk} -v topdir=$topdir ' | ||
| 25 | +function basename(file) { | ||
| 26 | + sub(".*/", "", file) | ||
| 27 | + return file | ||
| 28 | +} | ||
| 29 | BEGIN { | ||
| 30 | sdk = 0; | ||
| 31 | print("/*"); | ||
| 32 | print(" * These symbols are referenced to ensure they"); | ||
| 33 | print(" * will be available in the X Server binary."); | ||
| 34 | print(" */"); | ||
| 35 | - printf("/* topdir=%s */\n", topdir); | ||
| 36 | print("_X_HIDDEN void *xorg_symbols[] = {"); | ||
| 37 | |||
| 38 | printf("sdksyms.c:") > "sdksyms.dep"; | ||
| 39 | @@ -337,7 +340,7 @@ BEGIN { | ||
| 40 | # remove quotes | ||
| 41 | gsub(/"/, "", $3); | ||
| 42 | line = $2; | ||
| 43 | - header = $3; | ||
| 44 | + header = basename($3); | ||
| 45 | if (! headers[$3]) { | ||
| 46 | printf(" \\\n %s", $3) >> "sdksyms.dep"; | ||
| 47 | headers[$3] = 1; | ||
| 48 | -- | ||
| 49 | 2.20.1 | ||
| 50 | |||
