LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-25-2020, 06:53 PM   #1
spartanscrub
LQ Newbie
 
Registered: Feb 2020
Location: California
Distribution: CentOS
Posts: 6

Rep: Reputation: Disabled
Compiling RT Patched Kernel and installing "kernel-devel" style package


OS: CentOS 8.1.1911
Kernel: 4.19.103
Patch: patch-4.19.103-rt42

I am trying to install a "kernel-devel" (create the folder
Code:
/usr/src/kernels/4.19.103-rt42/
) style package after compiling the kernel.

I need to install 3rd party modules which require the "build" and "source" directories after compilation. So after compiling the new kernel, those directories point to the installation directory, which is over 9Gb. In contrast, the "kernel-devel" package for the default kernel directory is only 91Mb. It seems to only contain the Makefiles/Kconfig and some header files.

The 3rd party installations work when I keep the installation directory, but I compiled the kernel on an external block device since the on board HD size is <4Gb. They also work when using the default CentOS kernel with kernel-devel installed. Basically, I need to find a way to have the "source" directory of a compiled kernel be less than ~400M

Can I just copy the compiled kernel source directory to /usr/src/kernels and then delete all the object files? I'm assuming there must be a simpler way to accomplish this.

Thanks a lot!
 
Old 02-28-2020, 12:01 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,126

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
make clean should delete all the build components. The kernel source is < 100MB, last I checked.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Where can i find kernel-devel for slackware? Is there a problem installing kernel-devel? cesarsj Linux - Software 4 08-16-2019 05:14 AM
installing new, patched package containing 2 extra shell scripts bweaver Debian 5 03-01-2012 11:42 AM
Compiling kernel Debian style or Native style ? Raynus Debian 1 06-16-2008 06:56 AM
how to change mandrake style menu to kde style menu msalimane Mandriva 1 12-07-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration