application makefiles was Re: failing on packhex

Joel Sherrill joel.sherrill at OARcorp.com
Wed May 3 17:21:29 UTC 2000


Ralf Corsepius has emailed me privately a fix for this and 
I have attached it.  The instructions are:

cd rtems-4.5.0-beta2
patch -p0 < <path>/rtems-rc-4.5.0-14-cvs.diff
./bootstrap

Remember bootstrap requires automake and autoconf to be installed.

--joel

"Smith, Gene" wrote:
> 
> > From: Matt Smith [mailto:mdsmith at engr.utk.edu]
> >
> > "Smith, Gene" wrote:
> > >
> > > Matt,
> > > I can't figure this out. The big
> > "./bit_rtems i386
> > > cp386sx" works.
> > >
> > > But when I try to compile hello world for cp386sx, i get an
> > error about
> > > trying to do:
> > >
> > > sed -e 's/.$//' -e '/^S0/d' o-optimize/test.i |
> > > /home/gene/b2-rtems-4.5.0/install//cp386sx/bin/packhex >
> > o-optimize/test.exe
> > >
> > > The problem is that the path to packhex should be just
> > > ...../install/bin/packhex
> > > I don't know why it is putting in the cp386sx.
> > >
> > > I have changed the RTEMS_MAKEFILE_PATH to
> > > /home/gene/b2-rtems-4.5.0/install/cp386sx.  (It used to end
> > in /pc386)
> > > Maybe this path is not right?   Any ideas?
> > >
> > > -D
> >
> > packhex isn't used for the pc386 bsp. I'm just guessing, but I'd bet
> > that packhex has something to do with making an intel hex format file
> > for burning to eprom. It seems that the makefile stuff that gets
> > installed is in flux. Since you're not using hex files, you could just
> > comment out that part, probably in the $(make_exe) macro.
> >
> > Hopefully, all the broken stuff in the makefiles will be fixed soon.
> > It's actually fairly easy to track down, what calls what. Just start
> > from the hello_world Makefile, and track down what's getting included
> > and what macros are being defined. It's just tedious.
> >
> > Matt
> >
> 
> Matt,
> I found the problem. It is in tools/b2-rtems-4.5.0/make/main.cfg (and the
> associated file in install):
> 
> PROJECT_BIN=$(PROJECT_RELEASE)/bin
> should be
> PROJECT_BIN=$(PROJECT_ROOT)/bin
> 
> PROJECT_RELEASE ends in the bsp name, which caused the error, while
> PROJECT_ROOT is the install directory which contains bin.
> -D

-- 
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
-------------- next part --------------
Index: c/src/make/Makefile.am
===================================================================
RCS file: /usr1/CVS/rtems/c/src/make/Makefile.am,v
retrieving revision 1.7.2.4
diff -u -r1.7.2.4 Makefile.am
--- c/src/make/Makefile.am	2000/04/03 20:01:31	1.7.2.4
+++ c/src/make/Makefile.am	2000/04/14 21:03:15
@@ -9,7 +9,7 @@
 
 GENERIC_FILES = host.cfg
 
-MAKE_FILES = README directory.cfg leaf.cfg lib.cfg
+MAKE_FILES = README directory.cfg lib.cfg
 
 rtems_make_DATA = $(MAKE_FILES) $(GENERIC_FILES)
 
@@ -38,6 +38,8 @@
 	@echo rtems_cv_RTEMS_BSP_FAMILY=\$${rtems_cv_RTEMS_BSP_FAMILY=$(RTEMS_BSP_FAMILY)} >> $@
 
 DISTCLEANFILES = @RTEMS_BSP at .cache
+
+EXTRA_DIST = leaf.cfg
 
 include $(top_srcdir)/../../../automake/subdirs.am
 include $(top_srcdir)/../../../automake/local.am
Index: make/Makefile.am
===================================================================
RCS file: /usr1/CVS/rtems/make/Makefile.am,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 Makefile.am
--- make/Makefile.am	2000/03/21 18:05:28	1.3.2.2
+++ make/Makefile.am	2000/04/14 21:03:18
@@ -6,7 +6,7 @@
 
 rtems_makedir = $(prefix)/make
 
-rtems_make_DATA = main.cfg
+rtems_make_DATA = main.cfg leaf.cfg
 
 EXTRA_DIST = README directory.cfg host.cfg.in leaf.cfg lib.cfg
 


More information about the users mailing list