[elrepo] Recompile ernel-ml-2.6.38-2.el5 with make = error
Alan Bartlett
ajb at elrepo.org
Thu Apr 14 09:52:00 EDT 2011
On 14 April 2011 10:14, Christoph Raible <c.raible at science-computing.de> wrote:
> I need to recompile the kernel from your Website
>
> kernel-ml-2.6.38-2.el5.elrepo.x86_64.rpm.
>
> Can you give me some tips how I can do this?
Hi Christoph,
Here's a quick guide.
(1) Set up an rpmbuild directory structure as a _normal_ user NOT
_root_. The CentOS wiki will guide you. [1]
(2) Download the kernel-ml-2.6.38-2.el5.elrepo.src.rpm file from the
kernel/el5/SRPMS/ directory on your local mirror site.
(3) Install the source package into your rpmbuild tree:
rpm -i kernel-ml*.src.rpm
(4) Change to the SPECS/ directory
(5) Prepare the sources:
rpm -bp --target $(uname -m) kernel-ml*.spec
(6) Change to the BUILD/ker*/lin*/ directory.
(7) Copy the relevant configuration file (64-bit, in this case) to .conf
(8) make oldconfig
(9) make menuconfig
(10) Copy the .conf file back to the relevant configuration file name.
(11) Copy the changed configuration file to the SOURCES/ directory.
(12) Change to the SPECS/ directory.
(13) Edit the kernel-ml*.spec file to define your 'buildid'.
(14) Edit the kernel-ml*.spec file and add details of your changes to
the 'changelog' section.
(15) Start the build:
rpmbuild -ba --target $(uname -m) --define 'dist .el5' kernel-ml*.spec
2> err.log | tee out.log
(16) Collect your own source package from the SRPMS/ directory.
(17) Collect you own binary packages from the RPMS/x86_64/ directory.
(18) Enjoy!
Regards,
Alan.
[1] http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
More information about the elrepo
mailing list