Hi Ben, I am not sure if this is universal. You might have defined $PLATFORM somewhere in your startup scripts (.bashrc, .profile), as on my Ubuntu 10.04 $PLATFORM is not defined as Linux.
Cheers, - Thomas On Sat, Dec 11, 2010 at 9:24 AM, Ben Ransford <[email protected]> wrote: > Hello, > > On vanilla Ubuntu 10.{4,10} with current TinyOS from the Stanford apt > repository, I noticed that 'make telosb' failed on the Null > application; it picked up a value of "Linux" for $(PLATFORM). Here's > why: > > $ grep PLATFORM support/make/telosb.target > PLATFORM ?= telosb > > ... which sets PLATFORM only if it's not already defined. However, > it's already defined: > > $ cat /tmp/foo/Makefile > x: > �...@echo "$(PLATFORM)" > $ make > Linux > > The btnode3, epic, telosa, and telosb targets are the only ones that > use the conditional "?=" style of assignment; all the other targets > look like e.g. "PLATFORM = micaz". Assuming this situation is > unintentional, I'm attaching a trivial patch against tinyos-2.x.svn > that fixes those assignments and solved my build problem. > > -ben > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
