| [630] | 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 |  | 
|---|
| [1693] | 21 | You can build kernel-firmware, which is a bunch of binary blobs for | 
|---|
|  | 22 | hardware, by running the mock build with --arch=noarch. | 
|---|
|  | 23 |  | 
|---|
| [630] | 24 | <Build kmod-openafs> | 
|---|
|  | 25 |  | 
|---|
|  | 26 | [root@old-faithful ~]# su scripts-build - | 
|---|
|  | 27 | [scripts-build@old-faithful ~]$ cd repository | 
|---|
|  | 28 | [scripts-build@old-faithful repository]$ svn up | 
|---|
|  | 29 | [scripts-build@old-faithful repository]$ cd server/fedora | 
|---|
|  | 30 | [scripts-build@old-faithful fedora]$ make openafs-kernel kernvers=2.6.23.8-28.scripts1.fc7 | 
|---|
|  | 31 | [scripts-build@old-faithful fedora]$ logout | 
|---|
|  | 32 | [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 . | 
|---|
|  | 33 | [root@old-faithful ~]# rpm -ivh kmod-openafs-1.4.5-1.2.6.23.8_28.scripts1.fc7.x86_64.rpm | 
|---|
|  | 34 |  | 
|---|