View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Mon Jan 03, 2011 10:15 am Post subject: How 2 manage # kernel configs with low disk usage?[SOLVED] |
|
|
Because Ati proprietary driver don't support KMS, I wish to be able to switch from a KMS to a non KMS kernel and vice-versa.
The only solution I see would be to duplicate the concerned gentoo-sources in /usr/src; each instance containing its own config file.
Although KMS configuration options should be the only one to differ between the two, the main constraint I see is that whatever kernel/module configuration is active, a Code: | make modules_install | from the alternate kernel should be required before reboot.
I'm wondering if there is any space saving but also convenient (integrated?) way to manage such an environment?
Thanks for your attention
Last edited by CaptainBlood on Thu Apr 24, 2014 8:31 pm; edited 4 times in total |
|
Back to top |
|
|
aderesch Tux's lil' helper
Joined: 06 Mar 2010 Posts: 123 Location: Hamburg, Germany
|
Posted: Mon Jan 03, 2011 10:40 am Post subject: Re: How 2 manage # kernel configs with low disk usage? |
|
|
First of all, by setting the environment variable KBUILD_OUTPUT to a directory of your choice it is possible to only duplicate config and object files, working off the same source directory. If on the other hand you don't expect to frequently recompile both kernels, why not configure one with a suffix (e.g. "-fglrx")? Then there will be separate module directories, which will be used depending on the currently booted kernel.
ad |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Mon Jan 03, 2011 11:26 am Post subject: |
|
|
CaptainBlood,
Save your two .config files outside the kernel tree, or turn on /proc/config.gz in the kernel.
Edit the EXTRVERSION at the top of the Makefile.
There is an option in menuconfig that has a similar effect but its not respected by all out of kernel modules. You would need to test if it works with fglrx.
This will give you two different kernel names and two different /lib/module/... destinations for the kernel modules _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Thu Apr 24, 2014 8:23 pm Post subject: |
|
|
Hi dear all,
For the last 3 yeas I've been duplicating gentoo-sources to a directory which name reflects my change of the EXTRAVERSION variable in the Makefile.
By doing so uname command relfects kernel signature.
/etc/conf.d/modules
/etc/local.d/start.local
/etc/local.d/stop.local
can behave accordingly.
Thanks for your attention, help and support. |
|
Back to top |
|
|
|