[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-users
Subject:    Non-PAE kernel in 12.10
From:       tomh0665 () gmail ! com (Tom H)
Date:       2012-11-28 13:22:31
Message-ID: loom.20121128T140735-618 () post ! gmane ! org
[Download RAW message or body]

Tom H <tomh0665 <at> gmail.com> writes:
> On Wed, Nov 21, 2012 at 4:33 PM, Tom H <tomh0665 <at> gmail.com> wrote:
>>
>> I build kernels with the command below from upstream/pristine sources
>> rather than Ubuntu ones but you should be able to use (or at least
>> inspire yourself from) it:
>>
>> CONCURRENCY_LEVEL=$(getconf _NPROCESSORS_ONLN) DEBFULLNAME="Tom H"
>> DEBEMAIL="tomh0665 <at> gmail.com" KDEB_PKGVERSION="3.7.0.0-9h" fakeroot
>> make deb-pkg
>>
>> This creates "linux-image-3.7.0-rc6_3.7.0.0-9h_amd64.deb" (as well as
>> linux-headers, linux-firmware-image, and linux-libc-dev debs).
>>
>> Had I added "-t1" to "-rc6" on the "EXTRAVERSION" line at the top of
>> "./Makefile", the deb's name would've been
>> "linux-image-3.7.0-rc6-t1_3.7.0.0-9h_amd64.deb".
>>
>> ("-t1" and "-9h" are just for illustration purposes!)
>>
>> I don't put "3.7.0.0-" in KDEB_PKGVERSION when I do a build, in which
>> case the debs' names are "linux-image-3.7.0-rc6_9h_amd64.deb" or
>> "linux-image-3.7.0-rc6-t1_9h_amd64.deb". I added it above because
>> Ubuntu names its kernel packages this way (more or less!), so I
>> thought that I'd follow that model in my example. The latest raring
>> kernel package is "linux-image-3.7.0-3-generic_3.7.0-3.9_amd64.deb".
> 
> "make deb-pkg" must be run with fakeroot. You can run "...
> KBUILD_PKG_ROOTCMD=fakeroot make deb-pkg" rather than the above "...
> fakeroot make deb-pkg".

One more comment for the sake of completion:

If you're intent on sharing the package or creating it the "right" way
(as opposed to my wrong way), it's best to name it like Ubuntu does,
with a revision that's the full kernel version,
"linux-image-3.7.0-4-generic_3.7.0-4.12_amd64.deb".

So, if you install it with apt-get, you install
"linux-image-3.7.0-4-generic", the kernel's called
"vmlinuz-3.7.0-4-generic", "uname -r" returns "3.7.0-4-generic", and
"apt-cache show linux-image-3.7.0-4-generic" returns "Version:
3.7.0-4.12".




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic