build_all.sh 736 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # This script will use git (must be in $PATH) and arm-none-eabi tools in combination with GNU Make
  3. # to both fetch and compile all variants of micro-ecc for the nRF5 families
  4. if ! [ -x "$(command -v git)" ]; then
  5. echo 'git is not installed. Please install and append to PATH.' >&2
  6. exit
  7. fi
  8. if [ ! -f micro-ecc/uECC.c ]; then
  9. echo "micro-ecc not found! Let's pull it from HEAD."
  10. git clone https://github.com/kmackay/micro-ecc.git
  11. fi
  12. make -C nrf51_armgcc/armgcc &&
  13. make -C nrf51_iar/armgcc &&
  14. make -C nrf51_keil/armgcc &&
  15. make -C nrf52hf_armgcc/armgcc &&
  16. make -C nrf52hf_iar/armgcc &&
  17. make -C nrf52hf_keil/armgcc &&
  18. make -C nrf52nf_armgcc/armgcc &&
  19. make -C nrf52nf_iar/armgcc &&
  20. make -C nrf52nf_keil/armgcc