From 9befc9c94d9b90ec8b569b6daf1b98bf9ef99360 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Fri, 20 Jan 2017 16:16:48 -0800 Subject: [PATCH] Force trusty to use -lts-xenial and remove kernel 3.4 hacks --- chroot-etc/xorg-intel-sna.conf | 12 ----- targets/xorg | 83 +++------------------------------- 2 files changed, 6 insertions(+), 89 deletions(-) delete mode 100644 chroot-etc/xorg-intel-sna.conf diff --git a/chroot-etc/xorg-intel-sna.conf b/chroot-etc/xorg-intel-sna.conf deleted file mode 100644 index f22b169e8..000000000 --- a/chroot-etc/xorg-intel-sna.conf +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2016 The crouton Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# On Intel platforms with FBC enabled, in order to see anything we need to use -# the SNA driver with the TearFree option. -Section "Device" - Identifier "Intel Graphics SNA+TearFree" - Driver "intel" - Option "AccelMethod" "sna" - Option "TearFree" "true" -EndSection diff --git a/targets/xorg b/targets/xorg index bb98e67f7..10d282f46 100644 --- a/targets/xorg +++ b/targets/xorg @@ -6,7 +6,7 @@ REQUIRES='audio' PROVIDES='x11' DESCRIPTION='X.Org X11 backend. Enables GPU acceleration on supported platforms.' CHROOTBIN='croutoncycle croutontriggerd croutonxinitrc-wrapper setres xinit' -CHROOTETC='xbindkeysrc.scm xorg-intel-sna.conf xserverrc xserverrc-xorg xserverrc-local.example' +CHROOTETC='xbindkeysrc.scm xserverrc xserverrc-xorg xserverrc-local.example' if [ -z "$TARGETNOINSTALL" -a -f "/sys/class/tty/tty0/active" ]; then error 99 "xorg target is only supported on Freon-based systems." fi @@ -25,29 +25,19 @@ rm -f '/etc/crouton/xserverrc-x11' backport='' if release -eq precise; then if [ "${ARCH#arm}" = "$ARCH" ]; then - # Note: lts-trusty mesa requires kernel version >=3.6 - if ! uname -r | grep -q "^3.4."; then - backport='-lts-trusty' - fi + backport='-lts-trusty' else # ARM only offers quantal backport at the moment backport='-lts-quantal' fi +elif release -eq trusty; then + backport='-lts-xenial' fi # Intel? inteldriver='' -pinmesa='' if [ "${ARCH#arm}" = "$ARCH" ]; then inteldriver="xserver-xorg-video-intel$backport" - - # On saucy onwards, if kernel version is 3.4, manually pin down old mesa - # libraries, as new ones require version >=3.6 (see issue #704). - # This is only required on non-Atom Intel chipsets (Atom uses i915 dri driver) - if release -ge saucy && uname -r | grep -q "^3.4." && - ! grep -q 0xa0 /sys/class/graphics/fb0/device/device; then - pinmesa='y' - fi fi # Catalog relevant and irrelevant video drivers @@ -67,72 +57,11 @@ removevideodrivers="$fbdev $inteldriver" # Compile crazy xorg hacks compile freon '-ldl -ldrm -I/usr/include/libdrm' so libdrm-dev -# Pin precise's version of mesa if necessary +# No systems use kernel 3.4 anymore, so remove the mesa hack pinfile='/etc/apt/preferences.d/precise-mesa-pin' pinlist='/etc/apt/sources.list.d/precise.list' pindummypkg='libwayland-egl1-dummy' -if [ -n "$pinmesa" ]; then - # Create a dummy libwayland-egl1 package, to satisfy dependencies - # (the libraries are actually provided by libegl1-mesa-drivers in precise) - install --minimal --asdeps equivs - - DEBTMP="`mktemp -d crouton.XXXXXX --tmpdir=/tmp`" - addtrap "rm -rf --one-file-system '$DEBTMP'" - - ( cd "$DEBTMP"; equivs-build - ) < "$pinlist" < "$pinfile" <