Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use flags and rebuild kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hema
n00b
n00b


Joined: 11 Apr 2007
Posts: 50
Location: Vlissingen, Netherlands

PostPosted: Sun Jun 03, 2007 1:30 pm    Post subject: Use flags and rebuild kernel Reply with quote

A noob question.
Do you need to rebuild the kernel if the USE flags in Make.conf are changed?
Or what is the relation between the USE flags in Make.conf and the buildig of the kernel. This because you can also set the USE flags in de package.use file.
_________________
Computers = patience needed
Computers + gentoo = double patience needed

Met groeten uit Vlissingen
Henk
Back to top
View user's profile Send private message
ricce_n
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2004
Posts: 130

PostPosted: Sun Jun 03, 2007 1:36 pm    Post subject: Reply with quote

The USE flags have nothing to do with the kernel....

http://www.gentoo.org/doc/en/handbook/2007.0/handbook-x86.xml?part=2&chap=2
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Jun 03, 2007 1:46 pm    Post subject: Reply with quote

hema,

The -v (--verbose) option to emerge, shows what flags apply to each package and how they are set.
The following
Code:
$ emerge gentoo-sources -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-kernel/gentoo-sources-2.6.21-r2  USE="-build -symlink" 0 kB
shows that only build and symlink are used by the kernel. The symlink option controls the updating of the /usr/src/linux symbolic link, not the kernel code. I'be never looked at build, so I don't know what that does.

There is no need to rebuild the kernel when you change USE settings.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sun Jun 03, 2007 4:21 pm    Post subject: Reply with quote

NeddySeagoon wrote:
I'be never looked at build, so I don't know what that does.


The build USE flag appears to be used in its standard capacity for affecting stage1 builds. Its most obvious roll is in /usr/portage/eclass/kernel-2.eclass, where it affects the DEPEND and RDEPEND values for the ebuild:
Code:
    DEPEND="!build? ( sys-apps/sed
                      >=sys-devel/binutils-2.11.90.0.31 )"
    RDEPEND="!build? ( >=sys-libs/ncurses-5.2
                       sys-devel/make )
             virtual/dev-manager"


I did not check the eclasses that kernel-2.eclass inherits. They may have additional uses of the build keyword. A quick scan of =sys-kernel/gentoo-sources-2.6.21-r2 and the kernel-2.eclass did not reveal any other uses of the build USE flag.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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