OP你能确认一下,你收到警告还是错误?我查看了 TinyOS makerules,它说您引用的消息只是关于已弃用变量的警告,可以通过设置 TINYOS_NO_DEPRECATION_WARNING 环境变量来删除它。摘自以下制造规则
ifndef TINYOS_NO_DEPRECATION_WARNING
define MAKE_VERSION_TWO_WARNING
$(WARN_STRING) Old TinyOS environment variables detected.
This version of the TinyOS make system has deprecated the TOSDIR, TOSROOT,
and MAKERULES environment variables. Generally, you shouldnt need
environment variables with this version of the TinyOS make system, and if
you are not using any older versions of TinyOS on your system you should
delete these environment variables. If you wish to leave these variables
but hide this warning, set the TINYOS_NO_DEPRECATION_WARNING environment
variable. If you are looking to compile against a different TinyOS tree,
configure the makefiles used when compiling, or setup an external TinyOS
tree with additional source files, please visit
https://github.com/tinyos/tinyos-main/blob/master/support/make/README.md
for more information about the TinyOS make system.
endef