This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


Hi, all

I found the fact that target.ld doesn't always reflect 
the update of mlt files. You may not find it 
while you follow the normal process like ecosconfig new xxx, 
ecosdonfig tree and make. But once you execute make clean and make again, 
you will find that target.ld never reflects the later update of mlt files.
The cause is that target.ld.deps is cleared by make clean and 
never reprodued by the next make. I think that it is better 
to reflect the latest mlt files to target.ld in any case.
The attachment is my sugestion to fix it. It is only for vr4300 as an example,
but all architecture can be fixed likewise.
If you have any smarter idea or any reason why I shouldn't do so, 
please tell me.

Motoya Kurotsu
Allied Telesis K.K.

--- hal_mips_vr4300.cdl.orig	Fri May 24 12:04:17 2002
+++ hal_mips_vr4300.cdl	Fri Aug  9 16:16:04 2002
@@ -80,15 +80,15 @@ cdl_package CYGPKG_HAL_MIPS_VR4300 {
     compile       var_misc.c
     make {
-        <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_vr4300.ld
-        $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
-        @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
-        @echo >> $(notdir $@).deps
+        ldscript: <PACKAGE>/src/mips_vr4300.ld
+        $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $(PREFIX)/lib/target.ld $<
+        @echo $(PREFIX)/lib/target.ld ": \\" > target.ld.deps
+        @tail +2 target.tmp >> target.ld.deps
+        @echo >> target.ld.deps
         @rm target.tmp
     cdl_option CYGBLD_LINKER_SCRIPT {
         display "Linker script"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]