Files
mongoose/test/keil/Makefile
T
Sergio R. Caprile 2dffbc32ba Squashed commit of the following:
update for tag movement
    updated to new release
    update pack in examples
    new release number
    rename to extra
    Cleanup
    Added ready-made examples to ST pack
    Add Keil examples
    Fix CRLF, start adding examples descriptions
    Remove examples
    STM32Cube Expansion Pack with no examples
    Add STM32Cube Expansion Pack skeleton
    Added examples for discussion
    Add support for Cube
    Working on examples
    pack skeleton ready
2026-04-08 11:41:26 -03:00

27 lines
857 B
Makefile

# Do NOT use parenthesis on Windows project dir names
PROJECTS ?= $(wildcard ../../tutorials/stm32/nucleo-*-keil-*)
TARGET ?= "Target 1"
MAKEFILEPATH := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
BATPATH := $(subst /,\,$(MAKEFILEPATH))
all: $(PROJECTS)
# Need to test inside .bat to check and transfer errors
$(PROJECTS): FORCE
$(BATPATH)unitest.bat $(subst /,\,$@) $(TARGET)
FORCE:
# Automated remote test. See https://vcon.io/automated-firmware-tests/
URL ?= https://dash.vcon.io/api/v3/devices
update: $(PROJECTS)
curl -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota?hex=1 --data-binary @$</Objects/firmware.hex
test update: TARGET = Test
test: update
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/tx?t=5
# TODO(): no tee, no grep
#| tee /tmp/output.txt
# grep 'READY, IP:' /tmp/output.txt # Check for network init