aboutsummaryrefslogtreecommitdiffstats
path: root/BuildTests/BootloaderTest
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-13 19:10:46 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-13 19:10:46 +0000
commit80e278acde4ef31a2742f49639e2053ffb0dd975 (patch)
tree707f573916c28cd86d2044392feee86f8b18c4fe /BuildTests/BootloaderTest
parent0a00ee403732be3925bf68c755823b93dfb3169d (diff)
downloadlufa-80e278acde4ef31a2742f49639e2053ffb0dd975.tar.gz
lufa-80e278acde4ef31a2742f49639e2053ffb0dd975.tar.bz2
lufa-80e278acde4ef31a2742f49639e2053ffb0dd975.zip
Clean up and speed up build tests by turning off expensive and slow size optimizations, and generation of assembly listings (*.lst) for each compiled source file.
Diffstat (limited to 'BuildTests/BootloaderTest')
-rw-r--r--BuildTests/BootloaderTest/BootloaderDeviceMap.cfg58
-rw-r--r--BuildTests/BootloaderTest/makefile28
2 files changed, 44 insertions, 42 deletions
diff --git a/BuildTests/BootloaderTest/BootloaderDeviceMap.cfg b/BuildTests/BootloaderTest/BootloaderDeviceMap.cfg
index 8cb5d28dd..8a023f55c 100644
--- a/BuildTests/BootloaderTest/BootloaderDeviceMap.cfg
+++ b/BuildTests/BootloaderTest/BootloaderDeviceMap.cfg
@@ -2,42 +2,42 @@
#
# ------------ CDC Bootloader -------------
CDC = avr8 : at90usb1287 : NONE : 128 : 8 :
-CDC = avr8 : at90usb647 : NONE : 64 : 4 :
+CDC = avr8 : at90usb647 : NONE : 64 : 4 :
CDC = avr8 : at90usb1286 : NONE : 128 : 8 :
-CDC = avr8 : at90usb646 : NONE : 64 : 4 :
-CDC = avr8 : atmega32u4 : NONE : 32 : 4 :
-CDC = avr8 : atmega16u4 : NONE : 16 : 4 :
-CDC = avr8 : atmega32u2 : NONE : 32 : 4 :
-CDC = avr8 : atmega16u2 : NONE : 16 : 4 :
-CDC = avr8 : atmega8u2 : NONE : 8 : 4 :
-CDC = avr8 : at90usb162 : NONE : 16 : 4 :
-CDC = avr8 : at90usb82 : NONE : 8 : 4 :
+CDC = avr8 : at90usb646 : NONE : 64 : 4 :
+CDC = avr8 : atmega32u4 : NONE : 32 : 4 :
+CDC = avr8 : atmega16u4 : NONE : 16 : 4 :
+CDC = avr8 : atmega32u2 : NONE : 32 : 4 :
+CDC = avr8 : atmega16u2 : NONE : 16 : 4 :
+CDC = avr8 : atmega8u2 : NONE : 8 : 4 :
+CDC = avr8 : at90usb162 : NONE : 16 : 4 :
+CDC = avr8 : at90usb82 : NONE : 8 : 4 :
#
# ------------ DFU Bootloader -------------
DFU = avr8 : at90usb1287 : NONE : 128 : 8 :
-DFU = avr8 : at90usb647 : NONE : 64 : 4 :
+DFU = avr8 : at90usb647 : NONE : 64 : 4 :
DFU = avr8 : at90usb1286 : NONE : 128 : 8 :
-DFU = avr8 : at90usb646 : NONE : 64 : 4 :
-DFU = avr8 : atmega32u6 : NONE : 32 : 4 :
-DFU = avr8 : atmega32u4 : NONE : 32 : 4 :
-DFU = avr8 : atmega16u4 : NONE : 16 : 4 :
-DFU = avr8 : atmega32u2 : NONE : 32 : 4 :
-DFU = avr8 : atmega16u2 : NONE : 16 : 4 :
-DFU = avr8 : atmega8u2 : NONE : 8 : 4 :
-DFU = avr8 : at90usb162 : NONE : 16 : 4 :
-DFU = avr8 : at90usb82 : NONE : 8 : 4 :
+DFU = avr8 : at90usb646 : NONE : 64 : 4 :
+DFU = avr8 : atmega32u6 : NONE : 32 : 4 :
+DFU = avr8 : atmega32u4 : NONE : 32 : 4 :
+DFU = avr8 : atmega16u4 : NONE : 16 : 4 :
+DFU = avr8 : atmega32u2 : NONE : 32 : 4 :
+DFU = avr8 : atmega16u2 : NONE : 16 : 4 :
+DFU = avr8 : atmega8u2 : NONE : 8 : 4 :
+DFU = avr8 : at90usb162 : NONE : 16 : 4 :
+DFU = avr8 : at90usb82 : NONE : 8 : 4 :
#
# ------------ HID Bootloader -------------
HID = avr8 : at90usb1287 : NONE : 128 : 4 :
-HID = avr8 : at90usb647 : NONE : 64 : 4 :
+HID = avr8 : at90usb647 : NONE : 64 : 4 :
HID = avr8 : at90usb1286 : NONE : 128 : 4 :
-HID = avr8 : at90usb646 : NONE : 64 : 4 :
-HID = avr8 : atmega32u6 : NONE : 32 : 4 :
-HID = avr8 : atmega32u4 : NONE : 32 : 4 :
-HID = avr8 : atmega16u4 : NONE : 16 : 4 :
-HID = avr8 : atmega32u2 : NONE : 32 : 2 :
-HID = avr8 : atmega16u2 : NONE : 16 : 2 :
-HID = avr8 : atmega8u2 : NONE : 8 : 2 :
-HID = avr8 : at90usb162 : NONE : 16 : 2 :
-HID = avr8 : at90usb82 : NONE : 8 : 2 :
+HID = avr8 : at90usb646 : NONE : 64 : 4 :
+HID = avr8 : atmega32u6 : NONE : 32 : 4 :
+HID = avr8 : atmega32u4 : NONE : 32 : 4 :
+HID = avr8 : atmega16u4 : NONE : 16 : 4 :
+HID = avr8 : atmega32u2 : NONE : 32 : 2 :
+HID = avr8 : atmega16u2 : NONE : 16 : 2 :
+HID = avr8 : atmega8u2 : NONE : 8 : 2 :
+HID = avr8 : at90usb162 : NONE : 16 : 2 :
+HID = avr8 : at90usb82 : NONE : 8 : 2 :
# \ No newline at end of file
diff --git a/BuildTests/BootloaderTest/makefile b/BuildTests/BootloaderTest/makefile
index 7ce56c49f..5b378ec99 100644
--- a/BuildTests/BootloaderTest/makefile
+++ b/BuildTests/BootloaderTest/makefile
@@ -27,24 +27,26 @@ 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; \
+ fi; \
done < BootloaderDeviceMap.cfg
$(MAKE) -f BuildMakefile buildtest