LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling my own kernel - where to put "config" file? (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-my-own-kernel-where-to-put-config-file-4175553415/)

Amanda_L 09-14-2015 12:16 AM

Compiling my own kernel - where to put "config" file?
 
Hi there

I'm ready to compile my own grsec kernel. I tried setting it up manually but there are a few settings that always fails, so I decided to use these config files:

https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec

Where do I put these? Could it be where I extracted the kernel and on the kernel/configs folder:

Code:

/usr/src/linux/linux-4.1.7/kernel/configs/
I downloaded 4.1.7 from Kernel.org and grsec current patch:

Code:

wget https://grsecurity.net/test/grsecurity-3.1-4.1.7-201509131604.patch
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.1.7.tar.xz

I already patched the kernel.

This is my first kernel build. Ever. Apologize for the newbie questions, but I couldn't find the answer. There are a few "config" files but I'm afraid I'll bork my compile if I replace them.

Thanks!

mzsade 09-14-2015 12:38 AM

There's a Sticky here in the Debian forum on how to properly do it which should work for any Linux distribution, i think. Have a look at it, i blindly followed it for my Debian. :)

Amanda_L 09-14-2015 12:47 AM

Quote:

Originally Posted by mzsade (Post 5420015)
There's a Sticky here in the Debian forum on how to properly do it which should work for any Linux distribution, i think. Have a look at it, i blindly followed it for my Debian. :)

for my Debian

Well, hehehehehee

Thanks! I'll have a look at it and see how it goes.

If all goes correctly, should I see the changes done if I issue "make menuconfig"? Or these config files will only be used at compilation time?

EDIT: I copied the "config.x86_64" file into the kernel directory and named it ".config". It's compiling now.

mzsade 09-14-2015 07:38 AM

We-ell? How did it go?

Amanda_L 09-14-2015 04:29 PM

Quote:

Originally Posted by mzsade (Post 5420123)
We-ell? How did it go?

It did work on Debian, it's really easy to compile a Kernel there. But on Arch I had to do it differently, I had to download a few other files and sources, edit a few of them, and then compile. And it worked, the config files are supposed to be exactly where the article said :D

Thanks.

ardvark71 09-14-2015 04:40 PM

Quote:

Originally Posted by Amanda_L (Post 5420385)
It did work on Debian, it's really easy to compile a Kernel there. But on Arch I had to do it differently, I had to download a few other files and sources, edit a few of them, and then compile. And it worked, the config files are supposed to be exactly where the article said :D

Hi...

Sounds like you got it working. If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks! :)

Regards...


All times are GMT -5. The time now is 04:16 PM.