blob: 872d43f8ec378ede6698b228797c535aa935702c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#!/bin/sh
if test -f /etc/oss.conf
then
. /etc/oss.conf
else
OSSLIBDIR=/usr/lib/oss
fi
rm -f osscore_mainline.o
ln -s osscore.lib osscore_mainline.o
rm -f Makefile
ln -s Makefile.osscore Makefile
echo Compiling module osscore
if ! make > compile.list 2>&1
then
echo Compiling osscore module failed
cat compile.list
exit 1
fi
if ! test -d ../modules
then
mkdir ../modules
fi
if ! test -d ../logs
then
mkdir ../logs
fi
mv osscore.ko ../modules/
make clean > /dev/null 2>&1
for n in ../objects/*.o
do
N=`basename $n .o`
rm -f $N"_mainline.o"
ln -s $n $N"_mainline.o"
rm -f Makefile
sed "s/MODNAME/$N/g" < Makefile.tmpl > Makefile
echo Compiling module $N
if ! make > compile.list 2>&1
then
echo Compiling module $N failed
cat compile.list
exit 2
fi
mv $N.ko* ../modules/
make clean > /dev/null 2>&1
rm -f Makefile
done
if ! test -f $OSSLIBDIR/etc/installed_drivers
then
echo "-----------------------------"
/usr/sbin/ossdetect -v
echo "-----------------------------"
echo ""
fi
if test ! -f $OSSLIBDIR/etc/userdefs
then
echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
fi
exit 0
|