diff options
author | zangrc <zangrc.fnst@cn.fujitsu.com> | 2020-11-17 05:55:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-17 21:53:14 +0000 |
commit | 749091eac952feed60e7b71860a9a87b02afa704 (patch) | |
tree | e1834ad70e596e99f1870040ff1917c08249ca5c /meta/recipes-graphics | |
parent | 414d1f6108d538497a2fd78851dfad2d141d1082 (diff) | |
download | poky-749091eac952feed60e7b71860a9a87b02afa704.tar.gz |
libdrm: upgrade 2.4.102 -> 2.4.103
files/0001-xf86drm.c-fix-build-failure.patch
Removed since this is included in 2.4.103.
(From OE-Core rev: 689df7eb86103b59304ceb5b69bf544cc3fe3f6c)
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/drm/files/0001-xf86drm.c-fix-build-failure.patch | 87 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm_2.4.103.bb (renamed from meta/recipes-graphics/drm/libdrm_2.4.102.bb) | 5 |
2 files changed, 2 insertions, 90 deletions
diff --git a/meta/recipes-graphics/drm/files/0001-xf86drm.c-fix-build-failure.patch b/meta/recipes-graphics/drm/files/0001-xf86drm.c-fix-build-failure.patch deleted file mode 100644 index 60c996ca85..0000000000 --- a/meta/recipes-graphics/drm/files/0001-xf86drm.c-fix-build-failure.patch +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | From c7d89412884de2dbfa543720d185027377e62f21 Mon Sep 17 00:00:00 2001 | ||
2 | From: Heiko Thiery <heiko.thiery@gmail.com> | ||
3 | Date: Fri, 5 Jun 2020 23:46:52 +0200 | ||
4 | Subject: [PATCH] xf86drm.c: fix build failure | ||
5 | |||
6 | ./xf86drm.c: In function 'drmNodeIsDRM': | ||
7 | ../xf86drm.c:2825:7: error: "__FreeBSD__" is not defined [-Werror=undef] | ||
8 | #elif __FreeBSD__ | ||
9 | ^ | ||
10 | ../xf86drm.c: In function 'drmGetMinorNameForFD': | ||
11 | ../xf86drm.c:2938:7: error: "__FreeBSD__" is not defined [-Werror=undef] | ||
12 | #elif __FreeBSD__ | ||
13 | ^ | ||
14 | ../xf86drm.c: In function 'drmParsePciBusInfo': | ||
15 | ../xf86drm.c:3258:7: error: "__FreeBSD__" is not defined [-Werror=undef] | ||
16 | #elif __FreeBSD__ | ||
17 | ^ | ||
18 | ../xf86drm.c: In function 'drmParsePciDeviceInfo': | ||
19 | ../xf86drm.c:3427:7: error: "__FreeBSD__" is not defined [-Werror=undef] | ||
20 | #elif __FreeBSD__ | ||
21 | ^ | ||
22 | ../xf86drm.c: In function 'drmGetDeviceNameFromFd2': | ||
23 | ../xf86drm.c:4305:7: error: "__FreeBSD__" is not defined [-Werror=undef] | ||
24 | #elif __FreeBSD__ | ||
25 | ^ | ||
26 | |||
27 | Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> | ||
28 | |||
29 | Upstream-Status: Backport | ||
30 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
31 | |||
32 | --- | ||
33 | xf86drm.c | 10 +++++----- | ||
34 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
35 | |||
36 | diff --git a/xf86drm.c b/xf86drm.c | ||
37 | index 07a18c4..50a6f09 100644 | ||
38 | --- a/xf86drm.c | ||
39 | +++ b/xf86drm.c | ||
40 | @@ -2822,7 +2822,7 @@ static bool drmNodeIsDRM(int maj, int min) | ||
41 | snprintf(path, sizeof(path), "/sys/dev/char/%d:%d/device/drm", | ||
42 | maj, min); | ||
43 | return stat(path, &sbuf) == 0; | ||
44 | -#elif __FreeBSD__ | ||
45 | +#elif defined(__FreeBSD__) | ||
46 | char name[SPECNAMELEN]; | ||
47 | |||
48 | if (!devname_r(makedev(maj, min), S_IFCHR, name, sizeof(name))) | ||
49 | @@ -2935,7 +2935,7 @@ static char *drmGetMinorNameForFD(int fd, int type) | ||
50 | |||
51 | closedir(sysdir); | ||
52 | return NULL; | ||
53 | -#elif __FreeBSD__ | ||
54 | +#elif defined(__FreeBSD__) | ||
55 | struct stat sbuf; | ||
56 | char dname[SPECNAMELEN]; | ||
57 | const char *mname; | ||
58 | @@ -3255,7 +3255,7 @@ static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info) | ||
59 | info->func = pinfo.func; | ||
60 | |||
61 | return 0; | ||
62 | -#elif __FreeBSD__ | ||
63 | +#elif defined(__FreeBSD__) | ||
64 | return get_sysctl_pci_bus_info(maj, min, info); | ||
65 | #else | ||
66 | #warning "Missing implementation of drmParsePciBusInfo" | ||
67 | @@ -3424,7 +3424,7 @@ static int drmParsePciDeviceInfo(int maj, int min, | ||
68 | device->subdevice_id = pinfo.subdevice_id; | ||
69 | |||
70 | return 0; | ||
71 | -#elif __FreeBSD__ | ||
72 | +#elif defined(__FreeBSD__) | ||
73 | drmPciBusInfo info; | ||
74 | struct pci_conf_io pc; | ||
75 | struct pci_match_conf patterns[1]; | ||
76 | @@ -4302,7 +4302,7 @@ drm_public char *drmGetDeviceNameFromFd2(int fd) | ||
77 | free(value); | ||
78 | |||
79 | return strdup(path); | ||
80 | -#elif __FreeBSD__ | ||
81 | +#elif defined(__FreeBSD__) | ||
82 | return drmGetDeviceNameFromFd(fd); | ||
83 | #else | ||
84 | struct stat sbuf; | ||
85 | -- | ||
86 | 1.8.3.1 | ||
87 | |||
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.102.bb b/meta/recipes-graphics/drm/libdrm_2.4.103.bb index ad512d14a9..1028d618ae 100644 --- a/meta/recipes-graphics/drm/libdrm_2.4.102.bb +++ b/meta/recipes-graphics/drm/libdrm_2.4.103.bb | |||
@@ -10,10 +10,9 @@ LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c5 | |||
10 | PROVIDES = "drm" | 10 | PROVIDES = "drm" |
11 | DEPENDS = "libpthread-stubs" | 11 | DEPENDS = "libpthread-stubs" |
12 | 12 | ||
13 | SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz \ | 13 | SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz" |
14 | file://0001-xf86drm.c-fix-build-failure.patch " | ||
15 | 14 | ||
16 | SRC_URI[sha256sum] = "8bcbf9336c28e393d76c1f16d7e79e394a7fce8a2e929d52d3ad7ad8525ba05b" | 15 | SRC_URI[sha256sum] = "3fe0affdba6460166a7323290c18cf68e9b59edcb520722826cb244e9cb50222" |
17 | 16 | ||
18 | inherit meson pkgconfig manpages | 17 | inherit meson pkgconfig manpages |
19 | 18 | ||