|
|
@ -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" |