root/kernel/trunk/scripts/build-kernel-and-modules.sh

Revision 93, 1.5 kB (checked in by nextime, 2 years ago)

--

  • Property svn:executable set to
Line 
1 #!/bin/sh
2
3 # Kernel Module build script
4 #
5 # A handy-dandy way to build a range of modules available in Debian.
6 # Modules will be placed in /usr/src, and skips on broken/unbuildable modules
7
8 COMPILER_VERS="4.1"
9 ORIG_COMPILER="4.0"
10 # changing gcc!
11 rm /usr/bin/gcc
12 rm /usr/bin/g++
13 rm /usr/bin/cpp
14 ln -s /usr/bin/gcc-$COMPILER_VERS /usr/bin/gcc
15 ln -s /usr/bin/g++-$COMPILER_VERS /usr/bin/g++
16 ln -s /usr/bin/cpp-$COMPILER_VERS /usr/bin/cpp
17
18
19 HEADERDIR="/emulatori/medianix/kernels/linux-2.6.18.1"
20 #HEADERDIR="/emulatori/medianix/kernels/linux-2.6.20.1"
21
22 cd $HEADERDIR
23 make-kpkg --revision medianix.1 --bzimage kernel_image
24 make-kpkg --revision medianix.1 kernel_headers
25 make-kpkg --revision medianix.1 kernel_doc
26 make-kpkg --revision medianix.1 kernel_source
27 # we need headers file so..
28 make
29
30 cd ..
31
32
33 #LIST="at76c503a spca5xx madwifi bcm43xx ipw2100 ipw2200 ndiswrapper ov511 pwc rt2400 rt2500 zd1211 acx100 linux-wlan-ng fglrx-kernel-src nvidia-kernel-source unionfs-source cloop-src"
34
35 LIST="at76c503a spca5xx madwifi ipw2100 ipw2200 ndiswrapper ov511 pwc rt2400 rt2500 zd1211 acx100 linux-wlan-ng fglrx-kernel-src nvidia-kernel-source unionfs-source cloop-src zaptel-source misdn-mdx-modules-source"
36 # bcm43xx levato, non e' piu necessario perche' incluso nel kernel dal 2.6.17!
37
38 module-assistant get -f $LIST
39 module-assistant build -f $LIST -i -k $HEADERDIR
40
41
42
43 #FINISH
44 rm /usr/bin/gcc
45 rm /usr/bin/g++
46 rm /usr/bin/cpp
47 ln -s /usr/bin/gcc-$ORIG_COMPILER /usr/bin/gcc
48 ln -s /usr/bin/g++-$ORIG_COMPILER /usr/bin/g++
49 ln -s /usr/bin/cpp-$ORIG_COMPILER /usr/bin/cpp
50
Note: See TracBrowser for help on using the browser.