lkml.org 
[lkml]   [1996]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Modules dependencies in 1.3.79 (was Re: Linux 1.3.78, Token Ring)
Steven L Baur wrote:
>
> >>>>> "Andrew" == Andrew C Esh <andrewes@cnt.com> writes:
>
> >> ernst.molitor@uni-bonn.de wrote:
> >>
> >> make[2]: Entering directory `/usr/local/linux/kernel'
> >> gcc -D__KERNEL__ -I/usr/local/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jump
> >> ksyms.c:350: macro `_basic_version' used with just one arg
> >> ksyms.c:351: macro `_basic_version' used with just one arg
>
> Andrew> Ding! Ding! Ding! We have a winner!
>
> ... (Response showing how to resolve the problem elided)
>
> This problem just bit me in 1.3.79 (after I patched make xconfig to
> work). Why doesn't ``make clean'' remove the stuff?

Because the .ver files are a product of "make dep", and so "make clean"
would undo that, and you wouldn't have any .ver files when it came
time to compile the kernel.

> I build kernels
> for multiple machines out of the same source tree (with the wonderful
> xconfig to keep the different configurations straight), so preserving
> version dependencies beyond a make xconfig is suboptimal behavior.
>
> Removing the .ver files looks like it gives a clean build, but is not
> very nice.

I agree. The makefile that creates them should be expanded to supply
dependencies for all files that the .ver. files are made from. Either
that or we need another main make target that does everything that mrproper
does, except destroy the config info. In your case, that would not be
a problem (because of xconfig), but it's a pain for me. The "make clean"
can't do enough, and the "make mrproper" must do too much.

I think I'm gonna try to switch to xconfig.

--
Andrew C. Esh mailto:andrew_esh@cnt.com
Computer Network Technology andrewes@mtn.org (finger for PGP key)
6500 Wedgwood Road 612.550.8000 (main)
Maple Grove MN 55311 612.550.8229 (direct)
http://www.cnt.com - CNT Inc. Home Page
http://www.mtn.org/~andrewes - ACE Home Page


\
 
 \ /
  Last update: 2005-03-22 13:36    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site