2 # Wizard autogenerated makefile.
3 # DO NOT EDIT, use the kernel_user.mk file instead.
6 # Constants automatically defined by the selected modules
9 # Our target application
12 kernel_PREFIX = "/localhome/toolchain/arm/bin/arm-none-eabi-"
16 kernel_SRC_PATH = boards/sam3n-ek/templates/kernel
18 kernel_HW_PATH = boards/sam3n-ek
20 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_USER_CSRC INSTEAD!
21 kernel_WIZARD_CSRC = \
22 bertos/struct/heap.c \
23 bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \
24 bertos/mware/event.c \
28 bertos/drv/lcd_ili9225.c \
29 bertos/cpu/cortex-m3/drv/timer_cm3.c \
32 bertos/kern/monitor.c \
33 bertos/mware/sprintf.c \
35 bertos/gfx/text_format.c \
37 bertos/fonts/luBS14.c \
38 bertos/kern/signal.c \
40 bertos/mware/formatwr.c \
44 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_USER_PCSRC INSTEAD!
45 kernel_WIZARD_PCSRC = \
49 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_USER_CPPASRC INSTEAD!
50 kernel_WIZARD_CPPASRC = \
54 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_USER_CXXSRC INSTEAD!
55 kernel_WIZARD_CXXSRC = \
59 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_USER_ASRC INSTEAD!
60 kernel_WIZARD_ASRC = \
64 kernel_CPPFLAGS = -D'CPU_FREQ=(48000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(kernel_HW_PATH) -I$(kernel_SRC_PATH) $(kernel_CPU_CPPFLAGS) $(kernel_USER_CPPFLAGS)
66 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
67 kernel_LDFLAGS = $(kernel_CPU_LDFLAGS) $(kernel_WIZARD_LDFLAGS) $(kernel_USER_LDFLAGS)
69 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
70 kernel_CPPAFLAGS = $(kernel_CPU_CPPAFLAGS) $(kernel_WIZARD_CPPAFLAGS) $(kernel_USER_CPPAFLAGS)
72 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
73 kernel_CSRC = $(kernel_CPU_CSRC) $(kernel_WIZARD_CSRC) $(kernel_USER_CSRC)
75 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
76 kernel_PCSRC = $(kernel_CPU_PCSRC) $(kernel_WIZARD_PCSRC) $(kernel_USER_PCSRC)
78 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
79 kernel_CPPASRC = $(kernel_CPU_CPPASRC) $(kernel_WIZARD_CPPASRC) $(kernel_USER_CPPASRC)
81 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
82 kernel_CXXSRC = $(kernel_CPU_CXXSRC) $(kernel_WIZARD_CXXSRC) $(kernel_USER_CXXSRC)
84 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
85 kernel_ASRC = $(kernel_CPU_ASRC) $(kernel_WIZARD_ASRC) $(kernel_USER_ASRC)
87 # CPU specific flags and options, defined in the CPU definition files.
88 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
89 kernel_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S
90 kernel_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork
91 kernel_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_SAM3N4__
92 kernel_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/clock_sam3.c
93 kernel_PROGRAMMER_CPU = sam3
94 kernel_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/cortex-m3/scripts/sam3n4_rom.ld
95 kernel_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
96 kernel_CPU = cortex-m3
97 kernel_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
98 kernel_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
99 kernel_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-sam3.sh
101 include $(kernel_SRC_PATH)/kernel_user.mk