X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2afa02686643b1b19341c99816715cac1d88abb9..f0af2e4a0280c43af3200909f6a00c2afaa65364:/BuildTests/BoardDriverTest/makefile diff --git a/BuildTests/BoardDriverTest/makefile b/BuildTests/BoardDriverTest/makefile index e0e784ddd..5fffe1c1e 100644 --- a/BuildTests/BoardDriverTest/makefile +++ b/BuildTests/BoardDriverTest/makefile @@ -32,19 +32,20 @@ testboards: echo "buildtest:" > BuildMakefile @while read line; \ do \ - build_cfg=`grep "$$line " BoardDeviceMap.cfg | cut -d'=' -f2-`; \ + build_cfg=`grep "$$line " BoardDeviceMap.cfg | sed 's/ //g' | cut -d'=' -f2-`; \ \ build_board=$$line; \ - build_arch=`echo $$build_cfg | cut -d':' -f1 | cut -d' ' -f1`; \ - build_mcu=`echo $$build_cfg | cut -d':' -f2 | cut -d' ' -f2`; \ + build_arch=`echo $$build_cfg | cut -d':' -f1`; \ + build_mcu=`echo $$build_cfg | cut -d':' -f2`; \ \ if ( test -z "$$build_cfg" ); then \ echo "No matching information set for board $$build_board"; \ else \ - echo "Found board configuration for $$build_board ($$build_arch, $$build_mcu)"; \ + echo "Found board configuration for $$build_board - $$build_arch, $$build_mcu"; \ + \ printf "\t@echo Building dummy project for $$build_board...\n" >> BuildMakefile; \ - printf "\tmake -s -f makefile.$$build_arch clean\n" >> BuildMakefile; \ - printf "\tmake -s -f makefile.$$build_arch MCU=$$build_mcu BOARD=$$build_board\n\n" >> BuildMakefile; \ + printf "\tmake -s -f makefile.%s clean\n" $$build_arch >> BuildMakefile; \ + printf "\tmake -s -f makefile.%s MCU=%s BOARD=%s\n\n" $$build_arch $$build_mcu $$build_board >> BuildMakefile; \ fi; \ done < BoardList.txt $(MAKE) -f BuildMakefile buildtest