[ECOS] Re: Building eCos

Bart Veer bartv@redhat.com
Fri Mar 3 06:49:00 GMT 2000

>>>>> "Robert" == Robert Swindells <swindellsr@genrad.co.uk> writes:

    Robert> Is anyone building eCos under UNIX ?

    Robert> If so, is there any documentation that describes how to do
    Robert> this. 

    Robert> If I try to use pkgconf.tcl to configure a build tree I
    Robert> just get: 

    Robert> % gmake
    Robert> makefile:9: pkgconf/pkgconf.mak: No such file or directory
    Robert> gmake: *** No rule to make target `pkgconf/pkgconf.mak'. Stop.

Robert and I have now managed to track down the problem. The eCos
build system was assuming the GNU version of the install utility. On
some versions of Unix including FreeBSD there is a different version
of install, which by default deletes the original rather than just
copying it. During the first run the make system will install various
files from the build tree to the install tree, leaving the build tree
unusable for subsequent runs.

The following patch to pkgconf/makevars should sort out the problem,
and should still work with the GNU version of install (it accepts and
ignores the -c flag).

Bart Veer // eCos net maintainer

Index: makevars
RCS file: /cvs/ecc/ecc/pkgconf/makevars,v
retrieving revision 1.15
diff -u -5 -u -r1.15 makevars
--- makevars	2000/02/02 19:13:29	1.15
+++ makevars	2000/03/03 14:47:47
@@ -97,11 +97,11 @@
 ifeq ($(OBJCOPY),)
 ifeq ($(CP),)
-CP	:= install -m 0644
+CP	:= install -c -m 0644
 #CP	:=
 ifeq ($(RM),)
 RM	:= rm -f
 #RM	:=

More information about the Ecos-discuss mailing list