X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/0a00ee403732be3925bf68c755823b93dfb3169d..5ce60f25e68ef73e01c06409b31b75cfbac9ee3f:/BuildTests/BootloaderTest/makefile diff --git a/BuildTests/BootloaderTest/makefile b/BuildTests/BootloaderTest/makefile index 7ce56c49f..08b7590b3 100644 --- a/BuildTests/BootloaderTest/makefile +++ b/BuildTests/BootloaderTest/makefile @@ -1,6 +1,6 @@ # # LUFA Library -# Copyright (C) Dean Camera, 2011. +# Copyright (C) Dean Camera, 2012. # # dean [at] fourwalledcubicle [dot] com # www.lufa-lib.org @@ -27,24 +27,25 @@ end: testbootloaders: @echo "buildtest:" > BuildMakefile - @while read line; \ - do \ - build_cfg=`echo $$line | sed 's/ //g' | grep -v "#"`; \ - \ - if ( test -n "$$build_cfg" ); then \ + @while read line; \ + do \ + build_cfg=`echo $$line | grep -v "#" | sed 's/ //g'`; \ + \ + if ( test -n "$$build_cfg" ); then \ build_bootloader=`echo $$build_cfg | cut -d'=' -f1`; \ - build_arch=`echo $$build_cfg | cut -d'=' -f2- | cut -d':' -f1`; \ - build_mcu=`echo $$build_cfg | cut -d'=' -f2- | cut -d':' -f2`; \ - build_board=`echo $$build_cfg | cut -d'=' -f2- | cut -d':' -f3`; \ - build_flashsize=`echo $$build_cfg | cut -d'=' -f2- | cut -d':' -f4`; \ - build_bootsize=`echo $$build_cfg | cut -d'=' -f2- | cut -d':' -f5`; \ - \ + build_cfg=`echo $$build_cfg | cut -d'=' -f2-`; \ + \ + build_arch=`echo $$build_cfg | cut -d':' -f1`; \ + build_mcu=`echo $$build_cfg | cut -d':' -f2`; \ + build_board=`echo $$build_cfg | cut -d':' -f3`; \ + build_flashsize=`echo $$build_cfg | cut -d':' -f4`; \ + build_bootsize=`echo $$build_cfg | cut -d':' -f5`; \ + \ printf "Found bootloader configuration for bootloader '%s' (FLASH: %3s KB | BOOT: %3s KB | MCU: %12s / %4s)\n" $$build_bootloader $$build_flashsize $$build_bootsize $$build_mcu $$build_arch; \ - \ + \ printf "\t@echo Building bootloader %s - %s - FLASH: %s KB, BOOT: %s KB\n" $$build_bootloader $$build_mcu $$build_flashsize $$build_bootsize >> BuildMakefile; \ - printf "\tmake -s -C $(LUFA_ROOT_PATH)/Bootloaders/%s/ clean\n" $$build_bootloader >> BuildMakefile; \ - printf "\tmake -s -C $(LUFA_ROOT_PATH)/Bootloaders/%s/ MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s elf\n\n" $$build_bootloader $$build_mcu $$build_board $$build_flashsize $$build_bootsize >> BuildMakefile; \ - fi; \ + printf "\t$(MAKE) -s -C $(LUFA_ROOT_PATH)/Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s\n\n" $$build_bootloader $$build_arch $$build_mcu $$build_board $$build_flashsize $$build_bootsize >> BuildMakefile; \ + fi; \ done < BootloaderDeviceMap.cfg $(MAKE) -f BuildMakefile buildtest