source: server/doc/kernel-build-howto @ 872

Last change on this file since 872 was 630, checked in by andersk, 17 years ago
I found this lying around.
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1<Build kernel>
2
3[root@old-faithful ~]# su - scripts-build
4[scripts-build@old-faithful ~]$ wget -N http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/7/SRPMS/kernel-2.6.23.1-28.fc7.src.rpm
5[scripts-build@old-faithful ~]$ rpm -i kernel-2.6.23.1-28.fc7.src.rpm
6[scripts-build@old-faithful ~]$ cd rpmbuild/SOURCES
7[scripts-build@old-faithful SOURCES]$ wget -N http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2
8[scripts-build@old-faithful SOURCES]$ wget -N http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.23.8.bz2
9[scripts-build@old-faithful SOURCES]$ rename 2.6.23.1 2.6.23.8 kernel-2.6.23.1-*.config
10[scripts-build@old-faithful SOURCES]$ cd ../SPECS
11[scripts-build@old-faithful SPECS]$ emacs kernel-2.6.spec
12 change:
13 %define build_id .scripts1
14 %define base_sublevel 23
15 %define stable_update 8
16[scripts-build@old-faithful SPECS]$ rpmbuild --with baseonly --with vanilla -bb kernel-2.6.spec
17[scripts-build@old-faithful ~]$ logout
18[root@old-faithful ~]# cp -a /home/scripts-build/rpmbuild/RPMS/x86_64/kernel-vanilla*-2.6.23.8-28.scripts1.fc7.x86_64.rpm .
19[root@old-faithful ~]# rpm -ivh kernel-vanilla{,-devel}-2.6.23.8-28.scripts1.fc7.x86_64.rpm
20
21<Build kmod-openafs>
22
23[root@old-faithful ~]# su scripts-build -
24[scripts-build@old-faithful ~]$ cd repository
25[scripts-build@old-faithful repository]$ svn up
26[scripts-build@old-faithful repository]$ cd server/fedora
27[scripts-build@old-faithful fedora]$ make openafs-kernel kernvers=2.6.23.8-28.scripts1.fc7
28[scripts-build@old-faithful fedora]$ logout
29[root@old-faithful ~]# cp -a /home/scripts-build/rpmbuild/RPMS/x86_64/kmod-openafs-1.4.5-1.2.6.23.8_28.scripts1.fc7.x86_64.rpm .
30[root@old-faithful ~]# rpm -ivh kmod-openafs-1.4.5-1.2.6.23.8_28.scripts1.fc7.x86_64.rpm
31
Note: See TracBrowser for help on using the repository browser.