View previous topic :: View next topic |
Author |
Message |
hema n00b
Joined: 11 Apr 2007 Posts: 50 Location: Vlissingen, Netherlands
|
Posted: Sun Jun 03, 2007 1:30 pm Post subject: Use flags and rebuild kernel |
|
|
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 |
|
|
ricce_n Tux's lil' helper
Joined: 01 Jul 2004 Posts: 130
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Jun 03, 2007 1:46 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Sun Jun 03, 2007 4:21 pm Post subject: |
|
|
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 |
|
|
|