projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add C_FLAGS list in the cdef files
[bertos.git]
/
examples
/
triface
/
triface.mk
diff --git
a/examples/triface/triface.mk
b/examples/triface/triface.mk
index 3b0ae2836cc72309ffa6b8531084db5576a414e4..430c421fac60f215d95d9cf5f6c03d08225b7b8e 100644
(file)
--- a/
examples/triface/triface.mk
+++ b/
examples/triface/triface.mk
@@
-15,6
+15,7
@@
triface_DEBUG = 1
# Our target application
TRG += triface
CPU = atmega1281
# Our target application
TRG += triface
CPU = atmega1281
+BOOT_ADDR_START = 0x1E000
triface_CROSS = avr-
triface_CROSS = avr-
@@
-22,7
+23,7
@@
ifeq ($(CPU), atmega1281)
triface_hfuse = 0x98
triface_lfuse = 0x3d
triface_efuse = 0x7f
triface_hfuse = 0x98
triface_lfuse = 0x3d
triface_efuse = 0x7f
-triface_lock = 0x
f
f
+triface_lock = 0x
2
f
else
triface_hfuse = 0x88
triface_lfuse = 0xff
else
triface_hfuse = 0x88
triface_lfuse = 0xff
@@
-79,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)
+
+