1 |
584 |
jeremybenn |
#################################################################
|
2 |
|
|
# Makefile generated by Xilinx Platform Studio
|
3 |
|
|
# Project:E:\Dev\FreeRTOS\Demo\MicroBlaze\system.xmp
|
4 |
|
|
#################################################################
|
5 |
|
|
|
6 |
|
|
XILINX_EDK_DIR = C:/devtools/xilinx/EDK
|
7 |
|
|
|
8 |
|
|
SYSTEM = system
|
9 |
|
|
|
10 |
|
|
MHSFILE = system.mhs
|
11 |
|
|
|
12 |
|
|
MSSFILE = system.mss
|
13 |
|
|
|
14 |
|
|
FPGA_ARCH = virtex4
|
15 |
|
|
|
16 |
|
|
DEVICE = xc4vfx12ff668-10
|
17 |
|
|
|
18 |
|
|
LANGUAGE = vhdl
|
19 |
|
|
|
20 |
|
|
SEARCHPATHOPT =
|
21 |
|
|
|
22 |
|
|
SUBMODULE_OPT =
|
23 |
|
|
|
24 |
|
|
PLATGEN_OPTIONS = -p $(DEVICE) -lang $(LANGUAGE) $(SEARCHPATHOPT) $(SUBMODULE_OPT)
|
25 |
|
|
|
26 |
|
|
LIBGEN_OPTIONS = -mhs $(MHSFILE) -p $(DEVICE) $(SEARCHPATHOPT) \
|
27 |
|
|
$(MICROBLAZE_0_LIBG_OPT)
|
28 |
|
|
|
29 |
|
|
VPGEN_OPTIONS = -p $(DEVICE) $(SEARCHPATHOPT)
|
30 |
|
|
|
31 |
|
|
RTOSDEMO_OUTPUT_DIR = RTOSDemo
|
32 |
|
|
RTOSDEMO_OUTPUT = $(RTOSDEMO_OUTPUT_DIR)/executable.elf
|
33 |
|
|
|
34 |
|
|
MICROBLAZE_BOOTLOOP = $(XILINX_EDK_DIR)/sw/lib/microblaze/mb_bootloop.elf
|
35 |
|
|
PPC405_BOOTLOOP = $(XILINX_EDK_DIR)/sw/lib/ppc405/ppc_bootloop.elf
|
36 |
|
|
BOOTLOOP_DIR = bootloops
|
37 |
|
|
|
38 |
|
|
MICROBLAZE_0_BOOTLOOP = $(BOOTLOOP_DIR)/microblaze_0.elf
|
39 |
|
|
MICROBLAZE_0_XMDSTUB = microblaze_0/code/xmdstub.elf
|
40 |
|
|
|
41 |
|
|
BRAMINIT_ELF_FILES = $(RTOSDEMO_OUTPUT)
|
42 |
|
|
BRAMINIT_ELF_FILE_ARGS = -pe microblaze_0 $(RTOSDEMO_OUTPUT)
|
43 |
|
|
|
44 |
|
|
ALL_USER_ELF_FILES = $(RTOSDEMO_OUTPUT)
|
45 |
|
|
|
46 |
|
|
SIM_CMD = vsim
|
47 |
|
|
|
48 |
|
|
BEHAVIORAL_SIM_SCRIPT = simulation/behavioral/$(SYSTEM).do
|
49 |
|
|
|
50 |
|
|
STRUCTURAL_SIM_SCRIPT = simulation/structural/$(SYSTEM).do
|
51 |
|
|
|
52 |
|
|
TIMING_SIM_SCRIPT = simulation/timing/$(SYSTEM).do
|
53 |
|
|
|
54 |
|
|
DEFAULT_SIM_SCRIPT = $(BEHAVIORAL_SIM_SCRIPT)
|
55 |
|
|
|
56 |
|
|
MIX_LANG_SIM_OPT = -mixed yes
|
57 |
|
|
|
58 |
|
|
SIMGEN_OPTIONS = -p $(DEVICE) -lang $(LANGUAGE) $(SEARCHPATHOPT) $(SUBMODULE_OPT) $(BRAMINIT_ELF_FILE_ARGS) $(MIX_LANG_SIM_OPT) -s mti
|
59 |
|
|
|
60 |
|
|
MICROBLAZE_0_XMDSTUB = microblaze_0/code/xmdstub.elf
|
61 |
|
|
|
62 |
|
|
LIBRARIES = \
|
63 |
|
|
microblaze_0/lib/libxil.a
|
64 |
|
|
VPEXEC = virtualplatform/vpexec.exe
|
65 |
|
|
|
66 |
|
|
LIBSCLEAN_TARGETS = microblaze_0_libsclean
|
67 |
|
|
|
68 |
|
|
PROGRAMCLEAN_TARGETS = RTOSDemo_programclean
|
69 |
|
|
|
70 |
|
|
CORE_STATE_DEVELOPMENT_FILES =
|
71 |
|
|
|
72 |
|
|
WRAPPER_NGC_FILES = implementation/microblaze_0_wrapper.ngc \
|
73 |
|
|
implementation/mb_opb_wrapper.ngc \
|
74 |
|
|
implementation/debug_module_wrapper.ngc \
|
75 |
|
|
implementation/ilmb_wrapper.ngc \
|
76 |
|
|
implementation/dlmb_wrapper.ngc \
|
77 |
|
|
implementation/dlmb_cntlr_wrapper.ngc \
|
78 |
|
|
implementation/ilmb_cntlr_wrapper.ngc \
|
79 |
|
|
implementation/lmb_bram_wrapper.ngc \
|
80 |
|
|
implementation/rs232_uart_wrapper.ngc \
|
81 |
|
|
implementation/leds_4bit_wrapper.ngc \
|
82 |
|
|
implementation/leds_positions_wrapper.ngc \
|
83 |
|
|
implementation/opb_timer_1_wrapper.ngc \
|
84 |
|
|
implementation/opb_intc_0_wrapper.ngc \
|
85 |
|
|
implementation/dcm_0_wrapper.ngc
|
86 |
|
|
|
87 |
|
|
POSTSYN_NETLIST = implementation/$(SYSTEM).ngc
|
88 |
|
|
|
89 |
|
|
SYSTEM_BIT = implementation/$(SYSTEM).bit
|
90 |
|
|
|
91 |
|
|
DOWNLOAD_BIT = implementation/download.bit
|
92 |
|
|
|
93 |
|
|
SYSTEM_ACE = implementation/$(SYSTEM).ace
|
94 |
|
|
|
95 |
|
|
UCF_FILE = data/system.ucf
|
96 |
|
|
|
97 |
|
|
BMM_FILE = implementation/$(SYSTEM).bmm
|
98 |
|
|
|
99 |
|
|
FASTRUNTIME_OPT_FILE = etc/fast_runtime.opt
|
100 |
|
|
BITGEN_UT_FILE = etc/bitgen.ut
|
101 |
|
|
|
102 |
|
|
#################################################################
|
103 |
|
|
# SOFTWARE APPLICATION RTOSDEMO
|
104 |
|
|
#################################################################
|
105 |
|
|
|
106 |
|
|
RTOSDEMO_SOURCES = main.c ParTest/ParTest.c ../../Source/tasks.c ../../Source/queue.c ../../Source/list.c ../../Source/portable/MemMang/heap_1.c ../../Source/portable/GCC/MicroBlaze/port.c ../../Source/portable/GCC/MicroBlaze/portasm.s ../Common/Minimal/flash.c serial/serial.c ../Common/Minimal/comtest.c ../Common/Minimal/integer.c ../Common/Minimal/semtest.c ../Common/Minimal/dynamic.c ../Common/Minimal/PollQ.c ../Common/Minimal/BlockQ.c
|
107 |
|
|
|
108 |
|
|
RTOSDEMO_HEADERS = FreeRTOSConfig.h
|
109 |
|
|
|
110 |
|
|
RTOSDEMO_CC = mb-gcc
|
111 |
|
|
RTOSDEMO_CC_SIZE = mb-size
|
112 |
|
|
RTOSDEMO_CC_OPT = -Os
|
113 |
|
|
RTOSDEMO_CFLAGS = -D MICROBLAZE_GCC -Wall
|
114 |
|
|
RTOSDEMO_CC_SEARCH = # -B
|
115 |
|
|
RTOSDEMO_LIBPATH = -L./microblaze_0/lib/ # -L
|
116 |
|
|
RTOSDEMO_INCLUDES = -I./microblaze_0/include/ -IDev/FreeRTOS/Demo/MicroBlaze/ -I. -I../Common/include -I../../Source/include -I../../Source/portable/GCC/MicroBlaze
|
117 |
|
|
RTOSDEMO_LFLAGS = # -l
|
118 |
|
|
RTOSDEMO_CC_PREPROC_FLAG = # -Wp,
|
119 |
|
|
RTOSDEMO_CC_ASM_FLAG = # -Wa,
|
120 |
|
|
RTOSDEMO_CC_LINKER_FLAG = -Wl,-Map=rtosdemo.map
|
121 |
|
|
RTOSDEMO_LINKER_SCRIPT =
|
122 |
|
|
RTOSDEMO_LINKER_SCRIPT_FLAG = #-Wl,-T -Wl,$(RTOSDEMO_LINKER_SCRIPT)
|
123 |
|
|
RTOSDEMO_CC_DEBUG_FLAG = -g
|
124 |
|
|
RTOSDEMO_CC_GLOBPTR_FLAG= # -mxl-gp-opt
|
125 |
|
|
RTOSDEMO_MODE = executable
|
126 |
|
|
RTOSDEMO_LIBG_OPT = -$(RTOSDEMO_MODE) microblaze_0
|
127 |
|
|
RTOSDEMO_CC_SOFTMUL_FLAG= -mno-xl-soft-mul
|
128 |
|
|
RTOSDEMO_CC_START_ADDR_FLAG= # -Wl,-defsym -Wl,_TEXT_START_ADDR=
|
129 |
|
|
RTOSDEMO_CC_STACK_SIZE_FLAG= # -Wl,-defsym -Wl,_STACK_SIZE=
|
130 |
|
|
RTOSDEMO_OTHER_CC_FLAGS= $(RTOSDEMO_CC_GLOBPTR_FLAG) \
|
131 |
|
|
$(RTOSDEMO_CC_START_ADDR_FLAG) $(RTOSDEMO_CC_STACK_SIZE_FLAG) \
|
132 |
|
|
$(RTOSDEMO_CC_SOFTMUL_FLAG) \
|
133 |
|
|
$(RTOSDEMO_CC_PREPROC_FLAG) $(RTOSDEMO_CC_ASM_FLAG) $(RTOSDEMO_CC_LINKER_FLAG) \
|
134 |
|
|
$(RTOSDEMO_LINKER_SCRIPT_FLAG) $(RTOSDEMO_CC_DEBUG_FLAG)
|