Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel and out-of-tree build.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Jan 05, 2017 2:02 pm    Post subject: Genkernel and out-of-tree build. Reply with quote

Does anyone know if it's possible to build an out-of-tree kernel with Genkernel?
From the docs it doesn't look like it, but I thought I'd check.

Thanks - Will
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jan 05, 2017 2:08 pm    Post subject: Reply with quote

I would think so since genkernel builds anything that's at /usr/src/linux. What makes you think it wouldn't work?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Jan 07, 2017 12:29 pm    Post subject: Reply with quote

After setting up KBUILD_OUTPUT and running genkernel in /usr/src/linux I get:
Code:

scripts/basic/fixdep.c:444:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied

which is reasonable, since the /usr/src/linux directory isn't world-writeable.

I've tinkered a bit, with no real idea of what I'm doing, but got no further.

Will
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jan 07, 2017 2:46 pm    Post subject: Reply with quote

Don't know exactly what you were doing but this Just Worked™ for me:
Code:
# cd /usr/src
# wget https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.18.46.tar.xz
<snip>
# tar -xJf linux-3.18.46.tar.xz
# ln -sf linux-3.18.46 linux
# cp linux-3.17.7-gentoo/.config linux/
# genkernel --oldconfig --no-install kernel
<snip>
* initrd: Not building since only the kernel was requested...
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     root=/dev/$ROOT
*     [ And "vga=0x317 splash=verbose" if you use a framebuffer ]
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
This was all run as root. What did you do differently? You want to share the kernel source you were trying to build?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Jan 07, 2017 4:29 pm    Post subject: Reply with quote

Thanks - I'll give it shot and report back. (I'm building the most recent Gentoo sources).

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum