Makefile 731 B

123456789101112131415161718192021222324
  1. # Do NOT use parenthesis on Windows project dir names
  2. PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-keil-*)
  3. TARGET ?= "Target 1"
  4. all: $(PROJECTS)
  5. # Need to test inside .bat to check and transfer errors
  6. $(PROJECTS): FORCE
  7. unitest.bat $(subst /,\,$@) $(TARGET)
  8. FORCE:
  9. # Automated remote test. See https://vcon.io/automated-firmware-tests/
  10. URL ?= https://dash.vcon.io/api/v3/devices
  11. update: $(PROJECTS)
  12. curl -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota?hex=1 --data-binary @$</Objects/firmware.hex
  13. test update: TARGET = Test
  14. test: update
  15. curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/tx?t=5
  16. # TODO(): no tee, no grep
  17. #| tee /tmp/output.txt
  18. # grep 'READY, IP:' /tmp/output.txt # Check for network init