diff options
author | lcapriotti <lcapriotti@svn> | 2010-07-02 13:32:34 +0000 |
---|---|---|
committer | lcapriotti <lcapriotti@svn> | 2010-07-02 13:32:34 +0000 |
commit | efb9ce78b3201006396788d16823ef4fb8a2877e (patch) | |
tree | 7a56b54f7b08b50d10bed44e3e0b587d4d7b4886 /tools | |
parent | 015b1edce0dc1f9d3ed0354c8410ebbf36651c9b (diff) |
upgrade asla to latest stable (from sources)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31574 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/XBMCLive/SDK/buildLive/Files/chroot_local-hooks/16-alsaUpgrade | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tools/XBMCLive/SDK/buildLive/Files/chroot_local-hooks/16-alsaUpgrade b/tools/XBMCLive/SDK/buildLive/Files/chroot_local-hooks/16-alsaUpgrade new file mode 100755 index 0000000000..de2ba21b3d --- /dev/null +++ b/tools/XBMCLive/SDK/buildLive/Files/chroot_local-hooks/16-alsaUpgrade @@ -0,0 +1,90 @@ +#!/bin/bash + +# Copyright (C) 2005-2010 Team XBMC +# http://www.xbmc.org +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with XBMC; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html + +echo +echo "Upgrading ALSA..." +echo + +cd /root +pushd . + +apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev libncursesw5-dev + +wget --no-proxy ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2 +wget --no-proxy ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2 +wget --no-proxy ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2 + +# +# uname -r gives the host version, we need the chrooted one +# +mv /bin/uname /bin/uname.ori + +cat > /bin/uname << EOF +#!/bin/sh + +if [ "\$1" = "-r" ] ; then + echo \$(ls /lib/modules) +else + /bin/uname.ori \$@ +fi +EOF +chmod +x /bin/uname + +tar xjf alsa-driver* + +cd alsa-driver* +./configure +make +make install + +popd +pushd . + +tar xjf alsa-lib* +cd alsa-lib* +./configure +make +make install + +popd +pushd . + +tar xjf alsa-utils* +cd alsa-utils* +./configure +make +make install + +popd +pushd . + +rm -f alsa-driver* +rm -f alsa-lib* +rm -f alsa-utils* + +# TODO CHECK +# alsaconf + +apt-get -y remove build-essential ncurses-dev gettext xmlto libasound2-dev +apt-get -y remove libncursesw5-dev +apt-get -y autoremove + +rm /bin/uname +mv /bin/uname.ori /bin/uname |