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.
 
 
 
 
 
 

72 linhas
2.3 KiB

  1. #!/bin/bash
  2. if [ $# -lt 3 ]
  3. then
  4. echo "usage is: ${0##*/} <which makefile and other make options> <additional defines> <path to math provider>"
  5. echo "e.g. \"${0##*/} \"makefile -j9\" \"-DUSE_LTM -DLTM_DESC -I../libtommath\" ../libtommath/libtommath.a\""
  6. echo "to create aggregate coverage: pre-pend with LTC_COVERAGE=1"
  7. exit -1
  8. fi
  9. # date
  10. echo "date="`date`
  11. # check sources
  12. bash check_source.sh "CHECK_SOURCES" " " "$1" "$2" "$3" || exit 1
  13. mk="$1"
  14. [ "$LTC_COVERAGE" != "" ] && mk="$mk COVERAGE=1"
  15. # stock build
  16. bash run.sh "STOCK" " " "$mk" "$2" "$3" || exit 1
  17. # EASY build
  18. bash run.sh "EASY" "-DLTC_EASY" "$mk" "$2" "$3" || exit 1
  19. # SMALL code
  20. bash run.sh "SMALL" "-DLTC_SMALL_CODE" "$mk" "$2" "$3" || exit 1
  21. # NOTABLES
  22. bash run.sh "NOTABLES" "-DLTC_NO_TABLES" "$mk" "$2" "$3" || exit 1
  23. # SMALL+NOTABLES
  24. bash run.sh "SMALL+NOTABLES" "-DLTC_SMALL_CODE -DLTC_NO_TABLES" "$mk" "$2" "$3" || exit 1
  25. # CLEANSTACK
  26. bash run.sh "CLEANSTACK" "-DLTC_CLEAN_STACK" "$mk" "$2" "$3" || exit 1
  27. # CLEANSTACK + SMALL
  28. bash run.sh "CLEANSTACK+SMALL" "-DLTC_SMALL_CODE -DLTC_CLEAN_STACK" "$mk" "$2" "$3" || exit 1
  29. # CLEANSTACK + NOTABLES
  30. bash run.sh "CLEANSTACK+NOTABLES" "-DLTC_NO_TABLES -DLTC_CLEAN_STACK" "$mk" "$2" "$3" || exit 1
  31. # CLEANSTACK + NOTABLES + SMALL
  32. bash run.sh "CLEANSTACK+NOTABLES+SMALL" "-DLTC_NO_TABLES -DLTC_CLEAN_STACK -DLTC_SMALL_CODE" "$mk" "$2" "$3" || exit 1
  33. # NO_FAST
  34. bash run.sh "NO_FAST" "-DLTC_NO_FAST" "$mk" "$2" "$3" || exit 1
  35. # NO_FAST + NOTABLES
  36. bash run.sh "NO_FAST+NOTABLES" "-DLTC_NO_FAST -DLTC_NO_TABLES" "$mk" "$2" "$3" || exit 1
  37. # NO_ASM
  38. bash run.sh "NO_ASM" "-DLTC_NO_ASM" "$mk" "$2" "$3" || exit 1
  39. # NO_TIMING_RESISTANCE
  40. bash run.sh "NO_TIMING_RESISTANCE" "-DLTC_NO_ECC_TIMING_RESISTANT -DLTC_NO_RSA_BLINDING" "$mk" "$2" "$3" || exit 1
  41. # CLEANSTACK+NOTABLES+SMALL+NO_ASM+NO_TIMING_RESISTANCE
  42. bash run.sh "CLEANSTACK+NOTABLES+SMALL+NO_ASM+NO_TIMING_RESISTANCE" "-DLTC_CLEAN_STACK -DLTC_NO_TABLES -DLTC_SMALL_CODE -DLTC_NO_ECC_TIMING_RESISTANT -DLTC_NO_RSA_BLINDING" "$mk" "$2" "$3" || exit 1
  43. # test build with no testing
  44. bash testbuild.sh "NOTEST" "-DLTC_NO_TEST" "$mk" "$2" "$3" || exit 1
  45. # test build with no file routines
  46. bash testbuild.sh "NOFILE" "-DLTC_NO_FILE" "$mk" "$2" "$3" || exit 1
  47. # ref: $Format:%D$
  48. # git commit: $Format:%H$
  49. # commit time: $Format:%ai$