LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2005, 02:25 PM   #1
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 304

Rep: Reputation: 30
Change Name of Kernel in Recompile


When you recompile the kernel in mandrake, the name of the kernel stays the same except the mdk at the end becomes mdkcustom. I'd like to keep that mdk as mdk when I recompile. How do I do this? I'm not recompiling the kernel to change the kernel in any way, I actually just have to have a configured kernel source to compile another module (drm). Problem is that it wants me to run make dep on the source, and Mandrake won't let you do that, plus the name gets changed, so the module that I'm building won't load on start up. It would be completely retarded to have to recompile and installed the kernel and ALL the modules just to get this one module working correctly. I haven't found a way to change the name that the kernel gets when it recompiles though.

Help please any expert out there.

EDIT: Don't worry about this, I think I found the answer. For those who are curious, I think it is in one of the top lines in the base Makefile of the source (i.e. /usr/src/linux/Makefile). Sorry, maybe this one was obvious, I just couldn't find it right away because there were so many different files to look at.

Last edited by springshades; 07-15-2005 at 02:39 PM.
 
Old 07-15-2005, 03:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
that's a pretty odd thing to want to change... why not have more fun and call it after yourself, or the machine... infact you really shouldn't force it back to mdk, as that implies it's a stock kernel again, which it isn't and could easily confuse others if you are after support for a kernel related issue.
 
Old 07-16-2005, 09:06 PM   #3
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 304

Original Poster
Rep: Reputation: 30
Well, this is something of a strange case. In order to get 3D support for my card, I needed to build dri from CVS. That involves compiling X.org, Mesa, and DRM. In order to build DRM, it is necessary to have a configured kernel source for your current kernel. Now I havent had to recompile my kernel yet, but I downloaded it and was having errors with the compile because I wasn't able to go far enough into the recompile process. This is because make dep doesn't work for some reason, it says it's unnecessary and won't execute... I know it's unnecessary in most cases, but in mine it is, because make clean isn't enough to make the DRM build go without errors.. (I don't know if the make dep thing is a Mandrake specific thing, or if it's just part of the newer kernels.) So... I decided to just go through with it and recompile the kernel. It IS in fact the stock kernel or an equivalent because I simply loaded the existing .config file and recompiled the kernel. After that, DRM built itself with no errors. However, the modules wouldn't load because... you guessed it... version magic gave me hell about the kernel being called mdk instead of mdkcustom. Yippy. So, the quick and easy fix, without any major side effects to speak of, was to just change the name of the kernel to mdk when I compiled it. The alternative would've been to recompile the kernel AND all the modules then actually install them. I just wish make dep would've worked, then I wouldn't have had to deal with any of this stuff.

Last edited by springshades; 07-16-2005 at 09:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Recompile harisund MEPIS 2 09-23-2005 03:57 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
Still trying to recompile Kernel!! muzicman82 Slackware 5 12-07-2003 05:38 AM
How do I recompile the kernel? christong Linux - General 4 11-12-2003 12:29 PM
kernel recompile synaptical Linux - General 7 08-17-2003 12:10 PM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration