lm3s1968: enable the kernel in the example.
[bertos.git] / examples / lm3s1968 / lm3s1968.mk
1 #
2 # $Id: lm3s1968.mk 18234 2007-10-08 13:39:48Z rasky $
3 # Copyright 2006 Develer S.r.l. (http://www.develer.com/)
4 # All rights reserved.
5 #
6 # Makefile fragment for DevLib lm3s1968 application.
7 #
8 # Author: Manuele Fanelli <qwert@develer.com>
9 #
10 #
11
12 # Set to 1 for debug builds
13 lm3s1968_DEBUG = 1
14
15 # Our target application
16 TRG += lm3s1968
17
18 lm3s1968_CSRC = \
19         examples/lm3s1968/lm3s1968.c \
20         bertos/mware/formatwr.c \
21         bertos/mware/hex.c \
22         bertos/mware/sprintf.c \
23         bertos/mware/event.c \
24         bertos/struct/heap.c \
25         bertos/drv/timer.c \
26         bertos/kern/monitor.c \
27         bertos/kern/proc_test.c \
28         bertos/kern/proc.c \
29         bertos/kern/coop.c \
30         bertos/kern/preempt.c \
31         bertos/kern/signal.c \
32         bertos/cpu/cortex-m3/drv/irq_lm3s.c \
33         bertos/cpu/cortex-m3/drv/timer_lm3s.c \
34         bertos/cpu/cortex-m3/drv/clock_lm3s.c \
35         bertos/cpu/cortex-m3/drv/kdebug_lm3s.c \
36         bertos/cpu/cortex-m3/hw/startup_lm3s.c
37
38 lm3s1968_CPPASRC = \
39         bertos/cpu/cortex-m3/hw/switch_ctx_cm3.S \
40         #
41
42 # This is an hosted application
43 lm3s1968_PREFIX = arm-none-eabi-
44
45 lm3s1968_CPPAFLAGS = -g -gdwarf-2 -mthumb -fno-strict-aliasing -fwrapv
46 lm3s1968_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_LM3S1968__ -D'CPU_FREQ=(50000000L)' -D'WIZ_AUTOGEN' -g3 -gdwarf-2 -fverbose-asm -mthumb -Iexamples/lm3s1968 -Ibertos/cpu/cortex-m3 -fno-strict-aliasing -fwrapv
47 lm3s1968_LDFLAGS = -nostartfiles -T bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld -Wl,--no-warn-mismatch -fno-strict-aliasing -fwrapv
48
49 lm3s1968_CPU = cortex-m3
50
51 lm3s1968_PROGRAMMER_CPU = lm3s1968
52 lm3s1968_PROGRAMMER_TYPE = lm3s1968
53 lm3s1968_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-cortex.sh
54 lm3s1968_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
55 lm3s1968_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
56 lm3s1968_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
57
58 # Debug stuff
59 ifeq ($(demo_DEBUG),0)
60         demo_CFLAGS += -Os -fomit-frame-pointer
61         demo_CXXFLAGS += -Os -fomit-frame-pointer
62 endif