This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 1000136] New: target.ld make dependencies incomplete, so startup type changes ineffectual
- From: bugzilla at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Tue, 25 Jan 2005 15:51:14 +0000 (GMT)
- Subject: [Bug 1000136] New: target.ld make dependencies incomplete, so startup type changes ineffectual
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000136
Summary: target.ld make dependencies incomplete, so startup type
changes ineffectual
Product: eCos
Version: CVS
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: normal
Component: CDL
AssignedTo: bartv@ecoscentric.com
ReportedBy: jifl@ecoscentric.com
QAContact: ecos-bugs@sources.redhat.com
[ Don't know why this isn't already in the bugs db but I can't find it ]
Each architecture (or in some cases, variant) HAL has a custom make rule for
building target.ld, consisting of e.g.
make {
<PREFIX>/lib/target.ld: <PACKAGE>/src/powerpc.ld
$(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS)
-o $@ $<
@echo $@ ": \\" > $(notdir $@).deps
@tail -n +2 target.tmp >> $(notdir $@).deps
@echo >> $(notdir $@).deps
@rm target.tmp
}
So target.ld depends on powerpc.ld. However it does _not_ also depend on the
relevant MLT files. So if you change the MLT startup type from e.g. ROM to RAM,
target.ld will not be rebuilt, and bad things happen.
I've put this as a CDL bug because I cannot see any way in current CDL to
express the dependency on the current MLT files, i.e. so that if the MLT file
changes, the dependency gets noticed. Currently generated makefiles have a macro
for all the MLT files, but that's not (just) the issue, as what you want to
notice is when the startup type in the configuration changes, not the files
themselves (which wouldn't have changed just because the config changed).
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.