path: root/AT91SAM7S256/SAM7S256/gcc/Makefile
diff options
authorNicolas Schodet2010-07-11 17:18:29 +0200
committerNicolas Schodet2010-08-20 00:18:22 +0200
commit5c0e26fb7be7d1e268462221c30998ddb2223580 (patch)
tree570a3832573f310d49aee00032c16e54932e0cbf /AT91SAM7S256/SAM7S256/gcc/Makefile
parent0f35027d33aafa32593e7c2e1fe54f7dc3fb33dc (diff)
gcc: automatically compute user flash size
This is done at link time. As a consequence, the user flash size is not available at compile time, which is a problem for the FILEHEADER type. This is solved by using a maximum size so that the static Header variable is big enough. It would not have been a problem if this variable was put on the stack.
Diffstat (limited to 'AT91SAM7S256/SAM7S256/gcc/Makefile')
1 files changed, 3 insertions, 1 deletions
diff --git a/AT91SAM7S256/SAM7S256/gcc/Makefile b/AT91SAM7S256/SAM7S256/gcc/Makefile
index 171c5d7..4d58f99 100644
--- a/AT91SAM7S256/SAM7S256/gcc/Makefile
+++ b/AT91SAM7S256/SAM7S256/gcc/Makefile
@@ -23,7 +23,9 @@ vpath %.S $(CPUINCDIR)
MCU = arm7tdmi
OPTIMIZE = -Os -fno-strict-aliasing
WARNINGS = -Wall -W -Wundef -Wno-unused -Wno-format
THUMB_INTERWORK = -mthumb-interwork