Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
575c9f7cfc
4 changed files with 32 additions and 8 deletions
  1. +17
    -6
      package/base/alsa-driver/alsa-driver.conf
  2. +2
    -2
      package/base/alsa-driver/alsa-driver.desc
  3. +10
    -0
      package/base/alsa-driver/pkg_config_linux.in
  4. +3
    -0
      package/base/alsa-driver/pkgmapper.in

+ 17
- 6
package/base/alsa-driver/alsa-driver.conf

@ -20,11 +20,20 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
# . $base/package/base/linux/kernelversion.sh
# map the driver mainline (24 or 26) to a kernel source and module directory
kernelversion=""
alsa_lx_ver="${xpkg#$pkg-}"
lx_vers="`grep "^\[V\]" $base/package/base/linux/linux.desc | cut -f2 -d' '`"
for lx_ver in $lx_vers ; do
[ "$alsa_lx_ver" == "${lx_ver:0:1}${lx_ver:2:1}" ] && kernelversion="$lx_ver-rock"
done
var_append confopt ' ' '--with-oss=yes --with-cards=all --with-sequencer=yes'
var_append confopt ' ' "--with-isapnp=yes --with-moddir=$root/lib/modules/$kernelversion/alsa"
var_append confopt ' ' "--with-kernel=$root/usr/src/linux"
var_append confopt ' ' "--with-kernel=$root/usr/src/linux-$kernelversion"
[ "$arch" = "powerpc" ] &&
hook_add premake 1 "sed -i -e 's,\(CONFIG_SND_INTERWAVE.*\)=m,\1=n,' \
@ -32,7 +41,9 @@ var_append confopt ' ' "--with-kernel=$root/usr/src/linux"
-e 's,CONFIG_SND_HDSP=m,CONFIG_SND_HDSP=n,' \
-e 's,CONFIG_SND_RME9652=m,CONFIG_SND_RME9652=n,' toplevel.config"
# otherwise alsa installs other crap like an init scrpit ...
makeinstopt="$makeopt install-modules install-headers"
postmake="$postmake cp -r utils/alsasound snddevices $docdir && rm -f $root/usr/src/linux/.tmp_gas_check"
# otherwise alsa installs other crap like an init script ...
makeinstopt="$makeopt install-modules"
[ "$ROCKCFG_PKG_LINUX_DEFAULT" == "linux$alsa_lx_ver" ] && \
var_append makeinstopt " " "install-headers"
postmake="$postmake cp -r utils/alsasound snddevices $docdir && \
rm -f $root/usr/src/linux-$kernelversion/.tmp_gas_check"

+ 2
- 2
package/base/alsa-driver/alsa-driver.desc

@ -42,8 +42,8 @@
[L] GPL
[S] Stable
[V] 1.0.10 0
[V] 1.0.11rc4 0
[P] X -?---5---9 122.800
[D] 1766069851 alsa-driver-1.0.10.tar.bz2 ftp://ftp.alsa-project.org/pub/driver/
[D] 2023761666 alsa-driver-1.0.11rc4.tar.bz2 ftp://ftp.alsa-project.org/pub/driver/

+ 10
- 0
package/base/alsa-driver/pkg_config_linux.in

@ -0,0 +1,10 @@
pkgfork alsa-driver alsa-driver-24
pkgfork alsa-driver alsa-driver-26
if [ "$ROCKCFG_PKG_LINUX_SRC24" = 0 ]; then
pkgdisable alsa-driver=alsa-driver-24
fi
if [ "$ROCKCFG_PKG_LINUX_SRC26" = 0 ]; then
pkgdisable alsa-driver=alsa-driver-26
fi
pkgremove alsa-driver

+ 3
- 0
package/base/alsa-driver/pkgmapper.in

@ -0,0 +1,3 @@
case $xpkg in
alsa-driver-24|alsa-driver-26) pkg=alsa-driver ;;
esac

Loading…
Cancel
Save