note that there's now a PLATFORMDIR define that points to the actual
platform directory and that can be overridden in .target files
-include $(TINYOS_MAKELOCAL)
-include $(TINYOS_MAKEDEFAULTS)
+PLATFORMDIR ?= $(TOSDIR)/platforms/$(PLATFORM)
+
# Mark TOSMAKE_PATH with a + so that they're not searched for by TOSMake_find.
$(foreach incdir,$(addprefix +,$(TOSMAKE_PATH)),$(call TOSMake_include_dir,$(incdir)))
exe0: $(BUILDDIR)/StorageVolumes.h
$(BUILDDIR)/StorageVolumes.h: $(VOLUMEFILE)
- tos-storage-at45db <$(VOLUMEFILE) >$@
+ tos-storage-at45db $(PLATFORMDIR) <$(VOLUMEFILE) >$@ || rm -f $@
PFLAGS += -I$(BUILDDIR)
endif