1 # Maintainer: LEW21 <lew21@xtreeme.org>
3 pkgname=radeon-firmware
8 pkgdesc="Firmware for Radeon graphic cards from Dave Airlie's drm-next branch."
10 url="http://airlied.livejournal.com/68097.html"
12 depends=('glibc' "kernel26>=${_realver}" "kernel26<${_nextver}")
13 makedepends=('git' 'gcc')
15 md5sums=('48faed3a3c96004b60bd839a68d57eb7')
17 _gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git"
22 msg "Connecting to git.kernel.org GIT server...."
24 if [ -d $startdir/src/$_gitname ] ; then
25 cd $_gitname || return 1
27 git checkout master -f
28 git branch -D drm-next
30 git pull origin || return 1
31 msg "The local files are updated."
33 git clone $_gitroot --depth 1
34 cd $_gitname || return 1
35 msg "GIT checkout done."
38 msg "Selecting a branch: $_gitbranch"
39 git checkout -b $_gitbranch origin/$_gitbranch
41 msg "Starting make..."
43 rm -rf $startdir/src/$_gitname-build
44 cp -rH $startdir/src/$_gitname $startdir/src/$_gitname-build
45 cd $startdir/src/$_gitname-build
47 cp ${srcdir}/.config .
49 make modules || return 1
51 mkdir -p ${pkgdir}/lib/firmware/radeon || return 1
52 cp firmware/radeon/*.bin ${pkgdir}/lib/firmware/radeon || return 1