From 0535c1bbad300177d6449da50ce1dbf81a9baf7d Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 14 Mar 2021 19:53:54 -0400 Subject: [PATCH] Group together STM32 smoke tests. And then allow them to be disabled with one option. --- Makefile | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 4efe87d7..d8da45e0 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,10 @@ fmt-check: @unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1 -gen-device: gen-device-avr gen-device-esp gen-device-nrf gen-device-sam gen-device-sifive gen-device-stm32 gen-device-kendryte gen-device-nxp +gen-device: gen-device-avr gen-device-esp gen-device-nrf gen-device-sam gen-device-sifive gen-device-kendryte gen-device-nxp +ifneq ($(STM32), 0) +gen-device: gen-device-stm32 +endif gen-device-avr: @if [ ! -e lib/avr/README.md ]; then echo "Submodules have not been downloaded. Please download them using:\n git submodule update --init"; exit 1; fi @@ -257,8 +260,6 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=pca10031 examples/blinky1 @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=bluepill examples/blinky1 - @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=reelboard examples/blinky1 @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=reelboard examples/blinky2 @@ -279,14 +280,6 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=circuitplay-express examples/blinky1 @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=stm32f4disco examples/blinky1 - @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=stm32f4disco examples/blinky2 - @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=stm32f4disco-1 examples/blinky1 - @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=feather-stm32f405 examples/blinky1 - @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=circuitplay-bluefruit examples/blinky1 @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=circuitplay-express examples/i2s @@ -311,12 +304,8 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=particle-xenon examples/blinky1 @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=nucleo-f103rb examples/blinky1 - @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=pinetime-devkit0 examples/blinky1 @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=lgt92 examples/blinky1 - @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=x9pro examples/blinky1 @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=pca10056-s140v7 examples/blinky1 @@ -343,12 +332,6 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=teensy36 examples/blinky1 @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=nucleo-f722ze examples/blinky1 - @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=nucleo-l552ze examples/blinky1 - @$(MD5SUM) test.hex - $(TINYGO) build -size short -o test.hex -target=nucleo-l432kc examples/blinky1 - @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=p1am-100 examples/blinky1 @$(MD5SUM) test.hex # test pwm @@ -360,6 +343,28 @@ smoketest: @$(MD5SUM) test.hex $(TINYGO) build -size short -o test.hex -target=pyportal examples/pwm @$(MD5SUM) test.hex +ifneq ($(STM32), 0) + $(TINYGO) build -size short -o test.hex -target=bluepill examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=feather-stm32f405 examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=lgt92 examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=nucleo-f103rb examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=nucleo-f722ze examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=nucleo-l432kc examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=nucleo-l552ze examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=stm32f4disco examples/blinky1 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=stm32f4disco examples/blinky2 + @$(MD5SUM) test.hex + $(TINYGO) build -size short -o test.hex -target=stm32f4disco-1 examples/blinky1 + @$(MD5SUM) test.hex +endif ifneq ($(AVR), 0) $(TINYGO) build -size short -o test.hex -target=atmega1284p examples/serial @$(MD5SUM) test.hex