Add debug test.
[bertos.git] / app / at91sam7s / at91sam7s.mk
index 926dd9e6aae641bf4093675b52152001233c2db4..234c2aa9a0109d7b3d7b649431f235c3f316d799 100644 (file)
@@ -11,7 +11,7 @@
 
 
 # Set to 1 for debug builds
-at91sam7s_DEBUG = 0
+at91sam7s_DEBUG = 1
 
 # Our target application
 TRG += at91sam7s
@@ -19,16 +19,23 @@ TRG += at91sam7s
 at91sam7s_CSRC = \
        app/at91sam7s/at91sam7s.c \
        drv/timer.c \
-       drv/at91/sysirq.c
+       cpu/arm/drv/sysirq_at91.c \
+       mware/event.c \
+       mware/formatwr.c \
+       mware/hex.c
+       
 
-at91sam7s_PCSRC += mware/formatwr.c
+at91sam7s_CPPASRC = cpu/arm/hw/crtat91sam7s256_rom.S
+
+at91sam7s_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug
+at91sam7s_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/at91sam7s/hw -Iapp/at91sam7s -Icpu/arm
+at91sam7s_LDFLAGS = -nostartfiles -T cpu/arm/scripts/at91sam7s256_ram.ld -Wl,--no-warn-mismatch
 
-at91sam7s_CFLAGS = -O3 -D'ARCH=0' -Iapp/at91sam7s/hw -Iapp/at91sam7s
 at91sam7s_CPU = arm7tdmi
 
 # Debug stuff
 ifeq ($(at91sam7s_DEBUG),1)
        at91sam7s_CFLAGS += -D_DEBUG
-       at91sam7s_PCSRC += drv/kdebug.c
+       at91sam7s_CSRC += drv/kdebug.c
 endif