diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-06-02 10:53:35 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-06-02 10:53:35 +0000 |
| commit | 0938d7d49d24b27019901a63b15dc9fef11fbeb3 (patch) | |
| tree | 1d894d7d6716936e568ddcae7f0e6905d384d5f7 /LUFA/Build | |
| parent | e6a7c16bbbd1f4d9167acdb8229f0f4064dbc075 (diff) | |
Oops - fix accidental negation in the BUILD module architecture detection code. Add error if an unsupported architecture is requested.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2269 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Build')
| -rw-r--r-- | LUFA/Build/lufa.build.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LUFA/Build/lufa.build.in b/LUFA/Build/lufa.build.in index d39ab72a..be14a6fd 100644 --- a/LUFA/Build/lufa.build.in +++ b/LUFA/Build/lufa.build.in @@ -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))
# Create a list of flags to pass to the compiler
-ifneq ($(ARCH), AVR8)
+ifeq ($(ARCH), AVR8)
CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct
CROSS = avr-
else ifeq ($(ARCH), XMEGA)
@@ -102,6 +102,8 @@ else ifeq ($(ARCH), XMEGA) else ifeq ($(ARCH), UC3)
CC_FLAGS += -mpart=$(MCU) -g3 -masm-addr-pseudos
CROSS = avr32-
+else
+ $(error Unsupported architecture.)
endif
CC_FLAGS += -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections
CC_FLAGS += -Wall -Wstrict-prototypes
|
