projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix comments.
[bertos.git]
/
examples
/
triface
/
triface.mk
diff --git
a/examples/triface/triface.mk
b/examples/triface/triface.mk
index 871f02d07d1dc00ed86eb05bb9ce376b6dab22ef..430c421fac60f215d95d9cf5f6c03d08225b7b8e 100644
(file)
--- a/
examples/triface/triface.mk
+++ b/
examples/triface/triface.mk
@@
-14,11
+14,25
@@
triface_DEBUG = 1
# Our target application
TRG += triface
# Our target application
TRG += triface
+CPU = atmega1281
+BOOT_ADDR_START = 0x1E000
+triface_CROSS = avr-
+
+ifeq ($(CPU), atmega1281)
+triface_hfuse = 0x98
+triface_lfuse = 0x3d
+triface_efuse = 0x7f
+triface_lock = 0x2f
+else
triface_hfuse = 0x88
triface_lfuse = 0xff
triface_efuse = 0xff
triface_lock = 0x2f
triface_hfuse = 0x88
triface_lfuse = 0xff
triface_efuse = 0xff
triface_lock = 0x2f
+endif
+
+triface_MCU = $(CPU)
+
triface_CSRC = \
examples/triface/triface.c \
examples/triface/protocol.c \
triface_CSRC = \
examples/triface/triface.c \
examples/triface/protocol.c \
@@
-44,8
+58,6
@@
triface_PCSRC += bertos/mware/formatwr.c
triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
triface_LDFLAGS = -Wl
triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
triface_LDFLAGS = -Wl
-triface_MCU = atmega64
-triface_CROSS = avr-
# Set to 1 for debug builds
boot_DEBUG = 0
# Set to 1 for debug builds
boot_DEBUG = 0
@@
-53,7
+65,7
@@
boot_DEBUG = 0
# Our target application
TRG += boot
# Our target application
TRG += boot
-boot_MCU =
atmega64
+boot_MCU =
$(CPU)
boot_CSRC = \
examples/triface/boot/main.c \
bertos/net/xmodem.c \
boot_CSRC = \
examples/triface/boot/main.c \
bertos/net/xmodem.c \
@@
-68,5
+80,6
@@
boot_CSRC = \
boot_CROSS = avr-
boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iexamples/triface/boot -Ibertos/cpu/avr
boot_CFLAGS = -Os -mcall-prologues
boot_CROSS = avr-
boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iexamples/triface/boot -Ibertos/cpu/avr
boot_CFLAGS = -Os -mcall-prologues
-boot_LDSCRIPT = examples/triface/boot/boot.ld
-boot_LDFLAGS = -Wl,--relax
+boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)
+
+