Running grep -R tos_image.xml $TOSROOT/support
Result:
make/tos_image.extra: @$(TOS_IMAGE_PL) $(IDENT_FLAGS)
--ihex="$(MAIN_IHEX)" --exe="$(MAIN_EXE)" --objdump="$(OBJDUMP)"
--platform="$(PLATFORM)" > $(BUILDDIR)/tos_image.xml
Running: grep -R TOS_IMAGE_PL $TOSROOT/support
Result (and more):
/opt/cvs/tinyos-2.x/support/make/tos_image.extra:TOS_IMAGE_PL ?= tos-write-image
Running: man tos-write-image
Result: (man page)
So, that's how it's invoked to be generated.
But looking further...
Running: file `which tos-write-image`
Result:
/usr/bin/tos-write-image: a /usr/bin/perl -w script text executable
Running: less `which tos-write-image`
Result: (paged output, "XML gen" part shown below)
And the XML is generated... %ident_flags is just a hash populated with
some tests above to determine what to put in it....
print "<tos_image>\n";
print " <ident>\n";
for my $flag (keys %ident_flags) {
print " <$flag>$ident_flags{$flag}</$flag>\n";
}
print " </ident>\n";
print " <image format=\"ihex\">\n";
So, that's about it.
HTH,
Paul
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help