Add test Makefiles for more IDEs

Expand Wizard test script
This commit is contained in:
Sergio R. Caprile 2024-10-04 11:53:56 -03:00
parent 8a8ff2aef0
commit fa24a3e09e
4 changed files with 55 additions and 13 deletions

12
test/cgt+make/Makefile Normal file
View File

@ -0,0 +1,12 @@
ROOT ?= $(realpath $(CURDIR)/../..)
TARGET ?= Debug
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
IMAGE ?= scaprile/cgt
all: $(PROJECTS)
echo
$(PROJECTS): FORCE
$(DOCKER) $(IMAGE) make -C $@
FORCE:

View File

@ -10,7 +10,15 @@ all: $(PROJECTS)
$(PROJECTS): FORCE $(PROJECTS): FORCE
(make -C $@ && make -C $@ clean) || ( \ (make -C $@ && make -C $@ clean) || ( \
PROJNAME=`xq -r .projectDescription.name $@/.project` && \ COREDIRS=`find $@ -maxdepth 1 -name 'CM*' -print` && ( \
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) ) (test "$$COREDIRS" == "" && \
PROJNAME=`xq -r .projectDescription.name $@/.project` && \
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) ) || ( \
(test "$$COREDIRS" != "" && \
for core in $$COREDIRS; do \
DIR=`basename $$core` \
PROJNAME=`xq -r .projectDescription.name $@/$$DIR/.project` && \
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@/$$DIR -cleanBuild $$PROJNAME/$(TARGET) || exit 1; \
done ))))
FORCE: FORCE:

View File

@ -6,13 +6,10 @@ ifeq "$(IDE)" "GCC+make"
BUILD = $(MAKE) -f ../gcc+make/Makefile PROJECTS=wizard BUILD = $(MAKE) -f ../gcc+make/Makefile PROJECTS=wizard
endif endif
ifeq "$(IDE)" "CubeIDE" ifeq "$(IDE)" "CubeIDE"
BUILD = $(MAKE) -f ../cube/Makefile PROJECTS=wizard BUILD = $(MAKE) -f ../cube/Makefile PROJECTS=wizard && rm -rf workspace
endif endif
ifeq "$(IDE)" "MCUXpresso" ifeq "$(IDE)" "MCUXpresso"
BUILD = $(MAKE) -f ../xpresso/Makefile PROJECTS=wizard BUILD = $(MAKE) -f ../xpresso/Makefile PROJECTS=wizard && rm -rf workspace
endif
ifeq "$(IDE)" "Zephyr"
BUILD = true
endif endif
ifeq "$(IDE)" "Keil" ifeq "$(IDE)" "Keil"
BUILD = true BUILD = true
@ -26,6 +23,12 @@ endif
ifeq "$(IDE)" "Arduino" ifeq "$(IDE)" "Arduino"
BUILD = true BUILD = true
endif endif
ifeq "$(IDE)" "CGT+make"
BUILD = $(MAKE) -f ../cgt+make/Makefile PROJECTS=wizard
endif
ifeq "$(IDE)" "Zephyr"
BUILD = $(MAKE) -f ../zephyr/Makefile PROJECTS=wizard BOARD=$(BOARD)
endif
firmware.bin: wizard firmware.bin: wizard

View File

@ -17,7 +17,6 @@ rm test.log
STM32="f207 f429 f439 f746 f756 f767 h563 h573 h723 h735 h743 h745 h747 h753 h755" STM32="f207 f429 f439 f746 f756 f767 h563 h573 h723 h735 h743 h745 h747 h753 h755"
STIDES="GCC+make CubeIDE" STIDES="GCC+make CubeIDE"
# Zephyr: !f439
# Keil: f756 # Keil: f756
for board in $STM32; do for board in $STM32; do
for ide in $STIDES; do for ide in $STIDES; do
@ -28,16 +27,19 @@ for board in $STM32; do
done done
NXP="rt1020 rt1024 rt1040 rt1060 rt1064 rt1170 mcxn947" NXP="mcxn947"
NXPIDES="GCC+make" NXPIDES="GCC+make MCUXpresso"
#MCUXpresso: mcxn947
for board in $NXP; do for board in $NXP; do
for ide in $NXPIDES; do for ide in $NXPIDES; do
for rtos in "baremetal"; do for rtos in $RTOSES; do
dotest $board $ide $rtos dotest $board $ide $rtos
done done
done done
done done
NXP="rt1020 rt1024 rt1040 rt1060 rt1064 rt1170"
for board in $NXP; do
dotest $board "GCC+make" "baremetal"
done
INFINEON="xmc4400 xmc4700 xmc7200" INFINEON="xmc4400 xmc4700 xmc7200"
@ -51,8 +53,19 @@ for board in $INFINEON; do
done done
TI="tm4c129"
TIIDES="GCC+make"
for board in $TI; do
for ide in $TIIDES; do
for rtos in $RTOSES; do
dotest $board $ide $rtos
done
done
done
dotest "tms570" "CGT+make" "baremetal"
PICO="evb-pico" PICO="evb-pico"
#Zephyr
for board in $PICO; do for board in $PICO; do
for rtos in "baremetal"; do for rtos in "baremetal"; do
dotest $board "Pico-SDK" $rtos dotest $board "Pico-SDK" $rtos
@ -66,6 +79,12 @@ for board in $ESP; do
done done
ZEPHYR="f207 f429 f746 f756 f767 h563 h573 h723 h735 h743 h745 h747 h753 h755 mcxn947 rt1060 rt1064 evb-pico"
for board in $ZEPHYR; do
echo dotest $board "Zephyr" "baremetal"
done
ARDUINO="teensy41" ARDUINO="teensy41"
rm -rf workspace pico-sdk rm -rf workspace pico-sdk