From 3ca025f214cdfb5b9815fd20e9443be1ad365e0e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 15 Jul 2012 09:59:35 +0000 Subject: Add DEBUG_FORMAT and DEBUG_LEVEL optional parameters to the BUILD module. Turn off generation of debug information when performing a validation build, and when running the build tests. --- BuildTests/BoardDriverTest/makefile.test | 1 + BuildTests/BootloaderTest/makefile | 2 +- BuildTests/ModuleTest/makefile.test | 1 + BuildTests/SingleUSBModeTest/makefile.test | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'BuildTests') diff --git a/BuildTests/BoardDriverTest/makefile.test b/BuildTests/BoardDriverTest/makefile.test index ea2c8368d..234add1a3 100644 --- a/BuildTests/BoardDriverTest/makefile.test +++ b/BuildTests/BoardDriverTest/makefile.test @@ -19,6 +19,7 @@ TARGET = Test SRC = $(TARGET).c LUFA_PATH = ../../LUFA CC_FLAGS = -Werror +DEBUG_LEVEL = 0 # Include LUFA build script makefiles include $(LUFA_PATH)/Build/lufa_build.mk \ No newline at end of file diff --git a/BuildTests/BootloaderTest/makefile b/BuildTests/BootloaderTest/makefile index 7b6b5d0bd..e3f60d77a 100644 --- a/BuildTests/BootloaderTest/makefile +++ b/BuildTests/BootloaderTest/makefile @@ -46,7 +46,7 @@ testbootloaders: printf "Found '%s' bootloader configuration (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 "\t$(MAKE) -C $(patsubst %/,%,$(LUFA_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; \ + printf "\t$(MAKE) -C $(patsubst %/,%,$(LUFA_PATH))/../Bootloaders/%s/ clean elf ARCH=%s MCU=%s BOARD=%s FLASH_SIZE_KB=%s BOOT_SECTION_SIZE_KB=%s DEBUG_LEVEL=0\n\n" $$build_bootloader $$build_arch $$build_mcu $$build_board $$build_flashsize $$build_bootsize >> BuildMakefile; \ fi; \ done < BootloaderDeviceMap.cfg diff --git a/BuildTests/ModuleTest/makefile.test b/BuildTests/ModuleTest/makefile.test index b61c42b52..b01998f4b 100644 --- a/BuildTests/ModuleTest/makefile.test +++ b/BuildTests/ModuleTest/makefile.test @@ -17,6 +17,7 @@ OPTIMIZATION = 1 TARGET = Test SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB) LUFA_PATH = ../../LUFA +DEBUG_LEVEL = 0 ifeq ($(ARCH), AVR8) F_USB = 8000000 diff --git a/BuildTests/SingleUSBModeTest/makefile.test b/BuildTests/SingleUSBModeTest/makefile.test index 4d8ddc5f8..800e3c3a6 100644 --- a/BuildTests/SingleUSBModeTest/makefile.test +++ b/BuildTests/SingleUSBModeTest/makefile.test @@ -13,6 +13,7 @@ MCU = ARCH = BOARD = NONE F_CPU = $(F_USB) +DEBUG_LEVEL = 0 ifeq ($(ARCH), AVR8) F_USB = 8000000 -- cgit v1.2.3