Il file di configurazione di default è .config, non config.
Se non dai ls -a non vedi i file nascosti, che in Linux iniziano con il "." .
Il .config deve essere nella top directory dei sorgenti del kernel , che è solitamente /usr/src/linux , ma che può essere da qualsiasi altra parte (es. puoi scompattare i sorgenti in / e avere /linux-2.6.15.6, quindi metterai il .config in /linux-2.6.15.6 , che avrà quindi il percorso /linux-2.6.15.6/.config e che, se dai ls /linux-2.6.15.6 non vedi, ma che vedi se usi ls -a /linu-2.6.15.6 ).
Fra l'altro sarebbe consigliabile compilare un nuovo kernel non in /usr/src/linux, ma nella propria home, secondo le indicazioni date da Linus in una e-mail del 27 luglio 2000:
From: Linus Torvalds (
torvalds@transmeta.com)
Date: Thu Jul 27 2000 - 02:39:51 EST
(omissis....)
I would suggest that people who compile new kernels should:
- NOT do so in /usr/src. Leave whatever kernel (probably only the
header files) that the distribution came with there, but don't
touch
it.
- compile the kernel in their own home directory, as their very own
Linux-Kernel Archive: Re: RLIM_INFINITY inconsistency between a (p6 of 8)
selves. No need to be root to compile the kernel. You need to be
root
to _install_ the kernel, but that's different.
- not have a single symbolic link in sight (except the one that the
kernel build itself sets up, namely the "linux/include/asm" symlink
that is only used for the internal kernel compile itself)
And yes, this is what I do. My /usr/src/linux still has the old 2.2.13
header files, even though I haven't run a 2.2.13 kernel in a _loong_
time. But those headers were what glibc was compiled against, so those
headers are what matches the library object files.
And this is actually what has been the suggested environment for at
least the last five years. I don't know why the symlink business keeps
on living on, like a bad zombie. Pretty much every distribution still
has that broken symlink, and people still remember that the linux
sources should go into "/usr/src/linux" even though that hasn't been
true in a _loong_ time.
Is there some documentation file that I've not updated and that people
are slavishly following outdated information in? I don't read the
documentation myself, so I'd never notice ;)
Linus
Dirò che comunque anch'io sono solito compilare in /usr/src e non ho mai avuto problemi di incompatibilità fra gli header del kernel e le glibc.
Dirò anche che non so se dai tempi di questa e-mail ci sono novità di rilievo sull'argomento, se qualcuno è più aggiornato di me è pregato di darmi in necessari ragguagli (per favore, grazie...).
Un'ultima cosa: è possibile scegliere anche un file di configurazione diverso da .config, così come si possono salvare varie configurazioni con nomi diversi; pertanto è possibile usare anche il file config presente in /boot chiedendo semplicemente di caricarlo durante l'xconfig o il menuconfig senza rinominarlo .config e spostarlo nella directory dei sorgenti.