3.5.1 Matrix Server Upgrade Guide
Appendix C: Build a RHEL4 Kernel from PolyServe Sources 61
Copyright © 1999-2007 PolyServe, Inc. All rights reserved.
3. Run the following command on the spec file:
# rpmbuild -bp --target=<arch> kernel-2.6.spec
4. Copy the kernel source tree to /usr/src:
# cp -a /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src
5. Create a symbolic link to the kernel source tree for the “linux”
common name.
# ln -s /usr/src/linux-2.6.9 /usr/src/linux
6. Verify that the symbolic link is valid:
# ls -lt /usr/src
total 28
lrwxrwxrwx 1 root root 12 Mar 2 16:36 linux -> linux-2.6.9/
drwxr-xr-x 20 root root 4096 Mar 2 16:21 linux-2.6.9
7. Modify the EXTRAVERSION variable to identify the patched Matrix
Server kernel. The variable is located in the Makefile in the directory
/usr/src/linux. The variable specifies the portion of the kernel name that
follows the kernel version number (2.6.9 in our example). The variable
must be set to the name used by the binary RHEL4 kernel. This is
typically the build number. You may also want to add a suffix that
identifies the kernel environment, such as PS or PolyServe to indicate
that the kernel was built for PolyServe Matrix Server. For example, if
you are building the Red Hat 2.6.9-34.ELsmp kernel,
EXTRAVERSION
would contain the following:
EXTRAVERSION = -34.ELsmp-PS
NOTE: Some third-party software requires that the kernel name match
the binary kernel name exactly. If you are using such software,
do not include a suffix to identify the kernel environment.
Compile the Kernel
Following is a suggested procedure that you can use as a guide for
building the kernel. Modify this procedure as necessary for your local
circumstances.
NOTE: If the servers have identical hardware configurations, you can
create the kernel on one server and then copy it to the other
servers.