Oops - fix accidental negation in the BUILD module architecture detection code. Add...
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 2 Jun 2012 10:53:35 +0000 (10:53 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 2 Jun 2012 10:53:35 +0000 (10:53 +0000)
LUFA/Build/lufa.build.in

index d39ab72..be14a6f 100644 (file)
@@ -93,7 +93,7 @@ ASM_SOURCE = $(filter %.S, $(SRC))
 OBJECT_FILES = $(filter %.o, $(C_SOURCE:%.c=%.o) $(CPP_SOURCE:%.cpp=%.o) $(ASM_SOURCE:%.S=%.o))\r
 \r
 # Create a list of flags to pass to the compiler\r
 OBJECT_FILES = $(filter %.o, $(C_SOURCE:%.c=%.o) $(CPP_SOURCE:%.cpp=%.o) $(ASM_SOURCE:%.S=%.o))\r
 \r
 # Create a list of flags to pass to the compiler\r
-ifneq ($(ARCH), AVR8)\r
+ifeq ($(ARCH), AVR8)\r
  CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct\r
  CROSS     = avr-\r
 else ifeq ($(ARCH), XMEGA)\r
  CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct\r
  CROSS     = avr-\r
 else ifeq ($(ARCH), XMEGA)\r
@@ -102,6 +102,8 @@ else ifeq ($(ARCH), XMEGA)
 else ifeq ($(ARCH), UC3)\r
  CC_FLAGS += -mpart=$(MCU) -g3 -masm-addr-pseudos\r
  CROSS     = avr32-\r
 else ifeq ($(ARCH), UC3)\r
  CC_FLAGS += -mpart=$(MCU) -g3 -masm-addr-pseudos\r
  CROSS     = avr32-\r
+else\r
+  $(error Unsupported architecture.)\r
 endif\r
 CC_FLAGS += -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections\r
 CC_FLAGS += -Wall -Wstrict-prototypes\r
 endif\r
 CC_FLAGS += -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections\r
 CC_FLAGS += -Wall -Wstrict-prototypes\r