How to Generate a Custom Name Kernel

Getting your soundcard to work, using Debian on non-i386 hardware, etc

How to Generate a Custom Name Kernel

Postby overlock » 2018-08-27 23:46

Hello, my question is I compile my kernel using make-kpkg, so far so good, but when it is finished with the very big name so linux-image-4.17.8-ck1_4.17.8-ck1-10.00.Custom_amd64.deb I would like so linux-image-4.17.8-ck1_amd64.deb how do I?
overlock
 
Posts: 1
Joined: 2018-08-27 23:40

Re: How to Generate a Custom Name Kernel

Postby milomak » 2018-09-02 12:22

while not answering your question, is there a specific reason why you are building your own kernel?

i think the answer to your problem may lie with the --revision= flag iirc
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1763
Joined: 2009-06-09 22:20

Re: How to Generate a Custom Name Kernel

Postby GarryRicketson » 2018-09-02 13:07

I don't know really, but doing some searches I found a couple of things that might give a hint. First, this is the search string I used:
Code: Select all
How can I modify the name when I compile a customized kernel for Debian

There are quite a few results, and I really don't have the tine or interest to look at all of them, but any way, one these 3 might help you .
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
5.2. --append-to-version

The first option lets you specify an addition to the kernel version, which then becomes part of the kernel's name. You may use alphanumeric characters, "+" and "." (period or full stop); do not use underscore "_".

Here's the kernel I'm running now:

====
https://stackoverflow.com/questions/28684811/how-to-change-version-string-of-the-kernel
=======

The last, but is not Debian, and does not use "make-kpkg", and I am not sure if it can be applied to Linux or Debian, it is somewhat more simple though.
https://www.freebsd.org/doc/handbook/kernelconfig-building.html
Once the edits to the custom configuration file have been saved, the source code for the kernel can be compiled using the following steps:

All the steps, are NOT included in this post, but they are really simple, 1 step includes:
Compile the new kernel by specifying the name of the custom kernel configuration file:

Code: Select all
# make buildkernel KERNCONF=MYKERNEL

=========
There seem to be a lot of results in a search, if none of the above are good enough, there are many more , just go through them until you find one that is suitable for you.
User avatar
GarryRicketson
 
Posts: 5055
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable