Setup for AVR development.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 May 2006 00:40:10 +0000 (00:40 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 May 2006 00:40:10 +0000 (00:40 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@613 38d2e660-2303-0410-9eaa-f027e97ec537

Makefile
config.mk

index b124466b484ad54ef085272c55268c98726213ce..28777ed6fb84bb140d7e77f9ae8c232a3fef9c97 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,9 @@
 # Author: Bernardo Innocenti <bernie@develer.com>
 #
 # $Log$
+# Revision 1.2  2006/05/18 00:40:10  bernie
+# Setup for AVR development.
+#
 # Revision 1.1  2006/03/22 09:51:53  bernie
 # Add build infrastructure.
 #
@@ -19,7 +22,8 @@ default: all
 include config.mk
 
 # Include subtargets
-include app/demo/demo.mk
+#include app/demo/demo.mk
+include app/triface/triface.mk
 
 include rules.mk
 
index 762a0c3f7cf81e3e6a880ff7a9bed5d72d3442c0..f1a8747d9dce36d06114ec982c367ca07fd19a84 100755 (executable)
--- a/config.mk
+++ b/config.mk
@@ -10,6 +10,9 @@
 # Author: Bernardo Innocenti <bernie@develer.com>
 #
 # $Log$
+# Revision 1.3  2006/05/18 00:40:10  bernie
+# Setup for AVR development.
+#
 # Revision 1.2  2006/03/27 04:48:33  bernie
 # Add CXXFLAGS; Add recursive targets.
 #
@@ -37,15 +40,15 @@ OPTCFLAGS = -ffunction-sections -fdata-sections
 #DEBUGCFLAGS = -gdwarf-2
 
 # For GDB
-DEBUGCFLAGS = -g
+#DEBUGCFLAGS = -g
 
 #
 # define some variables based on the AVR base path in $(AVR)
 #
-CROSS   = 
+CROSS   = avr-
 CC      = $(CROSS)gcc
-AS      = $(CROSS)$(CC) -x assembler-with-cpp
-LD      = $(CROSS)$(CC)
+AS      = $(CC) -x assembler-with-cpp
+LD      = $(CC)
 OBJCOPY = $(CROSS)objcopy
 INSTALL = cp -a
 RM      = rm -f
@@ -110,8 +113,10 @@ CPPAFLAGS = $(DEBUGCFLAGS) -MMD
 ASFLAGS        = $(DEBUGCFLAGS)
 
 # Default linker flags
-#LDFLAGS = $(MAP_FLAGS) -Wl,--reduce-memory-overheads
-LDFLAGS        = $(MAP_FLAGS) -Wl,--gc-sections
+#LDFLAGS = $(MAP_FLAGS)
+
+#bernie: does not complain for missing symbols!
+#LDFLAGS = $(MAP_FLAGS) -Wl,--gc-sections
 
 # Flags for avrdude
 AVRDUDEFLAGS = $(DPROG)