SCIENTIFIC-LINUX-DEVEL Archives

April 2015

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Akemi Yagi <[log in to unmask]>
Reply To:
Akemi Yagi <[log in to unmask]>
Date:
Fri, 24 Apr 2015 08:31:07 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Fri, Apr 24, 2015 at 8:25 AM, Dirk Hoffmann <[log in to unmask]> wrote:
>> One final note.  If you want to download the source code of packages you
>> have installed, you can do this:
>>
>>  $ yumdownloader --source kernel
>>
>> Doing an 'rpm -i' will then unpack the src.rpm into ~/rpmbuild.  And
>> going into ~/rpmbuild/SPECS/, you can do:
>>
>>  $ rpmbuild -bp kernel.spec
>>
>> Then you'll get the complete kernel code unpacked and patched, ready to
>> be reviewed in ~/rpmbuild/BUILD/kernel-.....  Replacing -bp with -bb
>> will build the RPMs.   But for building, I rather recommend using 'mock'.
>
>
> Thank you very much David, that is exactly what I wanted to do!

If you would like to see more detailed instructions on how to build
your own kernel, this CentOS wiki article will help:

http://wiki.centos.org/HowTos/Custom_Kernel
(note that it has not been adjusted for EL7)

Or if you decide to build just the driver, look in:

http://wiki.centos.org/HowTos/BuildingKernelModules

Akemi

ATOM RSS1 RSS2