makefile中使用echo向文件中输出版本号和编译时间
@echo "#define BUILD_TIME" `date +"%F_%H:%M:%S"` > buildTime_svnVer.h
@echo "#define SVN_VERSION" `svn info|grep Revision|awk '{print $$2}'` >> buildTime_svnVer.h
Android.mk中输出打印信息
$(warning "the value of CUSTOM_HAL_IMGSENSOR is $(CUSTOM_HAL_IMGSENSOR)")