This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Redboot cdl patch.
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: RE: [ECOS] Redboot cdl patch.
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Wed, 18 Oct 2000 07:28:46 -0600 (MDT)
- Cc: "Ecos-List (E-mail)" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat, Inc.
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
}