[ECOS] Redboot cdl patch.

Gary Thomas gthomas@redhat.com
Wed Oct 18 06:14:00 GMT 2000


 
On 18-Oct-2000 Fabrice Gautier wrote:
> I think the following patch correct some depends problems for redboot (which
> was not rebuild whenever the linker script was modified)
> 

Thanks for the pointer.  I embellished it a bit and checked in this patch:
 
Index: redboot/current/cdl/redboot.cdl
===================================================================
RCS file: /home/cvs/ecc/ecc/redboot/current/cdl/redboot.cdl,v
retrieving revision 1.16
diff -u -5 -p -r1.16 redboot.cdl
--- redboot/current/cdl/redboot.cdl     2000/10/17 19:29:37     1.16
+++ redboot/current/cdl/redboot.cdl     2000/10/18 13:08:46
@@ -79,13 +79,13 @@ cdl_package CYGPKG_REDBOOT {
 
        compile printf.c misc_funs.c io.c parse.c ticks.c
         compile -library=libextras.a load.c
 
         make -priority 320 {
-            <PREFIX>/bin/redboot.elf : $(PREFIX)/lib/libtarget.a main.o
+            <PREFIX>/bin/redboot.elf : $(PREFIX)/lib/target.ld $(PREFIX)/lib/libtarget.a
$(PREFIX)/lib/libextras.a main.o
                     @sh -c "mkdir -p $(dir $@)"
-                   $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ $^
+                   $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ main.o
         }
        make -priority 319 {
            main.o: $(REPOSITORY)/$(PACKAGE)/src/main.c $(PREFIX)/lib/libtarget.a
              $(CC) -c $(INCLUDE_PATH) $(CFLAGS) -o main.o $(REPOSITORY)/$(PACKAGE)/src/main.c
        }




More information about the Ecos-discuss mailing list