pc386 BSP install fails: pr743 side-effect ?

Ralf Corsepius ralf.corsepius at rtems.org
Mon May 23 05:46:19 UTC 2005


On Mon, 2005-05-23 at 10:56 +1000, Chris Johns wrote:
> Joel Sherrill <joel at OARcorp.com> wrote:
> > 
> > Looks like a typo. Try this patch and let us know.
> > 
> 
> That patch did not work but this one does. Ralf, is this ok to commit to 
> the rtrems-4-6-branch ?
No. Using the gnumake proprietary vpath and %.c rules is never correct.

This bugs is known (at least to me) since the earliest days of 4.6, and
has been fixed a long time ago on 4.7. I haven't tried to fix it in 4.6
and will not fix it there, because to me, 4.6 is dead and not worth to
look into it again.

You'll have to adjust VPATH to pickup the correct file or to use
relative paths.

> Index: Makefile.am
> ===================================================================
> RCS file: 
> /usr1/CVS/rtems/c/src/lib/libbsp/i386/pc386/clock/Attic/Makefile.am,v
> retrieving revision 1.7.2.2
> diff -p -u -r1.7.2.2 Makefile.am
> --- Makefile.am 20 Jan 2005 16:54:45 -0000      1.7.2.2
> +++ Makefile.am 23 May 2005 00:32:45 -0000
> @@ -2,7 +2,7 @@
>   ## $Id: Makefile.am,v 1.7.2.2 2005/01/20 16:54:45 joel Exp $
>   ##
> 
> -VPATH = @srcdir@:@srcdir@/../../shared/tod:@srcdir@/../../../shared
> +vpath %.c @srcdir@:@srcdir@/../../shared/tod:@srcdir@/../../../shared
> 
>   PGM = $(ARCH)/clock.rel
> 
> @@ -13,7 +13,7 @@ include_HEADERS = tod.h
> 
>   tod.h: $(top_srcdir)/../../shared/tod.h
>          cp $< $@
> -CLEANFILES = tod
> +CLEANFILES = tod.h
> 
>   $(PROJECT_INCLUDE):
>          $(mkinstalldirs) $@

Ralf





More information about the users mailing list