linux-mips-fnet
[Top] [All Lists]

Re: CVS Update@oss.sgi.com: linux

To: Ralf Baechle <ralf@oss.sgi.com>
Subject: Re: CVS Update@oss.sgi.com: linux
From: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>
Date: Thu, 25 May 2000 19:14:03 +0200 (CEST)
Cc: SGI Linux <linux@cthulhu.engr.sgi.com>, Linux MIPS <linux-mips@fnet.fr>, Klaus Naumann <spock@mgnet.de>
In-reply-to: <20000525015843.A7991@uni-koblenz.de>
Organization: none
Reply-to: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>
Sender: harry@franz.no.dom
On 24-May-00 Ralf Baechle wrote:
[offset.h]

> A good solution is important now that we have SMP.  Toggling CONFIG_SMP
> affects offset.h and not for all variations of make invocations we
> actually have the guarantee that offset.h is being rebuilt before using
> it.

What about making offset.h to depend on $(TOPDIR)/.config?

This may cause unneccessary rebuilds of objects depending on offset.h after
configuration changes but it forces offset.h to be rebuilt when CONFIG_SMP is
toggled.

For example:
--- Makefile.old        Thu May 25 19:05:08 2000
+++ Makefile    Thu May 25 19:08:48 2000
@@ -18,7 +18,7 @@
 offset.h: offset.s
        sed -n '/^@@@/s///p' $^ >$@
 
-offset.s: offset.c
+offset.s: offset.c $(TOPDIR)/.config
 
 clean:
        rm -f offset.[hs] $(TARGET).new                                         

-- 
Regards,
Harald

<Prev in Thread] Current Thread [Next in Thread>