summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/oss-sound/oss4_1016-moduleinc.diff
blob: 4595ead9d25114463d501ccaa7c55618d2825621 (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
diff -uNr oss-v4.0-build1016-src-gpl/setup/Linux/oss/build/install.sh oss-v4.0-build1016-src-gpl.bak/setup/Linux/oss/build/install.sh
--- oss-v4.0-build1016-src-gpl/setup/Linux/oss/build/install.sh	2008-02-05 18:58:46.000000000 +0100
+++ oss-v4.0-build1016-src-gpl.bak/setup/Linux/oss/build/install.sh	2008-07-31 10:36:09.000000000 +0200
@@ -159,6 +159,7 @@
 ln -sf ../include/sys/*.h ../include/sys/ossddk .
 
 rm -f Makefile
+cp module.inc module.inc.orig
 ln -s Makefile.osscore Makefile
 
 if ! test -d $OSSLIBDIR/logs
@@ -221,7 +222,8 @@
 	make clean
 done 
 
-rm -f Makefile
+cp module.inc.orig module.inc
+rm -f Makefile module.inc.orig
 
 echo "depmod -a"
 depmod -a
diff -uNr oss-v4.0-build1016-src-gpl/setup/Linux/oss/build/Makefile.osscore oss-v4.0-build1016-src-gpl.bak/setup/Linux/oss/build/Makefile.osscore
--- oss-v4.0-build1016-src-gpl/setup/Linux/oss/build/Makefile.osscore	2005-11-23 23:52:32.000000000 +0100
+++ oss-v4.0-build1016-src-gpl.bak/setup/Linux/oss/build/Makefile.osscore	2008-07-31 10:34:23.000000000 +0200
@@ -7,11 +7,17 @@
 
 	KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 	PWD := $(shell pwd)
+endif
 
 default:
 	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
-
-endif
+	@#Take generated symbol information and add it to module.inc
+	@echo >> module.inc
+	@echo "static const struct modversion_info ____versions[]" >> module.inc
+	@echo " __attribute__((used))" >> module.inc
+	@echo "__attribute__((section(\"__versions\"))) = {" >> module.inc
+	@sed -e "s:^:{:" -e "s:\t:, \":" -e "s:\t\(.\)*:\"},:" < Module.symvers >> module.inc
+	@echo "};" >> module.inc
 
 clean:
 	rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z