exact kernel sources
Stefan Bader
stefan.bader at canonical.com
Wed Sep 14 07:17:07 UTC 2016
On 14.09.2016 09:07, Wim Torfs wrote:
>
>
> On 2016-09-14 08:09, Stefan Bader wrote:
>> On 13.09.2016 14:45, Wim Torfs wrote:
>>> Dear maintainers,
>>>
>>> I have been asked to modify some kernel modules of a specific kernel, installed
>>> default with Ubuntu 14.04.2, that is, 3.13.0-33-generic.
>>>
>>> If I download the kernel through apt-get source 3.13.0-33-generic, then the
>>> kernel release is 3.13.11-ckt39, not as one would expect 3.13.0-33-generic.
>>
>> You are getting confused by the Makefile version (which shows what upstream
>> stable version is the base for the kernel) and the package version.
>> The package version for the source package is found in the changelog file which
>> (also slightly different to normal Debian packaging) is located in debian.master.
>> The version in the changelog will be 3.13.0-x.y wjere x is the abi number (for
>> example 33) and y is the upload number which you see as #y in uname -a.
>>
>> https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel should have more info.
>>
>> -Stefan
>
>
> Thanks Stefan,
>
> That makes more sense to me than what I have found so far. But if I need to
> compile a kernel module for the 3.13.0-33-generic kernel image, then I assume I
> have to change the Makefile version, such as EXTRAVERSION, etc? Because if I use
> the config file, found in /boot, then I end up with a kernel version (uname -a)
> equal to the upstream stable version which is the base for this kernel.
>
> I was expecting that the Ubuntu kernel sources would generate the exact same
> kernel image (including the kernel version) as can be found in one of the images.
It will if you use the Debian build method (dpkg-buildpackage or at least some
call to fakeroot debian/rules) which also does not require to look for configs.
The matching config is automatically generated from the tree. If you need to
change some config, it is slightly non straight forward but should also be
explained in the wiki page.
Only one drawback for UEFI secure boot: there is no way to rebuilt with the same
signature.
-Stefan
>
> Wim.
>
>
>>
>>>
>>> Could you please help me getting the exact same kernel source, used for building
>>> the linux-image-3.13.0-33-generic package by means of the config file, located
>>> in the /boot section.
>>>
>>> Thanks,
>>>
>>> Kind regards,
>>> Wim Torfs.
>>>
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20160914/2648dae5/attachment.sig>
More information about the Ubuntu-devel-discuss
mailing list