3.7.0 HP StorageWorks HP Scalable NAS File Serving Software installation guide HP Scalable NAS for Linux (AG513-96004, October 2009)

2. Create a patched kernel source tree. Run the following command:
rpmbuild -bp /usr/src/redhat/SPECS/kernel-2.6.spec
This step populates the directory
/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.<arch>.
3. Rebuild the kernel using the standard Linux kernel configuration and build
process. You will probably want to begin with the following command in the
newly populated kernel source tree:
make scripts prepare
For reference, the HP Scalable NAS kernel configurations can be found in the
configs subdirectory of the kernel source tree.
Kernel binary and source RPM packages can be reconstructed using rpmbuild
-bb. The results can be found in:
/usr/src/redhat/SRPMS
/usr/src/redhat/RPMS/arch
NOTE:
rpm treats the architecture-independent kernel source RPM differently than other
packages. Among other notable differences, rpm -qa never reports this package.
If you think rpm -qa is reporting this package, be aware that it is actually reporting
an architecture-dependent kernel source RPM, not the architecture-independent
version. Also, the files that belong to this package are always placed in the same
location, without regard to any other versions of this package that might previously
have been installed.
Only one set of kernel build source can be installed on a system at any time. If you
need to work with multiple kernel build sources, you will need to manually extract
the kernel source RPM contents using rpm2cpio and override rpmbuild's default
working directories. The mk_phase1 and mk_phase2 scripts provide several
examples of how to do this.
HP Scalable NAS File Serving Software installation guide 63