Re: [Linux-ia64] SN makefile stuff

From: Sam Ravnborg <sam_at_ravnborg.org>
Date: 2003-03-07 18:02:45
On Thu, Mar 06, 2003 at 02:53:21PM -0800, Jesse Barnes wrote:

> > > +fakeprom: $(obj)/fakeprom $(obj)/vmlinux.sym
> > > +	cp $(obj)/fakeprom $(obj)/fprom
> > $(obj)/fprom is a target here.
> 
> I should probably just generate fprom directly instead of copying it,
> otherwise I should use $(src)/fprom?

Generating fakeprom is the preferred method.
Otherwise the above rule should look like this:
$(obj)/fakeprom: $(obj)/fprom $(obj)/vmlinux.sym
	cp $< $@


> > EXTRA_TARGETS := fprom fakeprom vmlinux.sym
> 
> Could that explain why the files in arch/ia64/sn/fakeprom get rebuilt
> everytime?

Missing the EXTRA_TARGETS may explain that.
That is used by kbuild to read the .fprom.cmd file - and to check if the
commandline changed. If it fails to read .fprom.cmd it obviously think
the commandline changed.

	Sam
Received on Thu Mar 06 23:02:52 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST