[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

4.5.0 Build Problem - make distclean




> Steve DeLaney wrote:
> 
> 
> I'm building 4.5.0 for 68360 (deliquent upgrade from 3.6.0 !)
> 
> On caldera linux build machine, with vanilla 4.5.0, I've successfully
> completed clean build, and run tests/samples/hello on target.  So far
> so good.
> 
> Next I'm attempting to "splice" netdemos into the source tree in
> ...c/src/tests.  Netdemos doesn't have its own makefile.am or
> configure.in.

Bad move.  The netdemos are designed to be used with the user level
Makefiles available after the BSP is installed.  If you
splice them into the tree, their Makefiles are totally wrong.
Complicating matters, the netdemos require VERY board specific
configuration
information which is another reason they are not in the main test
tree.

With that said, I would love to have some network tests that depended
only upon the loopback interface.  They could be run with no dependency
on per board configuration and still exercise the stack.

> With respect to the instructions in 4.5. FAQ section 4.2, I've created
> and edited Makefile.ams, configure.ins, run automake and autoconf
> 
> Next in my build directory, while attempting configure and make to
> pull in the netdemos subdirectory,
> I've run into this:
> 
> /bin/sh ./config.status --recheck
> running /bin/sh ../../../../../rtems-4.5.0/c/src/tests/configure
> --target=m68k-rtems --with-target-subdir=m68k-rtems
> --cache-file=.././config.cache
> --srcdir=../../../../../rtems-4.5.0/c/src/tests --no-create
> --no-recursion
> loading cache .././config.cache
> checking for RTEMS Version... 4.5.0
> checking host system type... i686-pc-linux-gnu
> checking target system type... m68k-unknown-rtems
> checking build system type... i686-pc-linux-gnu
> checking rtems target cpu... m68k
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> configure: error: source directory already configured; run make
> distclean there first
> make: *** [config.status] Error 1
> make distclean gives me the same error...
> 
> The questions are:
> 1) what is the recommended way to introduce code into the source
> tree?  After we complete netdemos, then we need to splice our 3.6.0
> application code in the source tree.
> 2) what is the recommended way to build it?
> 3) is it advisable to run a make distclean in src directory?  From
> what I can see Makefiles in the src tree are sparse.
> 
> Thanks,
> 
> Steve DeLaney
> Pacific Computing
> Wideband Cable, Inc.
> 
> 
> 
> 
> 

-- 
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