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?
Posts: 12
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
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: Lenovo ideapad Y700-15ISK - Sid, Win10, Solus
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Posts: 2084
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 .
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:


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.
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
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Return to Hardware

Who is online

Users browsing this forum: No registered users and 14 guests