projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add flashing support for AVR.
[bertos.git]
/
examples
/
triface
/
triface.mk
diff --git
a/examples/triface/triface.mk
b/examples/triface/triface.mk
index e9861a064c324e0fcfcd16af88d59ef0eb65b671..6061be8ce1d2460b3d0a1a27b9761b1e4b1095b1 100644
(file)
--- a/
examples/triface/triface.mk
+++ b/
examples/triface/triface.mk
@@
-55,10
+55,11
@@
triface_CSRC = \
triface_PCSRC += bertos/mware/formatwr.c
triface_PCSRC += bertos/mware/formatwr.c
-
triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)' -D'WIZ_AUTOGEN' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
triface_LDFLAGS = -Wl
triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)' -D'WIZ_AUTOGEN' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
triface_LDFLAGS = -Wl
+triface_PROGRAMMER_CPU = atmega1281
+triface_FLASH_SCRIPT = bertos/cpu/avr/scripts/flash.sh
# Set to 1 for debug builds
boot_DEBUG = 0
# Set to 1 for debug builds
boot_DEBUG = 0
@@
-87,3
+88,5
@@
boot_CFLAGS = -Os -mcall-prologues
boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)
boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)
+boot_PROGRAMMER_CPU = atmega1281
+boot_FLASH_SCRIPT = bertos/cpu/avr/scripts/flash.sh