I2C toy code
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

41 linhas
1008 B

  1. #!/bin/bash
  2. if [ $# -lt 2 ]
  3. then
  4. echo "usage is: ${0##*/} <path to coverity scan> <extra compiler options>"
  5. echo "e.g. \"${0##*/} \"/usr/local/bin/coverity\" \"-DLTM_DESC -I/path/to/libtommath/\"\""
  6. exit -1
  7. fi
  8. PATH=$PATH:$1/bin
  9. make clean
  10. rm -r cov-int/
  11. myCflags=""
  12. myCflags="$myCflags -O2 ${2}"
  13. myCflags="$myCflags -pipe -Werror -Wpointer-arith -Winit-self -Wextra -Wall -Wformat -Wformat-security"
  14. CFLAGS="$myCflags" cov-build --dir cov-int make -f makefile.unix $MAKE_OPTS IGNORE_SPEED=1 1>gcc_1.txt
  15. if [ $? -ne 0 ]
  16. then
  17. echo "make failed"
  18. exit -1
  19. fi
  20. # zipup everything
  21. tar caf libtomcrypt.lzma cov-int
  22. mytoken=$(cat .coverity_token)
  23. mymail=$(cat .coverity_mail)
  24. myversion=$(git describe --dirty)
  25. curl -k --form project=libtomcrypt \
  26. --form token=${mytoken} \
  27. --form email=${mymail} \
  28. --form file=@libtomcrypt.lzma \
  29. --form version=\"${myversion}\" \
  30. --form description="\"libtomcrypt version ${myversion}\"" \
  31. https://scan.coverity.com/builds?project=libtom%2Flibtomcrypt