[Tinyos-2-commits] CVS: tinyos-2.x/tools/tinyos/misc
tos-write-image.in, 1.4, 1.5
Prabal Dutta
prabal at users.sourceforge.net
Thu Apr 26 22:01:28 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tools/tinyos/misc
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3896/tools/tinyos/misc
Modified Files:
tos-write-image.in
Log Message:
Allows proper generation of tos_image.xml.
- fixes a small mistake in support/make/Makedefaults that
prevents the generation on ident information
- updates support/make/tos_image.extra and tools/tinyos/misc/tos-write-image.in
to allow generation of the platform information in the tos_image.xml.
Index: tos-write-image.in
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tools/tinyos/misc/tos-write-image.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tos-write-image.in 12 Dec 2006 18:23:02 -0000 1.4
--- tos-write-image.in 27 Apr 2007 05:01:25 -0000 1.5
***************
*** 21,24 ****
--- 21,25 ----
my $ihex = "";
my $objdump = "avr-objdump";
+ my $platform = "";
for my $arg (@ARGV) {
***************
*** 26,30 ****
$ident_flags{lc($1)} = uc($2);
}
! elsif ($arg =~ /^-DIDENT_(.+)=(.+)$/) {
$ident_flags{lc($1)} = $2;
}
--- 27,31 ----
$ident_flags{lc($1)} = uc($2);
}
! elsif ($arg =~ /^-DIDENT_(.+)="(.+)"$/) {
$ident_flags{lc($1)} = $2;
}
***************
*** 38,41 ****
--- 39,45 ----
$objdump = $1;
}
+ elsif ($arg =~ /^--platform=(.+)$/) {
+ $platform = $1;
+ }
}
***************
*** 50,53 ****
--- 54,58 ----
close(EXE);
$ident_flags{"deluge_support"} = $deluge_support;
+ $ident_flags{"platform"} = $platform;
open ( IHEX, $ihex ) or die "Cannot open ihex file: $!\n";
More information about the Tinyos-2-commits
mailing list