diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-06-02 16:35:29 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-06-02 16:35:29 +0000 |
| commit | f260f9ab3499e9eae34eb840ce9a1512b73aacda (patch) | |
| tree | 1a82edccaa64f4a632b1c5f07be39a40ecb1684a /LUFA/Build/lufa.build.in | |
| parent | 6ee07926c92c48b06442b053ced49d8525765756 (diff) | |
Fix UC3 support in the BUILD build system module. Fix bug in the EVK1101 board buttons driver.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2284 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Build/lufa.build.in')
| -rw-r--r-- | LUFA/Build/lufa.build.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/LUFA/Build/lufa.build.in b/LUFA/Build/lufa.build.in index d1b82d82..c8453763 100644 --- a/LUFA/Build/lufa.build.in +++ b/LUFA/Build/lufa.build.in @@ -114,8 +114,10 @@ endif C_FLAGS += -Wstrict-prototypes
# Create a list of flags to pass to the linker
-LD_FLAGS += -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections -lm
-ifneq ($(F_CPU), UC3)
+LD_FLAGS += -lm -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections
+ifeq ($(ARCH), UC3)
+ LD_FLAGS += --rodata-writable -Wl,--direct-data
+else
LD_FLAGS += -Wl,--relax
endif
@@ -126,8 +128,8 @@ ifneq ($(UNKNOWN_SOURCE),) endif
# Determine flags to pass to the size utility based on its reported features
-SIZE_MCU_FLAG = $(shell avr-size --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
-SIZE_FORMAT_FLAG = $(shell avr-size --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
+SIZE_MCU_FLAG = $(shell $(CROSS)size --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
+SIZE_FORMAT_FLAG = $(shell $(CROSS)size --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
begin:
@@ -150,7 +152,7 @@ checksource: size:
@echo $(MSG_SIZE_CMD) Determining size of \"$(TARGET).elf\"
@if test -f $(TARGET).elf; then \
- avr-size $(SIZE_MCU_FLAG) $(SIZE_FORMAT_FLAG) $(TARGET).elf ; 2>/dev/null; \
+ $(CROSS)size $(SIZE_MCU_FLAG) $(SIZE_FORMAT_FLAG) $(TARGET).elf ; 2>/dev/null; \
fi
.PHONY: begin elf hex lss size end
|
