diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-02-09 02:04:01 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-02-16 13:57:08 +1000 |
commit | be91292d155b734acbabb13501e4781a7211cdcb (patch) | |
tree | 0f4497169dcc55a0df1b159e6adb6b655cf4fef6 | |
parent | 777110ca8ab90753f932240b2cea1b08811b5990 (diff) | |
download | meta-xilinx-be91292d155b734acbabb13501e4781a7211cdcb.tar.gz |
xf86-video-armsoc: Update to 1.4.1
Update to the 1.4.1 version of the armsoc driver to handle compatibility
with newer versions of X11 as available in oe-core.
Modify the driver patch to work with the new version which auto-detects
which drmmode driver to use.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
3 files changed, 57 insertions, 33 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch b/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch index c99392e3..50f43393 100644 --- a/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch +++ b/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch | |||
@@ -1,21 +1,65 @@ | |||
1 | From 622db2862220b8fc2ae56e9caceac70cbb0c15ce Mon Sep 17 00:00:00 2001 | 1 | From 630a8ea035fe2f075f6ea7f4bad0928f5b541c80 Mon Sep 17 00:00:00 2001 |
2 | From: Hyun Kwon <hyun.kwon@xilinx.com> | 2 | From: Hyun Kwon <hyun.kwon@xilinx.com> |
3 | Date: Wed, 21 Jan 2015 11:53:19 -0800 | 3 | Date: Wed, 21 Jan 2015 11:53:19 -0800 |
4 | Subject: [PATCH 1/1] src: drmmode_xilinx: Add the dumb gem support for Xilinx | 4 | Subject: [PATCH] src: drmmode_xilinx: Add the dumb gem support for Xilinx |
5 | 5 | ||
6 | Add the dumb gem support for Xilinx | 6 | Add the dumb gem support for Xilinx |
7 | |||
8 | Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com> | ||
9 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
7 | Upstream-Status: Pending | 10 | Upstream-Status: Pending |
8 | --- | 11 | --- |
9 | src/drmmode_xilinx/drmmode_xilinx.c | 80 +++++++++++++++++++++++++++++++++++++ | 12 | src/Makefile.am | 3 +- |
10 | 1 file changed, 80 insertions(+) | 13 | src/armsoc_driver.c | 1 + |
14 | src/drmmode_driver.h | 1 + | ||
15 | src/drmmode_xilinx/drmmode_xilinx.c | 76 +++++++++++++++++++++++++++++++++++++ | ||
16 | 4 files changed, 80 insertions(+), 1 deletion(-) | ||
11 | create mode 100644 src/drmmode_xilinx/drmmode_xilinx.c | 17 | create mode 100644 src/drmmode_xilinx/drmmode_xilinx.c |
12 | 18 | ||
19 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
20 | index 3b2601927c..db5f110fb2 100644 | ||
21 | --- a/src/Makefile.am | ||
22 | +++ b/src/Makefile.am | ||
23 | @@ -43,7 +43,8 @@ armsoc_drv_ladir = @moduledir@/drivers | ||
24 | DRMMODE_SRCS = drmmode_exynos/drmmode_exynos.c \ | ||
25 | drmmode_pl111/drmmode_pl111.c \ | ||
26 | drmmode_kirin/drmmode_kirin.c \ | ||
27 | - drmmode_sti/drmmode_sti.c | ||
28 | + drmmode_sti/drmmode_sti.c \ | ||
29 | + drmmode_xilinx/drmmode_xilinx.c | ||
30 | |||
31 | |||
32 | armsoc_drv_la_SOURCES = \ | ||
33 | diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c | ||
34 | index 83e74a7ed1..3ace3c7be5 100644 | ||
35 | --- a/src/armsoc_driver.c | ||
36 | +++ b/src/armsoc_driver.c | ||
37 | @@ -737,6 +737,7 @@ static struct drmmode_interface *get_drmmode_implementation(int drm_fd) | ||
38 | &pl111_interface, | ||
39 | &kirin_interface, | ||
40 | &sti_interface, | ||
41 | + &xilinx_interface, | ||
42 | }; | ||
43 | int i; | ||
44 | |||
45 | diff --git a/src/drmmode_driver.h b/src/drmmode_driver.h | ||
46 | index 879fc60ddc..18245d591a 100644 | ||
47 | --- a/src/drmmode_driver.h | ||
48 | +++ b/src/drmmode_driver.h | ||
49 | @@ -106,6 +106,7 @@ extern struct drmmode_interface exynos_interface; | ||
50 | extern struct drmmode_interface pl111_interface; | ||
51 | extern struct drmmode_interface kirin_interface; | ||
52 | extern struct drmmode_interface sti_interface; | ||
53 | +extern struct drmmode_interface xilinx_interface; | ||
54 | |||
55 | |||
56 | #endif | ||
13 | diff --git a/src/drmmode_xilinx/drmmode_xilinx.c b/src/drmmode_xilinx/drmmode_xilinx.c | 57 | diff --git a/src/drmmode_xilinx/drmmode_xilinx.c b/src/drmmode_xilinx/drmmode_xilinx.c |
14 | new file mode 100644 | 58 | new file mode 100644 |
15 | index 0000000..2cd4e35 | 59 | index 0000000000..f4faceb0b4 |
16 | --- /dev/null | 60 | --- /dev/null |
17 | +++ b/src/drmmode_xilinx/drmmode_xilinx.c | 61 | +++ b/src/drmmode_xilinx/drmmode_xilinx.c |
18 | @@ -0,0 +1,80 @@ | 62 | @@ -0,0 +1,76 @@ |
19 | +/* | 63 | +/* |
20 | + * Xilinx X11 ARMSOC driver | 64 | + * Xilinx X11 ARMSOC driver |
21 | + * | 65 | + * |
@@ -80,6 +124,7 @@ index 0000000..2cd4e35 | |||
80 | +} | 124 | +} |
81 | + | 125 | + |
82 | +struct drmmode_interface xilinx_interface = { | 126 | +struct drmmode_interface xilinx_interface = { |
127 | + "xilinx_drm" /* name of drm driver */, | ||
83 | + 1 /* use_page_flip_events */, | 128 | + 1 /* use_page_flip_events */, |
84 | + 1 /* use_early_display */, | 129 | + 1 /* use_early_display */, |
85 | + 0 /* cursor width */, | 130 | + 0 /* cursor width */, |
@@ -91,10 +136,6 @@ index 0000000..2cd4e35 | |||
91 | + create_custom_gem /* create_custom_gem */, | 136 | + create_custom_gem /* create_custom_gem */, |
92 | +}; | 137 | +}; |
93 | + | 138 | + |
94 | +struct drmmode_interface *drmmode_interface_get_implementation(int drm_fd) | ||
95 | +{ | ||
96 | + return &xilinx_interface; | ||
97 | +} | ||
98 | + | ||
99 | -- | 139 | -- |
100 | 2.1.4 | 140 | 2.11.0 |
141 | |||
diff --git a/recipes-graphics/xorg-driver/xf86-video-armsoc/0002-enable-subdir-objects.patch b/recipes-graphics/xorg-driver/xf86-video-armsoc/0002-enable-subdir-objects.patch deleted file mode 100644 index a8015ab8..00000000 --- a/recipes-graphics/xorg-driver/xf86-video-armsoc/0002-enable-subdir-objects.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | Add foreign for automake | ||
2 | Upstream-Status: Pending | ||
3 | --- | ||
4 | diff --git a/configure.ac b/configure.ac | ||
5 | index eeffd92..88473a3 100644 | ||
6 | --- a/configure.ac | ||
7 | +++ b/configure.ac | ||
8 | @@ -32,7 +32,7 @@ AC_CONFIG_HEADERS([config.h]) | ||
9 | AC_CONFIG_AUX_DIR(.) | ||
10 | AC_CONFIG_MACRO_DIR([m4]) | ||
11 | |||
12 | -AM_INIT_AUTOMAKE([dist-bzip2]) | ||
13 | +AM_INIT_AUTOMAKE([dist-bzip2 foreign subdir-objects]) | ||
14 | |||
15 | AM_MAINTAINER_MODE | ||
16 | |||
diff --git a/recipes-graphics/xorg-driver/xf86-video-armsoc_git.bb b/recipes-graphics/xorg-driver/xf86-video-armsoc_git.bb index 1186d948..2037f275 100644 --- a/recipes-graphics/xorg-driver/xf86-video-armsoc_git.bb +++ b/recipes-graphics/xorg-driver/xf86-video-armsoc_git.bb | |||
@@ -9,16 +9,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=10ce5de3b111315ea652a5f74ec0c602" | |||
9 | DEPENDS += "libx11 libdrm xf86driproto" | 9 | DEPENDS += "libx11 libdrm xf86driproto" |
10 | RDEPENDS_${PN} += "xserver-xorg-module-exa" | 10 | RDEPENDS_${PN} += "xserver-xorg-module-exa" |
11 | 11 | ||
12 | PV = "1.3.0+git${SRCPV}" | 12 | PV = "1.4.1+git${SRCPV}" |
13 | 13 | ||
14 | SRCREV_pn-${PN} = "8ca8513880697f9a34d4006c43342b830bdd1ff2" | 14 | SRCREV = "8bbdb2ae3bb8ef649999a8da33ddbe11a04763b8" |
15 | SRC_URI = " \ | 15 | SRC_URI = " \ |
16 | git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc \ | 16 | git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc \ |
17 | file://0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch \ | 17 | file://0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch \ |
18 | file://0002-enable-subdir-objects.patch \ | ||
19 | " | 18 | " |
20 | 19 | ||
21 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
22 | 21 | ||
23 | EXTRA_OECONF = " --enable-maintainer-mode --with-drmmode=xilinx" | 22 | EXTRA_OECONF = " --enable-maintainer-mode" |
24 | CFLAGS += " -I${STAGING_INCDIR}/xorg " | 23 | CFLAGS += " -I${STAGING_INCDIR}/xorg " |