Rtems Rebuild Remake Question

Joel Sherrill joel.sherrill at OARcorp.com
Fri Mar 8 14:25:29 UTC 2002



"Bill Butler(test)" wrote:
> 
> No I don't believe that the 5307 was ported over with 4.5.0, at least it
> was not in the main distrubtion.. I had to modify it.. But I was having
> trouble with the mcf5307elite, which was included.
> 
> But... I got it to work now.
> 
> I believe this is what I had to do to make it work. You know how things
> go.. you try several things, and retry and finally it works.. Now what
> was it that fixed it?
> 
> 1st. the Makefile.in is copied over on "make all" in the build directory
> not on configure. I was unsure about this.

Maybe this is an English thing but I think Makefile.in's are strictly
generated into the source tree by automake as part of bootstrap.
 
> 2nd. I had to touch the main Makefile.am in the root directory of the
> BSP. I believe this is because the build looked at the bsp directory and
> thought it was up to date (dependence problem?). By changing the Main
> makefile, it re-ran it which in turn copied the lower
> "start/Makefile.in" over from the src directory.

I am wondering what really happened.  There is no dependency between the
top level Makefile.am and any subdirectory's Makefile.am.  It is
possible
that you tried to run bootstrap while in a directory without a
configure.in
script.  I don't recall what bootstrap does/says in that case but it
won't
generate any files.

> Ps. if you want the somewhat complete (no networking) sbc5307 /
> mcf5307C3 bsp let me know.. 

I tend to never turn down a BSP for a board someone can actually
purchase. :)

Is this a completely new BSP or a variant of the mcf5307elite?
If a LOT of the code is the same and the differences can be contained,
it is better to treat it as a BSP variant.  For example, nearly all 
Motorola PowerPC VMEbus and CompactPCI boards are supported by a single
BSP and the individual models are variants.

> but remember I'm a Unix mental midget so
> there is little hope of me doing a diff for ya unless you point me to a
> page that explains what to do :)

See "FAQ 2.2 How do I generate a patch?"

http://www.oarcorp.com/rtemsdoc-4.5.1-pre3/rtemsdoc/html/FAQ/FAQ00016.html


> Bill Butler
> AIPCom Inc
> 972-644-2328 x16
> bbill at tnex.com
> 
> 
> -----Original Message-----
> From: Ian Caddy [mailto:ianc at microsol.iinet.net.au]
> Sent: Thursday, March 07, 2002 8:29 PM
> To: joel.sherrill at OARcorp.com
> Cc: Bill Butler; 'Ralf Corsepius'; 'RTEMS Users'
> Subject: Re: Rtems Rebuild Remake Question
> 
> Hi Joel,
> 
> I think the 5307 BSP that Bill was talking about was the one the we
> ported
> over to 4.5.0 from Fiddes original one.
> 
> We have had no problems with it under 4.5.0, although we did copy it
> over to a
> custom BSP and have since been changing it.
> 
> Bill, does this process work OK when you use the 4.5.0 release, or is it
> broken for that release also?
> 
> Ian Caddy
> 
> Joel Sherrill wrote:
> 
> >
> > I suspect that what you are running into is that David Fiddes' BSP is
> > based upon an old RTEMS version which is before we began using
> automake.
> > You will need to switch to Makefile.am's in order to merge into the
> > current BSP.  I suggest using the Makefile.am's from the mcf5206elite
> > and modifying them to match the files in the sbc5307.  bootstrap is
> > trying to generate Makefile.am's from Makefile.in's at development
> > time.  configure generates Makefile's from Makefile.in's at build
> time.
> >
> > [NOTE: This is actually covered much better in the class than in the
> > written documentation.]
> >
> 
> <snip>
> 
> --
> 
> ianc at microsol.iinet.net.au
> Microsol (Aust) Pty Ltd
> 
> Phone: (+61) 08 9473 6600
> Fax:   (+61) 08 9473 6699

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list