Re: SMP module compilation on UP?

From: Kurt Garloff (garloff@suse.de)
Date: Thu Jun 14 2001 - 12:27:43 EST


On Thu, Jun 14, 2001 at 02:50:35AM +1000, Keith Owens wrote:
> On Wed, 13 Jun 2001 17:43:54 +0300,
> Mark Mokryn <mark@sangate.com> wrote:
> >Is this the only way - to keep two separately configured kernel source
> >trees? No way to do it via some flag?
>
> With 2.4, yes. You need a complete set of kernel source for every set
> of config files you use because the object code is written to the
> source directory. With 2.5 you can have a single source tree and
> multiple object trees, one for each config that you are working on.

Use cp -al to replicate your kernel source tree before configuring. It
creates a tree with hard links, so you don't waste disk space.
Just don't forget to unlink() the files, if you edit them manually. (*)

garloff@garloff:~/Physics/numerix $ type unlink
unlink is a function
unlink ()
{
    for name in $*;
    do
        test -f $name && {
            mv $name $name~$PPID;
            cp -pd $name~$PPID $name;
            rm $name~$PPID
        };
    done
}
                                                                
(*) If you use emacs, you don't need to unlink before edit. The backup file
    will stay linked, but the edited is unique. patch does unlink, so
    patching is no problem. vi does NOT unlink.

Regards,

-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE GmbH, Nuernberg, FRG                               SCSI, Security


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:22 EST