diff options
Diffstat (limited to 'meta')
35 files changed, 445 insertions, 24 deletions
diff --git a/meta/conf/distro/include/poky-fixed-revisions.inc b/meta/conf/distro/include/poky-fixed-revisions.inc index d7e0a5a453..eb9f60913f 100644 --- a/meta/conf/distro/include/poky-fixed-revisions.inc +++ b/meta/conf/distro/include/poky-fixed-revisions.inc | |||
@@ -154,7 +154,11 @@ SRCREV_pn-usbpath = "3172" | |||
154 | SRCREV_pn-xserver-kdrive-glamo ?= "a51364e2f23d4b6331c5ed613ce3f7e15f8e540f" | 154 | SRCREV_pn-xserver-kdrive-glamo ?= "a51364e2f23d4b6331c5ed613ce3f7e15f8e540f" |
155 | SRCREV_pn-gsm0710muxd ?= "6fecc78198dd821bbe29efd096bd8fecd855179d" | 155 | SRCREV_pn-gsm0710muxd ?= "6fecc78198dd821bbe29efd096bd8fecd855179d" |
156 | SRCREV_pn-gsmd2 ?= "963f34df8fa3ff4b301079dcf86e9acea6b6fe0f" | 156 | SRCREV_pn-gsmd2 ?= "963f34df8fa3ff4b301079dcf86e9acea6b6fe0f" |
157 | SRCREV_pn-metacity-clutter ?= "389ce295417bdd99bf583026f7f1dedae29650da" | 157 | SRCREV_pn-metacity-clutter ?= "b52f1df75af8216b13539431283fd1cfaa33cf51" |
158 | SRCREV_pn-dri2proto ?= "abb1edc487543c26856afdbe6a7e2c088a1e82ee" | ||
159 | SRCREV_pn-inputproto ?= "2166b77ea60bd9cd87f1311a2e7d461db071cb07" | ||
160 | SRCREV_pn-inputproto-native ?= "2166b77ea60bd9cd87f1311a2e7d461db071cb07" | ||
161 | SRCREV_pn-inputproto-sdk ?= "2166b77ea60bd9cd87f1311a2e7d461db071cb07" | ||
158 | 162 | ||
159 | # | 163 | # |
160 | # Preferred Versions: | 164 | # Preferred Versions: |
diff --git a/meta/conf/distro/include/preferred-xorg-versions.inc b/meta/conf/distro/include/preferred-xorg-versions.inc index 29fa815686..887cc31bbc 100644 --- a/meta/conf/distro/include/preferred-xorg-versions.inc +++ b/meta/conf/distro/include/preferred-xorg-versions.inc | |||
@@ -18,9 +18,9 @@ PREFERRED_VERSION_fontsproto-native ?= "2.0.2" | |||
18 | PREFERRED_VERSION_gccmakedep ?= "1.0.2" | 18 | PREFERRED_VERSION_gccmakedep ?= "1.0.2" |
19 | PREFERRED_VERSION_glproto ?= "1.4.9" | 19 | PREFERRED_VERSION_glproto ?= "1.4.9" |
20 | PREFERRED_VERSION_imake ?= "1.0.2" | 20 | PREFERRED_VERSION_imake ?= "1.0.2" |
21 | PREFERRED_VERSION_inputproto ?= "1.4.4" | 21 | PREFERRED_VERSION_inputproto ?= "1.9.99.5+git${SRCREV}" |
22 | PREFERRED_VERSION_inputproto-native ?= "1.4.4" | 22 | PREFERRED_VERSION_inputproto-native ?= "1.9.99.5+git${SRCREV}" |
23 | PREFERRED_VERSION_inputproto-sdk ?= "1.4.3" | 23 | PREFERRED_VERSION_inputproto-sdk ?= "1.9.99.5+git${SRCREV}" |
24 | PREFERRED_VERSION_kbproto ?= "1.0.3" | 24 | PREFERRED_VERSION_kbproto ?= "1.0.3" |
25 | PREFERRED_VERSION_kbproto-native ?= "1.0.3" | 25 | PREFERRED_VERSION_kbproto-native ?= "1.0.3" |
26 | PREFERRED_VERSION_kbproto-sdk ?= "1.0.3" | 26 | PREFERRED_VERSION_kbproto-sdk ?= "1.0.3" |
@@ -88,8 +88,8 @@ PREFERRED_VERSION_printproto ?= "1.0.4" | |||
88 | PREFERRED_VERSION_randrproto ?= "1.2.1" | 88 | PREFERRED_VERSION_randrproto ?= "1.2.1" |
89 | PREFERRED_VERSION_randrproto-sdk ?= "1.2.1" | 89 | PREFERRED_VERSION_randrproto-sdk ?= "1.2.1" |
90 | PREFERRED_VERSION_recordproto ?= "1.13.2" | 90 | PREFERRED_VERSION_recordproto ?= "1.13.2" |
91 | PREFERRED_VERSION_renderproto ?= "0.9.2" | 91 | PREFERRED_VERSION_renderproto ?= "0.9.3" |
92 | PREFERRED_VERSION_renderproto-sdk ?= "0.9.2" | 92 | PREFERRED_VERSION_renderproto-sdk ?= "0.9.3" |
93 | PREFERRED_VERSION_resourceproto ?= "1.0.2" | 93 | PREFERRED_VERSION_resourceproto ?= "1.0.2" |
94 | PREFERRED_VERSION_scrnsaverproto ?= "1.1.0" | 94 | PREFERRED_VERSION_scrnsaverproto ?= "1.1.0" |
95 | PREFERRED_VERSION_trapproto ?= "3.4.3" | 95 | PREFERRED_VERSION_trapproto ?= "3.4.3" |
@@ -104,14 +104,15 @@ PREFERRED_VERSION_xcmiscproto-native ?= "1.1.2" | |||
104 | PREFERRED_VERSION_xcmiscproto-sdk ?= "1.1.2" | 104 | PREFERRED_VERSION_xcmiscproto-sdk ?= "1.1.2" |
105 | PREFERRED_VERSION_xdpyinfo ?= "1.0.2" | 105 | PREFERRED_VERSION_xdpyinfo ?= "1.0.2" |
106 | PREFERRED_VERSION_xev ?= "1.0.3" | 106 | PREFERRED_VERSION_xev ?= "1.0.3" |
107 | PREFERRED_VERSION_xextproto ?= "7.0.2" | 107 | PREFERRED_VERSION_xextproto ?= "7.0.3" |
108 | PREFERRED_VERSION_xextproto-native ?= "7.0.2" | 108 | PREFERRED_VERSION_xextproto-native ?= "7.0.3" |
109 | PREFERRED_VERSION_xextproto-sdk ?= "7.0.2" | 109 | PREFERRED_VERSION_xextproto-sdk ?= "7.0.3" |
110 | PREFERRED_VERSION_xf86bigfontproto ?= "1.1.2" | 110 | PREFERRED_VERSION_xf86bigfontproto ?= "1.1.2" |
111 | PREFERRED_VERSION_xf86bigfontproto-native ?= "1.1.2" | 111 | PREFERRED_VERSION_xf86bigfontproto-native ?= "1.1.2" |
112 | PREFERRED_VERSION_xf86bigfontproto-sdk ?= "1.1.2" | 112 | PREFERRED_VERSION_xf86bigfontproto-sdk ?= "1.1.2" |
113 | PREFERRED_VERSION_xf86dgaproto ?= "2.0.3" | 113 | PREFERRED_VERSION_xf86dgaproto ?= "2.0.3" |
114 | PREFERRED_VERSION_xf86driproto ?= "2.0.3" | 114 | PREFERRED_VERSION_xf86driproto ?= "2.0.3" |
115 | PREFERRED_VERSION_dri2proto ?= "1.99.1+git${SRCREV}" | ||
115 | PREFERRED_VERSION_xf86miscproto ?= "0.9.2" | 116 | PREFERRED_VERSION_xf86miscproto ?= "0.9.2" |
116 | PREFERRED_VERSION_xf86rushproto ?= "1.1.2" | 117 | PREFERRED_VERSION_xf86rushproto ?= "1.1.2" |
117 | PREFERRED_VERSION_xf86vidmodeproto ?= "2.2.2" | 118 | PREFERRED_VERSION_xf86vidmodeproto ?= "2.2.2" |
@@ -121,9 +122,9 @@ PREFERRED_VERSION_xineramaproto ?= "1.1.2" | |||
121 | PREFERRED_VERSION_xmodmap ?= "1.0.3" | 122 | PREFERRED_VERSION_xmodmap ?= "1.0.3" |
122 | PREFERRED_VERSION_xorg-cf-files ?= "1.0.2" | 123 | PREFERRED_VERSION_xorg-cf-files ?= "1.0.2" |
123 | PREFERRED_VERSION_xprop ?= "1.0.4" | 124 | PREFERRED_VERSION_xprop ?= "1.0.4" |
124 | PREFERRED_VERSION_xproto ?= "7.0.12" | 125 | PREFERRED_VERSION_xproto ?= "7.0.13" |
125 | PREFERRED_VERSION_xproto-native ?= "7.0.12" | 126 | PREFERRED_VERSION_xproto-native ?= "7.0.13" |
126 | PREFERRED_VERSION_xproto-sdk ?= "7.0.12" | 127 | PREFERRED_VERSION_xproto-sdk ?= "7.0.13" |
127 | PREFERRED_VERSION_xproxymanagementprotocol ?= "1.0.2" | 128 | PREFERRED_VERSION_xproxymanagementprotocol ?= "1.0.2" |
128 | PREFERRED_VERSION_xrandr ?= "1.2.3" | 129 | PREFERRED_VERSION_xrandr ?= "1.2.3" |
129 | PREFERRED_VERSION_xrdb ?= "1.0.5" | 130 | PREFERRED_VERSION_xrdb ?= "1.0.5" |
diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf index efa6845dfc..09d86f1d2e 100644 --- a/meta/conf/distro/poky.conf +++ b/meta/conf/distro/poky.conf | |||
@@ -79,6 +79,7 @@ PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib" | |||
79 | PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth" | 79 | PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth" |
80 | PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native" | 80 | PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native" |
81 | PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet" | 81 | PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet" |
82 | PREFERRED_PROVIDER_xf86-video-intel ?= xf86-video-intel | ||
82 | 83 | ||
83 | VIRTUAL-RUNTIME_update-alternatives ?= "update-alternatives-cworth" | 84 | VIRTUAL-RUNTIME_update-alternatives ?= "update-alternatives-cworth" |
84 | 85 | ||
diff --git a/meta/conf/machine/eee901.conf b/meta/conf/machine/eee901.conf index f6dbe333aa..54f630d56c 100644 --- a/meta/conf/machine/eee901.conf +++ b/meta/conf/machine/eee901.conf | |||
@@ -17,7 +17,7 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-moblin" | |||
17 | PREFERRED_PROVIDER_virtual/libx11 = "libx11-trim" | 17 | PREFERRED_PROVIDER_virtual/libx11 = "libx11-trim" |
18 | PREFERRED_PROVIDER_virtual/libgl = "mesa-dri" | 18 | PREFERRED_PROVIDER_virtual/libgl = "mesa-dri" |
19 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86-dri-lite" | 19 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86-dri-lite" |
20 | XSERVER = "xserver-xf86-dri-lite \ | 20 | XSERVER ?= "xserver-xf86-dri-lite \ |
21 | xf86-input-mouse \ | 21 | xf86-input-mouse \ |
22 | xf86-input-keyboard \ | 22 | xf86-input-keyboard \ |
23 | xf86-input-synaptics \ | 23 | xf86-input-synaptics \ |
diff --git a/meta/packages/drm/libdrm_git.bb b/meta/packages/drm/libdrm_git.bb new file mode 100644 index 0000000000..e05e16bb04 --- /dev/null +++ b/meta/packages/drm/libdrm_git.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SECTION = "x11/base" | ||
2 | LICENSE = "MIT" | ||
3 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm;protocol=git" | ||
4 | PROVIDES = "drm" | ||
5 | |||
6 | S = ${WORKDIR}/git | ||
7 | |||
8 | PR = "r0" | ||
9 | PV = "2.4.0+git${SRCREV}" | ||
10 | |||
11 | LEAD_SONAME = "libdrm.so" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
14 | |||
15 | do_stage() { | ||
16 | autotools_stage_all | ||
17 | } | ||
diff --git a/meta/packages/mesa/mesa-dri_7.2.bb b/meta/packages/mesa/mesa-dri_7.2.bb index 76a51da382..c96863fd7a 100644 --- a/meta/packages/mesa/mesa-dri_7.2.bb +++ b/meta/packages/mesa/mesa-dri_7.2.bb | |||
@@ -5,7 +5,6 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | |||
5 | 5 | ||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 7 | ||
8 | PE = "1" | ||
9 | PR = "r4" | 8 | PR = "r4" |
10 | 9 | ||
11 | # most of our targets do not have DRI so will use mesa-xlib | 10 | # most of our targets do not have DRI so will use mesa-xlib |
diff --git a/meta/packages/mesa/mesa-dri_git.bb b/meta/packages/mesa/mesa-dri_git.bb index 6aedeaa1c0..5bd5c7ad71 100644 --- a/meta/packages/mesa/mesa-dri_git.bb +++ b/meta/packages/mesa/mesa-dri_git.bb | |||
@@ -5,14 +5,20 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | |||
5 | 5 | ||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 7 | ||
8 | PV = "7.2+git${SRCREV}" | 8 | PV = "7.3.0+git${SRCREV}" |
9 | PR = "r2" | 9 | PR = "r0" |
10 | 10 | ||
11 | # most of our targets do not have DRI so will use mesa-xlib | ||
11 | DEFAULT_PREFERENCE = "-1" | 12 | DEFAULT_PREFERENCE = "-1" |
12 | 13 | ||
14 | # ASUS EeePC 901 has DRI support so use mesa-dri by default | ||
15 | DEFAULT_PREFERENCE_eee901 = "1" | ||
16 | |||
13 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git" | 17 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git" |
14 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
15 | 19 | ||
20 | PACKAGES =+ "${PN}-xprogs" | ||
21 | |||
16 | FILES_${PN} += "${libdir}/dri/*.so" | 22 | FILES_${PN} += "${libdir}/dri/*.so" |
17 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | 23 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" |
18 | 24 | ||
diff --git a/meta/packages/xorg-driver/xf86-input-keyboard_git.bb b/meta/packages/xorg-driver/xf86-input-keyboard_git.bb new file mode 100644 index 0000000000..d17437db82 --- /dev/null +++ b/meta/packages/xorg-driver/xf86-input-keyboard_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | PV = "1.3.1+git${SRCREV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-keyboard;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
diff --git a/meta/packages/xorg-driver/xf86-input-mouse_git.bb b/meta/packages/xorg-driver/xf86-input-mouse_git.bb new file mode 100644 index 0000000000..e1b16788e8 --- /dev/null +++ b/meta/packages/xorg-driver/xf86-input-mouse_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- mouse input driver" | ||
4 | |||
5 | PV = "1.3.0+git${SRCREV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-mouse;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
diff --git a/meta/packages/xorg-driver/xf86-input-synaptics_git.bb b/meta/packages/xorg-driver/xf86-input-synaptics_git.bb new file mode 100644 index 0000000000..0bd90eaa4f --- /dev/null +++ b/meta/packages/xorg-driver/xf86-input-synaptics_git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xf86-input-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- keyboard input driver" | ||
4 | |||
5 | PV = "0.15.2+git${SRCREV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-input-synaptics;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2/002_avoid_duplicate_SaveHWState.patch b/meta/packages/xorg-driver/xf86-video-intel-dri2/002_avoid_duplicate_SaveHWState.patch new file mode 100755 index 0000000000..87c2a873eb --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2/002_avoid_duplicate_SaveHWState.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -urN xf86-video-intel-2.5.96.0/src/i830_driver.c xf86-video-intel-2.5.96.0.new/src/i830_driver.c | ||
2 | --- xf86-video-intel-2.5.96.0/src/i830_driver.c 2008-09-13 06:58:45.000000000 +0800 | ||
3 | +++ xf86-video-intel-2.5.96.0.new/src/i830_driver.c 2008-09-25 21:22:08.000000000 +0800 | ||
4 | @@ -1782,7 +1782,7 @@ | ||
5 | return FALSE; | ||
6 | |||
7 | pI830 = I830PTR(pScrn); | ||
8 | - pI830->SaveGeneration = -1; | ||
9 | + pI830->SaveGeneration = serverGeneration; | ||
10 | pI830->pEnt = pEnt; | ||
11 | pI830->use_drm_mode = drm_mode_setting; | ||
12 | |||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2/004_reduce_driver_boottime.patch b/meta/packages/xorg-driver/xf86-video-intel-dri2/004_reduce_driver_boottime.patch new file mode 100755 index 0000000000..f8c214931e --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2/004_reduce_driver_boottime.patch | |||
@@ -0,0 +1,95 @@ | |||
1 | diff -urN xf86-video-intel-2.5.96.0/src/i830_display.c xf86-video-intel-2.5.96.0.new/src/i830_display.c | ||
2 | --- xf86-video-intel-2.5.96.0/src/i830_display.c 2008-09-11 05:10:10.000000000 +0800 | ||
3 | +++ xf86-video-intel-2.5.96.0.new/src/i830_display.c 2008-09-25 21:27:42.000000000 +0800 | ||
4 | @@ -376,7 +376,7 @@ | ||
5 | i830WaitForVblank(ScrnInfoPtr pScreen) | ||
6 | { | ||
7 | /* Wait for 20ms, i.e. one cycle at 50hz. */ | ||
8 | - usleep(30000); | ||
9 | + usleep(21000); | ||
10 | } | ||
11 | |||
12 | void | ||
13 | diff -urN xf86-video-intel-2.5.96.0/src/i830_driver.c xf86-video-intel-2.5.96.0.new/src/i830_driver.c | ||
14 | --- xf86-video-intel-2.5.96.0/src/i830_driver.c 2008-09-25 21:23:52.000000000 +0800 | ||
15 | +++ xf86-video-intel-2.5.96.0.new/src/i830_driver.c 2008-09-25 21:30:13.000000000 +0800 | ||
16 | @@ -2293,7 +2293,7 @@ | ||
17 | static void | ||
18 | i830_dpll_settle(void) | ||
19 | { | ||
20 | - usleep(10000); /* 10 ms *should* be plenty */ | ||
21 | + usleep(150); /* 10 ms *should* be plenty */ | ||
22 | } | ||
23 | |||
24 | static Bool | ||
25 | @@ -2315,14 +2315,12 @@ | ||
26 | xf86OutputPtr output = xf86_config->output[i]; | ||
27 | output->funcs->dpms(output, DPMSModeOff); | ||
28 | } | ||
29 | - i830WaitForVblank(pScrn); | ||
30 | |||
31 | /* Disable pipes */ | ||
32 | for (i = 0; i < xf86_config->num_crtc; i++) { | ||
33 | xf86CrtcPtr crtc = xf86_config->crtc[i]; | ||
34 | crtc->funcs->dpms(crtc, DPMSModeOff); | ||
35 | } | ||
36 | - i830WaitForVblank(pScrn); | ||
37 | |||
38 | if (IS_MOBILE(pI830) && !IS_I830(pI830)) | ||
39 | OUTREG(LVDS, pI830->saveLVDS); | ||
40 | @@ -2369,11 +2367,13 @@ | ||
41 | OUTREG(FPA0, pI830->saveFPA0); | ||
42 | OUTREG(FPA1, pI830->saveFPA1); | ||
43 | OUTREG(DPLL_A, pI830->saveDPLL_A); | ||
44 | + POSTING_READ(DPLL_A); | ||
45 | i830_dpll_settle(); | ||
46 | if (IS_I965G(pI830)) | ||
47 | OUTREG(DPLL_A_MD, pI830->saveDPLL_A_MD); | ||
48 | else | ||
49 | OUTREG(DPLL_A, pI830->saveDPLL_A); | ||
50 | + POSTING_READ(DPLL_A); | ||
51 | i830_dpll_settle(); | ||
52 | |||
53 | /* Restore mode config */ | ||
54 | @@ -2409,13 +2409,11 @@ | ||
55 | DISPPLANE_SEL_PIPE_A) { | ||
56 | OUTREG(DSPACNTR, pI830->saveDSPACNTR); | ||
57 | OUTREG(DSPABASE, INREG(DSPABASE)); | ||
58 | - i830WaitForVblank(pScrn); | ||
59 | } | ||
60 | if ((pI830->saveDSPBCNTR & DISPPLANE_SEL_PIPE_MASK) == | ||
61 | DISPPLANE_SEL_PIPE_A) { | ||
62 | OUTREG(DSPBCNTR, pI830->saveDSPBCNTR); | ||
63 | OUTREG(DSPBBASE, INREG(DSPBBASE)); | ||
64 | - i830WaitForVblank(pScrn); | ||
65 | } | ||
66 | |||
67 | /* See note about pipe programming above */ | ||
68 | @@ -2430,11 +2428,13 @@ | ||
69 | OUTREG(FPB0, pI830->saveFPB0); | ||
70 | OUTREG(FPB1, pI830->saveFPB1); | ||
71 | OUTREG(DPLL_B, pI830->saveDPLL_B); | ||
72 | + POSTING_READ(DPLL_B); | ||
73 | i830_dpll_settle(); | ||
74 | if (IS_I965G(pI830)) | ||
75 | OUTREG(DPLL_B_MD, pI830->saveDPLL_B_MD); | ||
76 | else | ||
77 | OUTREG(DPLL_B, pI830->saveDPLL_B); | ||
78 | + POSTING_READ(DPLL_B); | ||
79 | i830_dpll_settle(); | ||
80 | |||
81 | /* Restore mode config */ | ||
82 | @@ -2468,13 +2468,11 @@ | ||
83 | DISPPLANE_SEL_PIPE_B) { | ||
84 | OUTREG(DSPACNTR, pI830->saveDSPACNTR); | ||
85 | OUTREG(DSPABASE, INREG(DSPABASE)); | ||
86 | - i830WaitForVblank(pScrn); | ||
87 | } | ||
88 | if ((pI830->saveDSPBCNTR & DISPPLANE_SEL_PIPE_MASK) == | ||
89 | DISPPLANE_SEL_PIPE_B) { | ||
90 | OUTREG(DSPBCNTR, pI830->saveDSPBCNTR); | ||
91 | OUTREG(DSPBBASE, INREG(DSPBBASE)); | ||
92 | - i830WaitForVblank(pScrn); | ||
93 | } | ||
94 | } | ||
95 | |||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2/005_disable_sdvo_TV_port_restoreHW.patch b/meta/packages/xorg-driver/xf86-video-intel-dri2/005_disable_sdvo_TV_port_restoreHW.patch new file mode 100755 index 0000000000..6cdeb3e70f --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2/005_disable_sdvo_TV_port_restoreHW.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | diff -urN xf86-video-intel-2.5.96.0/src/i830_driver.c xf86-video-intel-2.5.96.0.new/src/i830_driver.c | ||
2 | --- xf86-video-intel-2.5.96.0/src/i830_driver.c 2008-09-25 21:32:45.000000000 +0800 | ||
3 | +++ xf86-video-intel-2.5.96.0.new/src/i830_driver.c 2008-09-25 21:34:19.000000000 +0800 | ||
4 | @@ -912,6 +912,7 @@ | ||
5 | if (IS_MOBILE(pI830) && !IS_I830(pI830)) | ||
6 | i830_lvds_init(pScrn); | ||
7 | |||
8 | +#if 0 | ||
9 | if (IS_I9XX(pI830)) { | ||
10 | if (INREG(SDVOB) & SDVO_DETECTED) { | ||
11 | Bool found = i830_sdvo_init(pScrn, SDVOB); | ||
12 | @@ -931,7 +932,8 @@ | ||
13 | } | ||
14 | if (IS_I9XX(pI830) && IS_MOBILE(pI830)) | ||
15 | i830_tv_init(pScrn); | ||
16 | - | ||
17 | +#endif | ||
18 | + | ||
19 | for (o = 0; o < config->num_output; o++) | ||
20 | { | ||
21 | xf86OutputPtr output = config->output[o]; | ||
22 | @@ -1612,7 +1614,9 @@ | ||
23 | PreInitCleanup(pScrn); | ||
24 | return FALSE; | ||
25 | } | ||
26 | +#if 0 | ||
27 | RestoreHWState(pScrn); | ||
28 | +#endif | ||
29 | |||
30 | /* XXX This should go away, replaced by xf86Crtc.c support for it */ | ||
31 | pI830->rotation = RR_Rotate_0; | ||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2/006_disable_check_lvds_panelpower_status.patch b/meta/packages/xorg-driver/xf86-video-intel-dri2/006_disable_check_lvds_panelpower_status.patch new file mode 100755 index 0000000000..b35e43f6ae --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2/006_disable_check_lvds_panelpower_status.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | diff -urN xf86-video-intel-2.5.96.0/src/i830_lvds.c xf86-video-intel-2.5.96.0.new/src/i830_lvds.c | ||
2 | --- xf86-video-intel-2.5.96.0/src/i830_lvds.c 2008-09-01 05:27:39.000000000 +0800 | ||
3 | +++ xf86-video-intel-2.5.96.0.new/src/i830_lvds.c 2008-09-25 21:36:13.000000000 +0800 | ||
4 | @@ -404,10 +404,11 @@ | ||
5 | dev_priv->backlight_duty_cycle = dev_priv->backlight_max; | ||
6 | |||
7 | OUTREG(PP_CONTROL, INREG(PP_CONTROL) | POWER_TARGET_ON); | ||
8 | +#if 0 | ||
9 | do { | ||
10 | pp_status = INREG(PP_STATUS); | ||
11 | } while ((pp_status & PP_ON) == 0); | ||
12 | - | ||
13 | +#endif | ||
14 | dev_priv->set_backlight(output, dev_priv->backlight_duty_cycle); | ||
15 | dev_priv->dpmsoff = FALSE; | ||
16 | } else { | ||
17 | @@ -420,10 +421,11 @@ | ||
18 | dev_priv->set_backlight(output, 0); | ||
19 | |||
20 | OUTREG(PP_CONTROL, INREG(PP_CONTROL) & ~POWER_TARGET_ON); | ||
21 | +#if 0 | ||
22 | do { | ||
23 | pp_status = INREG(PP_STATUS); | ||
24 | } while (pp_status & PP_ON); | ||
25 | - | ||
26 | +#endif | ||
27 | dev_priv->dpmsoff = TRUE; | ||
28 | } | ||
29 | } | ||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2/007_disable_tiling_and_enable_UXA.patch b/meta/packages/xorg-driver/xf86-video-intel-dri2/007_disable_tiling_and_enable_UXA.patch new file mode 100755 index 0000000000..7f60295db2 --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2/007_disable_tiling_and_enable_UXA.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | diff -urN xf86-video-intel-2.5.96.0/src/i830_driver.c xf86-video-intel-2.5.96.0.new/src/i830_driver.c | ||
2 | --- xf86-video-intel-2.5.96.0/src/i830_driver.c 2008-09-27 18:19:07.000000000 +0800 | ||
3 | +++ xf86-video-intel-2.5.96.0.new/src/i830_driver.c 2008-09-27 18:20:13.000000000 +0800 | ||
4 | @@ -1511,12 +1511,12 @@ | ||
5 | * for example. :) | ||
6 | */ | ||
7 | if (!(pI830->accel == ACCEL_NONE)) { | ||
8 | -#ifdef I830_USE_UXA | ||
9 | - pI830->accel = ACCEL_UXA; | ||
10 | -#endif | ||
11 | #ifdef I830_USE_EXA | ||
12 | pI830->accel = ACCEL_EXA; | ||
13 | #endif | ||
14 | +#ifdef I830_USE_UXA | ||
15 | + pI830->accel = ACCEL_UXA; | ||
16 | +#endif | ||
17 | #if I830_USE_XAA + I830_USE_EXA + I830_USE_UXA >= 2 | ||
18 | from = X_DEFAULT; | ||
19 | if ((s = (char *)xf86GetOptValString(pI830->Options, | ||
20 | @@ -3106,7 +3106,7 @@ | ||
21 | #endif | ||
22 | |||
23 | /* Enable tiling by default */ | ||
24 | - pI830->tiling = TRUE; | ||
25 | + pI830->tiling = FALSE; | ||
26 | |||
27 | /* Allow user override if they set a value */ | ||
28 | if (xf86IsOptionSet(pI830->Options, OPTION_TILING)) { | ||
diff --git a/meta/packages/xorg-driver/xf86-video-intel-dri2_git.bb b/meta/packages/xorg-driver/xf86-video-intel-dri2_git.bb new file mode 100644 index 0000000000..4df2b1cb08 --- /dev/null +++ b/meta/packages/xorg-driver/xf86-video-intel-dri2_git.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | require xf86-video-common.inc | ||
2 | |||
3 | DESCRIPTION = "X.Org X server -- Intel i8xx, i9xx display driver" | ||
4 | DEPENDS += "virtual/libx11 libxvmc drm dri2proto glproto \ | ||
5 | virtual/libgl xineramaproto libpciaccess" | ||
6 | PROVIDES = "xf86-video-intel" | ||
7 | |||
8 | PE = "1" | ||
9 | PR = "r0" | ||
10 | PV = "1.5.0+git${SRCREV}" | ||
11 | |||
12 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel;protocol=git;branch=dri2 \ | ||
13 | file://002_avoid_duplicate_SaveHWState.patch;patch=1 \ | ||
14 | file://004_reduce_driver_boottime.patch;patch=1 \ | ||
15 | file://005_disable_sdvo_TV_port_restoreHW.patch;patch=1 \ | ||
16 | file://006_disable_check_lvds_panelpower_status.patch;patch=1 \ | ||
17 | file://007_disable_tiling_and_enable_UXA.patch;patch=1" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | COMPATIBLE_HOST = '(i.86.*-linux)' | ||
22 | |||
23 | EXTRA_OECONF = "--enable-dri --disable-static" | ||
24 | |||
diff --git a/meta/packages/xorg-proto/dri2proto_1.99.1git.bb b/meta/packages/xorg-proto/dri2proto_1.99.1git.bb new file mode 100644 index 0000000000..35b4e1f149 --- /dev/null +++ b/meta/packages/xorg-proto/dri2proto_1.99.1git.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | DESCRIPTION = "DRI2 extension headers" | ||
2 | |||
3 | require xorg-proto-common.inc | ||
4 | |||
5 | PV = "1.99.1+git${SRCREV}" | ||
6 | |||
7 | SRC_URI = "git://git.freedesktop.org/git/xorg/proto/dri2proto;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
diff --git a/meta/packages/xorg-proto/inputproto-native_1.4.4.bb b/meta/packages/xorg-proto/inputproto-native_1.9.99.5git.bb index b6ce61142f..b6ce61142f 100644 --- a/meta/packages/xorg-proto/inputproto-native_1.4.4.bb +++ b/meta/packages/xorg-proto/inputproto-native_1.9.99.5git.bb | |||
diff --git a/meta/packages/xorg-proto/inputproto-sdk_1.4.4.bb b/meta/packages/xorg-proto/inputproto-sdk_1.9.99.5git.bb index f0e1985bf9..f0e1985bf9 100644 --- a/meta/packages/xorg-proto/inputproto-sdk_1.4.4.bb +++ b/meta/packages/xorg-proto/inputproto-sdk_1.9.99.5git.bb | |||
diff --git a/meta/packages/xorg-proto/inputproto_1.9.99.5git.bb b/meta/packages/xorg-proto/inputproto_1.9.99.5git.bb new file mode 100644 index 0000000000..5c62eb44da --- /dev/null +++ b/meta/packages/xorg-proto/inputproto_1.9.99.5git.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | PE = "1" | ||
5 | PV = "1.9.99.5+git${SRCREV}" | ||
6 | |||
7 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/inputproto;protocol=git" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | XORG_PN = "inputproto" | ||
diff --git a/meta/packages/xorg-proto/renderproto-sdk_0.9.3.bb b/meta/packages/xorg-proto/renderproto-sdk_0.9.3.bb new file mode 100644 index 0000000000..25ab90827f --- /dev/null +++ b/meta/packages/xorg-proto/renderproto-sdk_0.9.3.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require renderproto_${PV}.bb | ||
2 | |||
3 | inherit sdk | ||
diff --git a/meta/packages/xorg-proto/renderproto_0.9.3.bb b/meta/packages/xorg-proto/renderproto_0.9.3.bb new file mode 100644 index 0000000000..d4e0983a8b --- /dev/null +++ b/meta/packages/xorg-proto/renderproto_0.9.3.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | CONFLICTS = "renderext" | ||
4 | PR = "r1" | ||
5 | PE = "1" | ||
6 | |||
7 | XORG_PN = "renderproto" | ||
diff --git a/meta/packages/xorg-proto/xextproto-native_7.0.3.bb b/meta/packages/xorg-proto/xextproto-native_7.0.3.bb new file mode 100644 index 0000000000..2529e62ca2 --- /dev/null +++ b/meta/packages/xorg-proto/xextproto-native_7.0.3.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require xextproto_${PV}.bb | ||
2 | |||
3 | inherit native | ||
diff --git a/meta/packages/xorg-proto/xextproto-sdk_7.0.3.bb b/meta/packages/xorg-proto/xextproto-sdk_7.0.3.bb new file mode 100644 index 0000000000..3b182a02ff --- /dev/null +++ b/meta/packages/xorg-proto/xextproto-sdk_7.0.3.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require xextproto_${PV}.bb | ||
2 | |||
3 | inherit sdk | ||
diff --git a/meta/packages/xorg-proto/inputproto_1.4.4.bb b/meta/packages/xorg-proto/xextproto_7.0.3.bb index e3a8b09f2b..829d3cbe1e 100644 --- a/meta/packages/xorg-proto/inputproto_1.4.4.bb +++ b/meta/packages/xorg-proto/xextproto_7.0.3.bb | |||
@@ -3,4 +3,4 @@ require xorg-proto-common.inc | |||
3 | PR = "r1" | 3 | PR = "r1" |
4 | PE = "1" | 4 | PE = "1" |
5 | 5 | ||
6 | XORG_PN = "inputproto" | 6 | XORG_PN = "xextproto" |
diff --git a/meta/packages/xorg-proto/xproto-native_7.0.13.bb b/meta/packages/xorg-proto/xproto-native_7.0.13.bb new file mode 100644 index 0000000000..5dde8a7d4a --- /dev/null +++ b/meta/packages/xorg-proto/xproto-native_7.0.13.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require xproto_${PV}.bb | ||
2 | |||
3 | inherit native | ||
diff --git a/meta/packages/xorg-proto/xproto-sdk_7.0.13.bb b/meta/packages/xorg-proto/xproto-sdk_7.0.13.bb new file mode 100644 index 0000000000..1c1a934bb0 --- /dev/null +++ b/meta/packages/xorg-proto/xproto-sdk_7.0.13.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require xproto_${PV}.bb | ||
2 | |||
3 | inherit sdk | ||
diff --git a/meta/packages/xorg-proto/xproto_7.0.13.bb b/meta/packages/xorg-proto/xproto_7.0.13.bb new file mode 100644 index 0000000000..1adf55d97a --- /dev/null +++ b/meta/packages/xorg-proto/xproto_7.0.13.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require xorg-proto-common.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | PE = "1" | ||
5 | |||
6 | XORG_PN = "xproto" | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite.inc b/meta/packages/xorg-xserver/xserver-xf86-dri-lite.inc index 6caf889d1d..227be4ec0c 100644 --- a/meta/packages/xorg-xserver/xserver-xf86-dri-lite.inc +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite.inc | |||
@@ -1,8 +1,6 @@ | |||
1 | require xserver-xf86-common.inc | 1 | require xserver-xf86-common.inc |
2 | 2 | ||
3 | PROVIDES += "xserver-xf86-dri-lite" | 3 | PROTO_DEPS = "randrproto renderproto fixesproto damageproto xextproto xproto xf86dgaproto xf86miscproto xf86rushproto xf86vidmodeproto xf86bigfontproto compositeproto recordproto resourceproto videoproto scrnsaverproto evieext trapproto xineramaproto fontsproto kbproto inputproto bigreqsproto xcmiscproto glproto" |
4 | |||
5 | PROTO_DEPS = "randrproto renderproto fixesproto damageproto xextproto xproto xf86dgaproto xf86miscproto xf86rushproto xf86vidmodeproto xf86bigfontproto compositeproto recordproto resourceproto videoproto scrnsaverproto evieext trapproto xineramaproto fontsproto kbproto inputproto bigreqsproto xcmiscproto glproto xf86driproto dri2proto" | ||
6 | 4 | ||
7 | LIB_DEPS = "pixman mesa-dri libxfont xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess openssl" | 5 | LIB_DEPS = "pixman mesa-dri libxfont xtrans libxau libxext libxdmcp libdrm libxkbfile libpciaccess openssl" |
8 | 6 | ||
@@ -12,24 +10,28 @@ RDEPENDS = "hal xorg-minimal-fonts" | |||
12 | 10 | ||
13 | FILES_${PN} += "${bindir}/Xorg " | 11 | FILES_${PN} += "${bindir}/Xorg " |
14 | 12 | ||
15 | EXTRA_OECONF += "--disable-cfb \ | 13 | EXTRA_OECONF += "--disable-static \ |
16 | --disable-afb \ | 14 | --disable-acfb \ |
17 | --disable-mfb \ | 15 | --disable-ccfb \ |
16 | --disable-mcfb \ | ||
18 | --disable-dga \ | 17 | --disable-dga \ |
19 | --disable-xinerama \ | 18 | --disable-xinerama \ |
20 | --disable-xf86misc \ | 19 | --disable-xf86misc \ |
21 | --disable-xorgcfg \ | 20 | --disable-xorgcfg \ |
21 | --disable-record \ | ||
22 | --disable-dmx \ | 22 | --disable-dmx \ |
23 | --disable-xnest \ | 23 | --disable-xnest \ |
24 | --disable-xvfb \ | 24 | --disable-xvfb \ |
25 | --enable-composite \ | 25 | --enable-composite \ |
26 | --enable-dri \ | ||
27 | --enable-glx-tls \ | 26 | --enable-glx-tls \ |
28 | --sysconfdir=/etc/X11 \ | 27 | --sysconfdir=/etc/X11 \ |
29 | --localstatedir=/var \ | 28 | --localstatedir=/var \ |
29 | --with-pic \ | ||
30 | --with-int10=x86emu \ | ||
30 | --with-fontdir=/usr/share/fonts/X11 \ | 31 | --with-fontdir=/usr/share/fonts/X11 \ |
31 | --with-xkb-output=/var/lib/xkb \ | 32 | --with-xkb-output=/var/lib/xkb \ |
32 | ac_cv_file__usr_share_sgml_X11_defs_ent=no" | 33 | ac_cv_file__usr_share_sgml_X11_defs_ent=no" |
33 | 34 | ||
34 | # Due to mesa-dri | 35 | # Due to mesa-dri |
35 | COMPATIBLE_HOST = '(i.86.*-linux)' | 36 | COMPATIBLE_HOST = '(i.86.*-linux)' |
37 | |||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch new file mode 100644 index 0000000000..565832eed8 --- /dev/null +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/fix_open_max_preprocessor_error.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/os/osdep.h | ||
2 | =================================================================== | ||
3 | --- git.orig/os/osdep.h 2008-10-07 18:38:21.000000000 +0100 | ||
4 | +++ git/os/osdep.h 2008-10-07 18:39:36.000000000 +0100 | ||
5 | @@ -92,7 +92,7 @@ | ||
6 | * like sysconf(_SC_OPEN_MAX) is not supported. | ||
7 | */ | ||
8 | |||
9 | -#if OPEN_MAX <= 256 | ||
10 | +#if 0 | ||
11 | #define MAXSOCKS (OPEN_MAX - 1) | ||
12 | #else | ||
13 | #define MAXSOCKS 256 | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch new file mode 100755 index 0000000000..3d2fa1669a --- /dev/null +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-disable-dri_sarea.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -urN xorg-server-1.5.99.1/hw/xfree86/dri2/dri2.c xorg-server-1.5.99.1.new/hw/xfree86/dri2/dri2.c | ||
2 | --- xorg-server-1.5.99.1/hw/xfree86/dri2/dri2.c 2008-09-01 03:26:37.000000000 +0800 | ||
3 | +++ xorg-server-1.5.99.1.new/hw/xfree86/dri2/dri2.c 2008-09-18 00:28:16.000000000 +0800 | ||
4 | @@ -39,7 +39,7 @@ | ||
5 | #include "scrnintstr.h" | ||
6 | #include "windowstr.h" | ||
7 | #include "dri2.h" | ||
8 | -#include <GL/internal/dri_sarea.h> | ||
9 | +//#include <GL/internal/dri_sarea.h> | ||
10 | |||
11 | #include "xf86.h" | ||
12 | |||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch new file mode 100755 index 0000000000..7ff3658d0c --- /dev/null +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xorg-server-enable-dri2.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | commit 67b9b3a77a8b86eef03af36a0f4be3a07411efee | ||
2 | Author: Eric Anholt <eric@anholt.net> | ||
3 | Date: Thu Sep 11 16:18:17 2008 -0700 | ||
4 | |||
5 | Enable DRI2 build. | ||
6 | |||
7 | diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am | ||
8 | index eff2c31..98d7ec8 100644 | ||
9 | --- a/hw/xfree86/Makefile.am | ||
10 | +++ b/hw/xfree86/Makefile.am | ||
11 | @@ -4,9 +4,9 @@ if DRI | ||
12 | DRI_SUBDIR = dri | ||
13 | endif | ||
14 | |||
15 | -#if DRI2 | ||
16 | -#DRI2_SUBDIR = dri2 | ||
17 | -#endif | ||
18 | +if DRI2 | ||
19 | +DRI2_SUBDIR = dri2 | ||
20 | +endif | ||
21 | |||
22 | if XF86UTILS | ||
23 | XF86UTILS_SUBDIR = utils | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch new file mode 100755 index 0000000000..8e4033e9a3 --- /dev/null +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/xserver-boottime.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | diff --git a/os/log.c b/os/log.c | ||
2 | index 0860847..2c46f1a 100644 | ||
3 | --- a/os/log.c | ||
4 | +++ b/os/log.c | ||
5 | @@ -255,6 +255,32 @@ LogVWrite(int verb, const char *f, va_list args) | ||
6 | static char tmpBuffer[1024]; | ||
7 | int len = 0; | ||
8 | |||
9 | + struct timeval time; | ||
10 | + time_t tv_sec; | ||
11 | + suseconds_t tv_usec; | ||
12 | + static Bool first = TRUE; | ||
13 | + static time_t start_tv_sec; | ||
14 | + static suseconds_t start_usec; | ||
15 | + int diff_sec, diff_usec; | ||
16 | + | ||
17 | + gettimeofday(&time, NULL); | ||
18 | + tv_sec = time.tv_sec; | ||
19 | + tv_usec = time.tv_usec; | ||
20 | + if (first == TRUE) { | ||
21 | + start_tv_sec = tv_sec; | ||
22 | + start_usec = tv_usec; | ||
23 | + first = FALSE; | ||
24 | + } | ||
25 | + diff_sec = (int)difftime(tv_sec, start_tv_sec); | ||
26 | + diff_usec = (tv_usec - start_usec); | ||
27 | + if (diff_usec < 0) { | ||
28 | + diff_sec--; | ||
29 | + diff_usec += 1000000; | ||
30 | + } | ||
31 | + sprintf(tmpBuffer, "[%d sec: %06d usec]", diff_sec , diff_usec); | ||
32 | + len = strlen(tmpBuffer); | ||
33 | + fwrite(tmpBuffer, len, 1, logFile); | ||
34 | + | ||
35 | /* | ||
36 | * Since a va_list can only be processed once, write the string to a | ||
37 | * buffer, and then write the buffer out to the appropriate output | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb index bc5aa493e5..c9bd3f9fbe 100644 --- a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb | |||
@@ -3,6 +3,10 @@ require xserver-xf86-dri-lite.inc | |||
3 | PE = "1" | 3 | PE = "1" |
4 | PR = "r3" | 4 | PR = "r3" |
5 | 5 | ||
6 | PROTO_DEPS += "xf86driproto" | ||
7 | |||
6 | SRC_URI += "file://drmfix.patch;patch=1 \ | 8 | SRC_URI += "file://drmfix.patch;patch=1 \ |
7 | file://libdri-xinerama-symbol.patch;patch=1 " | 9 | file://libdri-xinerama-symbol.patch;patch=1 " |
8 | 10 | ||
11 | EXTRA_OECONF += "--enable-dri" | ||
12 | |||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb index e45702664b..39e286570e 100644 --- a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb | |||
@@ -4,8 +4,17 @@ PE = "1" | |||
4 | PR = "r2" | 4 | PR = "r2" |
5 | PV = "1.5.0+git${SRCREV}" | 5 | PV = "1.5.0+git${SRCREV}" |
6 | 6 | ||
7 | PROTO_DEPS += "xf86driproto" | ||
8 | |||
7 | DEFAULT_PREFERENCE = "-1" | 9 | DEFAULT_PREFERENCE = "-1" |
8 | 10 | ||
9 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/xserver;protocol=git \ | 11 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/xserver;protocol=git \ |
12 | file://xorg.conf \ | ||
10 | file://libdri-xinerama-symbol.patch;patch=1" | 13 | file://libdri-xinerama-symbol.patch;patch=1" |
11 | 14 | ||
15 | # Misc build failure for master HEAD | ||
16 | SRC_URI += "file://fix_open_max_preprocessor_error.patch;patch=1" | ||
17 | |||
18 | EXTRA_OECONF += "--enable-dri" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||