@@ -0,0 +1,185 | |||||
|
1 | /* linkcmds | |||
|
2 | * | |||
|
3 | * $Id: linkcmds,v 1.8.2.1 2000/05/24 17:06:38 joel Exp $ | |||
|
4 | */ | |||
|
5 | ||||
|
6 | OUTPUT_ARCH(sparc) | |||
|
7 | __DYNAMIC = 0; | |||
|
8 | ||||
|
9 | /* | |||
|
10 | * The memory map looks like this: | |||
|
11 | * +--------------------+ <- low memory | |||
|
12 | * | .text | | |||
|
13 | * | etext | | |||
|
14 | * | ctor list | the ctor and dtor lists are for | |||
|
15 | * | dtor list | C++ support | |||
|
16 | * | _endtext | | |||
|
17 | * +--------------------+ | |||
|
18 | * | .data | initialized data goes here | |||
|
19 | * | _sdata | | |||
|
20 | * | _edata | | |||
|
21 | * +--------------------+ | |||
|
22 | * | .bss | | |||
|
23 | * | __bss_start | start of bss, cleared by crt0 | |||
|
24 | * | _end | start of heap, used by sbrk() | |||
|
25 | * +--------------------+ | |||
|
26 | * | heap space | | |||
|
27 | * | _ENDHEAP | | |||
|
28 | * | stack space | | |||
|
29 | * | __stack | top of stack | |||
|
30 | * +--------------------+ <- high memory | |||
|
31 | */ | |||
|
32 | ||||
|
33 | ||||
|
34 | /* | |||
|
35 | * User modifiable values: | |||
|
36 | * | |||
|
37 | * _CLOCK_SPEED in Mhz (used to program the counter/timers) | |||
|
38 | * | |||
|
39 | * _PROM_SIZE size of PROM (permissible values are 128K, 256K, | |||
|
40 | * 512K, 1M, 2M, 4M, 8M and 16M) | |||
|
41 | * _RAM_SIZE size of RAM (permissible values are 256K, 512K, | |||
|
42 | * 1M, 2M, 4M, 8M, 16M, and 32M) | |||
|
43 | * | |||
|
44 | */ | |||
|
45 | ||||
|
46 | /* Default values, can be overridden */ | |||
|
47 | ||||
|
48 | _PROM_SIZE = 2M; | |||
|
49 | _RAM_SIZE = 4M; | |||
|
50 | ||||
|
51 | _RAM_START = 0x02000000; | |||
|
52 | _RAM_END = _RAM_START + _RAM_SIZE; | |||
|
53 | ||||
|
54 | _PROM_START = 0x00000000; | |||
|
55 | _PROM_END = _PROM_START + _PROM_SIZE; | |||
|
56 | ||||
|
57 | /* | |||
|
58 | * Alternate names without leading _. | |||
|
59 | */ | |||
|
60 | ||||
|
61 | PROM_START = _PROM_START; | |||
|
62 | PROM_SIZE = _PROM_SIZE; | |||
|
63 | PROM_END = _PROM_END; | |||
|
64 | ||||
|
65 | RAM_START = _RAM_START; | |||
|
66 | RAM_SIZE = _RAM_SIZE; | |||
|
67 | RAM_END = _RAM_END; | |||
|
68 | ||||
|
69 | _LEON_REG = 0x80000000; | |||
|
70 | LEON_REG = 0x80000000; | |||
|
71 | _ERC32_MEC = 0x1f80000; | |||
|
72 | ERC32_MEC = 0x1f80000; | |||
|
73 | ||||
|
74 | /* these are the maximum values */ | |||
|
75 | ||||
|
76 | MEMORY | |||
|
77 | { | |||
|
78 | rom : ORIGIN = 0x00000000, LENGTH = 16M | |||
|
79 | ram : ORIGIN = 0x40000000, LENGTH = 1024M | |||
|
80 | } | |||
|
81 | ||||
|
82 | /* | |||
|
83 | * stick everything in ram (of course) | |||
|
84 | */ | |||
|
85 | SECTIONS | |||
|
86 | { | |||
|
87 | .text : | |||
|
88 | { | |||
|
89 | CREATE_OBJECT_SYMBOLS | |||
|
90 | text_start = .; | |||
|
91 | _text_start = .; | |||
|
92 | *(.text) | |||
|
93 | *(.text.*) | |||
|
94 | . = ALIGN (16); | |||
|
95 | ||||
|
96 | *(.eh_frame) | |||
|
97 | . = ALIGN (16); | |||
|
98 | ||||
|
99 | *(.gnu.linkonce.t*) | |||
|
100 | ||||
|
101 | /* | |||
|
102 | * C++ constructors | |||
|
103 | */ | |||
|
104 | __CTOR_LIST__ = .; | |||
|
105 | LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) | |||
|
106 | *(.ctors) | |||
|
107 | *(.ctors.*) | |||
|
108 | LONG(0) | |||
|
109 | __CTOR_END__ = .; | |||
|
110 | __DTOR_LIST__ = .; | |||
|
111 | LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) | |||
|
112 | *(.dtors) | |||
|
113 | *(.dtors.*) | |||
|
114 | LONG(0) | |||
|
115 | __DTOR_END__ = .; | |||
|
116 | ||||
|
117 | _rodata_start = . ; | |||
|
118 | *(.rodata*) | |||
|
119 | *(.fixup) | |||
|
120 | *(.gnu.linkonce.r*) | |||
|
121 | _erodata = ALIGN( 0x10 ) ; | |||
|
122 | ||||
|
123 | etext = ALIGN(0x10); | |||
|
124 | _etext = .; | |||
|
125 | *(.init) | |||
|
126 | *(.fini) | |||
|
127 | *(.lit) | |||
|
128 | *(.shdata) | |||
|
129 | . = ALIGN (16); | |||
|
130 | _endtext = .; | |||
|
131 | } > rom | |||
|
132 | .dynamic : { *(.dynamic) } >ram | |||
|
133 | .got : { *(.got) } >ram | |||
|
134 | .plt : { *(.plt) } >ram | |||
|
135 | .hash : { *(.hash) } >ram | |||
|
136 | .dynrel : { *(.dynrel) } >ram | |||
|
137 | .dynsym : { *(.dynsym) } >ram | |||
|
138 | .dynstr : { *(.dynstr) } >ram | |||
|
139 | .hash : { *(.hash) } >ram | |||
|
140 | .data : | |||
|
141 | { | |||
|
142 | data_start = .; | |||
|
143 | _data_start = .; | |||
|
144 | _sdata = . ; | |||
|
145 | ||||
|
146 | KEEP (*(.vectors)) | |||
|
147 | ||||
|
148 | *(.data) | |||
|
149 | *(.data.*) | |||
|
150 | *(.gnu.linkonce.d*) | |||
|
151 | *(.gcc_except_table) | |||
|
152 | KEEP(*( SORT (.ecos.table.*))) ; | |||
|
153 | . = ALIGN(0x10); | |||
|
154 | edata = .; | |||
|
155 | _edata = .; | |||
|
156 | } > ram | |||
|
157 | .shbss : | |||
|
158 | { | |||
|
159 | *(.shbss) | |||
|
160 | } > ram | |||
|
161 | .bss : | |||
|
162 | { | |||
|
163 | __bss_start = ALIGN(0x8); | |||
|
164 | _bss_start = .; | |||
|
165 | bss_start = .; | |||
|
166 | *(.bss) | |||
|
167 | *(.bss.*) | |||
|
168 | *(COMMON) | |||
|
169 | end = .; | |||
|
170 | _end = ALIGN(0x8); | |||
|
171 | __end = ALIGN(0x8); | |||
|
172 | __bss_end = ALIGN(0x8); | |||
|
173 | __heap1 = .; | |||
|
174 | } > ram | |||
|
175 | .jcr . (NOLOAD) : { *(.jcr) } | |||
|
176 | .stab . (NOLOAD) : | |||
|
177 | { | |||
|
178 | [ .stab ] | |||
|
179 | } | |||
|
180 | .stabstr . (NOLOAD) : | |||
|
181 | { | |||
|
182 | [ .stabstr ] | |||
|
183 | } | |||
|
184 | } | |||
|
185 |
@@ -0,0 +1,220 | |||||
|
1 | ||||
|
2 | /* Template boot-code for LEON3 test benches */ | |||
|
3 | ||||
|
4 | ||||
|
5 | #ifndef STACKSIZE | |||
|
6 | #define STACKSIZE 0x00020000 | |||
|
7 | #endif | |||
|
8 | ||||
|
9 | ||||
|
10 | .seg "text" | |||
|
11 | .proc 0 | |||
|
12 | .align 4 | |||
|
13 | .global start | |||
|
14 | start: | |||
|
15 | ||||
|
16 | flush | |||
|
17 | set 0x10e0, %g1 ! init IU | |||
|
18 | mov %g1, %psr | |||
|
19 | mov %g0, %wim | |||
|
20 | mov %g0, %tbr | |||
|
21 | mov %g0, %y | |||
|
22 | mov %g0, %asr16 | |||
|
23 | nop | |||
|
24 | set 0x81000f, %g1 | |||
|
25 | sta %g1, [%g0] 2 | |||
|
26 | mov %g0, %g2 | |||
|
27 | nop | |||
|
28 | nop | |||
|
29 | nop | |||
|
30 | nop | |||
|
31 | nop | |||
|
32 | or %g2, %g2, %g0 | |||
|
33 | nop | |||
|
34 | nop | |||
|
35 | nop | |||
|
36 | nop | |||
|
37 | nop | |||
|
38 | #ifdef DSUADDR | |||
|
39 | set DSUADDR, %g2 | |||
|
40 | st %g0, [%g2] | |||
|
41 | st %g0, [%g2+0x08] | |||
|
42 | st %g0, [%g2+0x20] | |||
|
43 | st %g0, [%g2+0x24] | |||
|
44 | st %g0, [%g2+0x40] | |||
|
45 | st %g0, [%g2+0x44] | |||
|
46 | st %g0, [%g2+0x50] | |||
|
47 | st %g0, [%g2+0x54] | |||
|
48 | st %g0, [%g2+0x58] | |||
|
49 | st %g0, [%g2+0x5C] | |||
|
50 | st %g0, [%g2+0x54] | |||
|
51 | #endif | |||
|
52 | ||||
|
53 | 2: | |||
|
54 | mov %asr17, %g3 | |||
|
55 | and %g3, 0x1f, %g3 | |||
|
56 | mov %g0, %g4 | |||
|
57 | mov %g0, %g5 | |||
|
58 | mov %g0, %g6 | |||
|
59 | mov %g0, %g7 | |||
|
60 | 1: | |||
|
61 | mov %g0, %l0 | |||
|
62 | mov %g0, %l1 | |||
|
63 | mov %g0, %l2 | |||
|
64 | mov %g0, %l3 | |||
|
65 | mov %g0, %l4 | |||
|
66 | mov %g0, %l5 | |||
|
67 | mov %g0, %l6 | |||
|
68 | mov %g0, %l7 | |||
|
69 | mov %g0, %o0 | |||
|
70 | mov %g0, %o1 | |||
|
71 | mov %g0, %o2 | |||
|
72 | mov %g0, %o3 | |||
|
73 | mov %g0, %o4 | |||
|
74 | mov %g0, %o5 | |||
|
75 | mov %g0, %o6 | |||
|
76 | mov %g0, %o7 | |||
|
77 | subcc %g3, 1, %g3 | |||
|
78 | bge 1b | |||
|
79 | save | |||
|
80 | ||||
|
81 | mov 2, %g1 | |||
|
82 | mov %g1, %wim | |||
|
83 | set 0x10e0, %g1 ! enable traps | |||
|
84 | mov %g1, %psr | |||
|
85 | nop; nop; nop; | |||
|
86 | ||||
|
87 | mov %psr, %g1 | |||
|
88 | srl %g1, 12, %g1 | |||
|
89 | andcc %g1, 1, %g0 | |||
|
90 | be 1f | |||
|
91 | nop | |||
|
92 | ||||
|
93 | set _fsrxx, %g3 | |||
|
94 | ld [%g3], %fsr | |||
|
95 | ldd [%g3], %f0 | |||
|
96 | ldd [%g3], %f2 | |||
|
97 | ldd [%g3], %f4 | |||
|
98 | ldd [%g3], %f6 | |||
|
99 | ldd [%g3], %f8 | |||
|
100 | ldd [%g3], %f10 | |||
|
101 | ldd [%g3], %f12 | |||
|
102 | ldd [%g3], %f14 | |||
|
103 | ldd [%g3], %f16 | |||
|
104 | ldd [%g3], %f18 | |||
|
105 | ldd [%g3], %f20 | |||
|
106 | ldd [%g3], %f22 | |||
|
107 | ldd [%g3], %f24 | |||
|
108 | ldd [%g3], %f26 | |||
|
109 | ldd [%g3], %f28 | |||
|
110 | ldd [%g3], %f30 | |||
|
111 | nop | |||
|
112 | nop | |||
|
113 | nop | |||
|
114 | nop | |||
|
115 | nop | |||
|
116 | faddd %f0, %f2, %f4 | |||
|
117 | nop | |||
|
118 | nop | |||
|
119 | nop | |||
|
120 | nop | |||
|
121 | ba 1f | |||
|
122 | nop | |||
|
123 | ||||
|
124 | ||||
|
125 | .align 8 | |||
|
126 | _fsrxx: | |||
|
127 | .word 0 | |||
|
128 | .word 0 | |||
|
129 | ||||
|
130 | 1: | |||
|
131 | mov %asr17, %g3 | |||
|
132 | srl %g3, 28, %g3 | |||
|
133 | andcc %g3, 0x0f, %g3 | |||
|
134 | bne 1f | |||
|
135 | ||||
|
136 | set L2MCTRLIO, %g1 | |||
|
137 | set MCFG1, %g2 | |||
|
138 | st %g2, [%g1] | |||
|
139 | set MCFG2, %g2 | |||
|
140 | st %g2, [%g1+4] | |||
|
141 | set MCFG3, %g2 | |||
|
142 | st %g2, [%g1+8] | |||
|
143 | ! set IRQCTRL, %g1 | |||
|
144 | ! set 0x0ffff, %g2 | |||
|
145 | ! st %g2, [%g1+0x10] | |||
|
146 | ||||
|
147 | #ifdef DDR2CTRLIO | |||
|
148 | set DDR2CTRLIO, %g1 | |||
|
149 | set DDR2CFG4, %g2 | |||
|
150 | st %g2, [%g1+12] | |||
|
151 | #endif | |||
|
152 | ||||
|
153 | #ifdef ASDCFG | |||
|
154 | #ifndef SDCTRLPNP | |||
|
155 | #define SDCTRLPNP 0xFFFFF860 | |||
|
156 | #endif | |||
|
157 | set SDCTRLPNP, %g1 | |||
|
158 | ld [%g1], %g2 | |||
|
159 | srl %g2, 12, %g2 | |||
|
160 | set 0x01009, %g1 | |||
|
161 | subcc %g1, %g2, %g0 | |||
|
162 | bne 1f | |||
|
163 | ||||
|
164 | set ASDCFG, %g1 | |||
|
165 | set DSDCFG, %g2 | |||
|
166 | st %g2, [%g1] | |||
|
167 | #endif | |||
|
168 | ||||
|
169 | ! %g3 = cpu index | |||
|
170 | 1: set STACKSIZE, %g2 | |||
|
171 | mov %g0, %g1 | |||
|
172 | 2: subcc %g3, 0, %g0 | |||
|
173 | be 3f | |||
|
174 | nop | |||
|
175 | add %g1, %g2, %g1 | |||
|
176 | ba 2b | |||
|
177 | sub %g3, 1, %g3 | |||
|
178 | ||||
|
179 | ||||
|
180 | 3: set RAMSTART+ RAMSIZE-32, %fp | |||
|
181 | sub %fp, %g1, %fp | |||
|
182 | sub %fp, 96, %sp | |||
|
183 | ||||
|
184 | set main, %g1 | |||
|
185 | call %g1 | |||
|
186 | nop | |||
|
187 | nop | |||
|
188 | nop | |||
|
189 | nop | |||
|
190 | nop | |||
|
191 | nop | |||
|
192 | nop | |||
|
193 | nop | |||
|
194 | nop | |||
|
195 | nop | |||
|
196 | nop | |||
|
197 | nop | |||
|
198 | nop | |||
|
199 | nop | |||
|
200 | nop | |||
|
201 | nop | |||
|
202 | nop | |||
|
203 | nop | |||
|
204 | nop | |||
|
205 | nop | |||
|
206 | nop | |||
|
207 | nop | |||
|
208 | nop | |||
|
209 | nop | |||
|
210 | nop | |||
|
211 | nop | |||
|
212 | nop | |||
|
213 | nop | |||
|
214 | nop | |||
|
215 | nop | |||
|
216 | inf_loop: | |||
|
217 | ta 0x20 | |||
|
218 | jmp inf_loop | |||
|
219 | .align 32 | |||
|
220 |
@@ -0,0 +1,225 | |||||
|
1 | ############################################################################# | |||
|
2 | # Makefile for building: bin/fsw | |||
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu May 23 15:08:17 2013 | |||
|
4 | # Project: fsw-qt.pro | |||
|
5 | # Template: app | |||
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile fsw-qt.pro | |||
|
7 | ############################################################################# | |||
|
8 | ||||
|
9 | ####### Compiler, tools and options | |||
|
10 | ||||
|
11 | CC = sparc-rtems-gcc | |||
|
12 | CXX = sparc-rtems-g++ | |||
|
13 | DEFINES = -DPRINT_MESSAGES_ON_CONSOLE | |||
|
14 | CFLAGS = -pipe -O3 -Wall $(DEFINES) | |||
|
15 | CXXFLAGS = -pipe -O3 -Wall $(DEFINES) | |||
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I../src -I../header | |||
|
17 | LINK = sparc-rtems-g++ | |||
|
18 | LFLAGS = | |||
|
19 | LIBS = $(SUBLIBS) | |||
|
20 | AR = sparc-rtems-ar rcs | |||
|
21 | RANLIB = | |||
|
22 | QMAKE = /usr/bin/qmake-qt4 | |||
|
23 | TAR = tar -cf | |||
|
24 | COMPRESS = gzip -9f | |||
|
25 | COPY = cp -f | |||
|
26 | SED = sed | |||
|
27 | COPY_FILE = $(COPY) | |||
|
28 | COPY_DIR = $(COPY) -r | |||
|
29 | STRIP = sparc-rtems-strip | |||
|
30 | INSTALL_FILE = install -m 644 -p | |||
|
31 | INSTALL_DIR = $(COPY_DIR) | |||
|
32 | INSTALL_PROGRAM = install -m 755 -p | |||
|
33 | DEL_FILE = rm -f | |||
|
34 | SYMLINK = ln -f -s | |||
|
35 | DEL_DIR = rmdir | |||
|
36 | MOVE = mv -f | |||
|
37 | CHK_DIR_EXISTS= test -d | |||
|
38 | MKDIR = mkdir -p | |||
|
39 | ||||
|
40 | ####### Output directory | |||
|
41 | ||||
|
42 | OBJECTS_DIR = obj/ | |||
|
43 | ||||
|
44 | ####### Files | |||
|
45 | ||||
|
46 | SOURCES = ../src/wf_handler.c \ | |||
|
47 | ../src/tc_handler.c \ | |||
|
48 | ../src/fsw_processing.c \ | |||
|
49 | ../src/fsw_misc.c \ | |||
|
50 | ../src/fsw_init.c \ | |||
|
51 | ../src/fsw_globals.c | |||
|
52 | OBJECTS = obj/wf_handler.o \ | |||
|
53 | obj/tc_handler.o \ | |||
|
54 | obj/fsw_processing.o \ | |||
|
55 | obj/fsw_misc.o \ | |||
|
56 | obj/fsw_init.o \ | |||
|
57 | obj/fsw_globals.o | |||
|
58 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |||
|
59 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |||
|
60 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |||
|
61 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |||
|
62 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |||
|
63 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |||
|
64 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |||
|
65 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |||
|
66 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |||
|
67 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |||
|
68 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |||
|
69 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |||
|
70 | sparc.pri \ | |||
|
71 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |||
|
72 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |||
|
73 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |||
|
74 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |||
|
75 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |||
|
76 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |||
|
77 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |||
|
78 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |||
|
79 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |||
|
80 | fsw-qt.pro | |||
|
81 | QMAKE_TARGET = fsw | |||
|
82 | DESTDIR = bin/ | |||
|
83 | TARGET = bin/fsw | |||
|
84 | ||||
|
85 | first: all | |||
|
86 | ####### Implicit rules | |||
|
87 | ||||
|
88 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |||
|
89 | ||||
|
90 | .cpp.o: | |||
|
91 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
92 | ||||
|
93 | .cc.o: | |||
|
94 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
95 | ||||
|
96 | .cxx.o: | |||
|
97 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
98 | ||||
|
99 | .C.o: | |||
|
100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
101 | ||||
|
102 | .c.o: | |||
|
103 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |||
|
104 | ||||
|
105 | ####### Build rules | |||
|
106 | ||||
|
107 | all: Makefile $(TARGET) | |||
|
108 | ||||
|
109 | $(TARGET): $(OBJECTS) | |||
|
110 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ | |||
|
111 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | |||
|
112 | ||||
|
113 | Makefile: fsw-qt.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |||
|
114 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |||
|
115 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |||
|
116 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |||
|
117 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |||
|
118 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |||
|
119 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |||
|
120 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri \ | |||
|
121 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |||
|
122 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |||
|
123 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |||
|
124 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |||
|
125 | sparc.pri \ | |||
|
126 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |||
|
127 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |||
|
128 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |||
|
129 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |||
|
130 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |||
|
131 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |||
|
132 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |||
|
133 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |||
|
134 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf | |||
|
135 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile fsw-qt.pro | |||
|
136 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |||
|
137 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |||
|
138 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |||
|
139 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |||
|
140 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |||
|
141 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |||
|
142 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |||
|
143 | /usr/lib64/qt4/mkspecs/modules/qt_webkit_version.pri: | |||
|
144 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |||
|
145 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |||
|
146 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |||
|
147 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |||
|
148 | sparc.pri: | |||
|
149 | /usr/lib64/qt4/mkspecs/features/release.prf: | |||
|
150 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |||
|
151 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |||
|
152 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |||
|
153 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |||
|
154 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |||
|
155 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |||
|
156 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |||
|
157 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |||
|
158 | qmake: FORCE | |||
|
159 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile fsw-qt.pro | |||
|
160 | ||||
|
161 | dist: | |||
|
162 | @$(CHK_DIR_EXISTS) obj/fsw1.0.0 || $(MKDIR) obj/fsw1.0.0 | |||
|
163 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/fsw1.0.0/ && (cd `dirname obj/fsw1.0.0` && $(TAR) fsw1.0.0.tar fsw1.0.0 && $(COMPRESS) fsw1.0.0.tar) && $(MOVE) `dirname obj/fsw1.0.0`/fsw1.0.0.tar.gz . && $(DEL_FILE) -r obj/fsw1.0.0 | |||
|
164 | ||||
|
165 | ||||
|
166 | clean:compiler_clean | |||
|
167 | -$(DEL_FILE) $(OBJECTS) | |||
|
168 | -$(DEL_FILE) *~ core *.core | |||
|
169 | ||||
|
170 | ||||
|
171 | ####### Sub-libraries | |||
|
172 | ||||
|
173 | distclean: clean | |||
|
174 | -$(DEL_FILE) $(TARGET) | |||
|
175 | -$(DEL_FILE) Makefile | |||
|
176 | ||||
|
177 | ||||
|
178 | grmon: | |||
|
179 | cd bin && C:/opt/grmon-eval-2.0.29b/win32/bin/grmon.exe -uart COM4 -u | |||
|
180 | ||||
|
181 | check: first | |||
|
182 | ||||
|
183 | compiler_rcc_make_all: | |||
|
184 | compiler_rcc_clean: | |||
|
185 | compiler_uic_make_all: | |||
|
186 | compiler_uic_clean: | |||
|
187 | compiler_image_collection_make_all: qmake_image_collection.cpp | |||
|
188 | compiler_image_collection_clean: | |||
|
189 | -$(DEL_FILE) qmake_image_collection.cpp | |||
|
190 | compiler_yacc_decl_make_all: | |||
|
191 | compiler_yacc_decl_clean: | |||
|
192 | compiler_yacc_impl_make_all: | |||
|
193 | compiler_yacc_impl_clean: | |||
|
194 | compiler_lex_make_all: | |||
|
195 | compiler_lex_clean: | |||
|
196 | compiler_clean: | |||
|
197 | ||||
|
198 | ####### Compile | |||
|
199 | ||||
|
200 | obj/wf_handler.o: ../src/wf_handler.c | |||
|
201 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/wf_handler.o ../src/wf_handler.c | |||
|
202 | ||||
|
203 | obj/tc_handler.o: ../src/tc_handler.c | |||
|
204 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_handler.o ../src/tc_handler.c | |||
|
205 | ||||
|
206 | obj/fsw_processing.o: ../src/fsw_processing.c | |||
|
207 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_processing.o ../src/fsw_processing.c | |||
|
208 | ||||
|
209 | obj/fsw_misc.o: ../src/fsw_misc.c | |||
|
210 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_misc.o ../src/fsw_misc.c | |||
|
211 | ||||
|
212 | obj/fsw_init.o: ../src/fsw_init.c | |||
|
213 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_init.o ../src/fsw_init.c | |||
|
214 | ||||
|
215 | obj/fsw_globals.o: ../src/fsw_globals.c | |||
|
216 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_globals.o ../src/fsw_globals.c | |||
|
217 | ||||
|
218 | ####### Install | |||
|
219 | ||||
|
220 | install: FORCE | |||
|
221 | ||||
|
222 | uninstall: FORCE | |||
|
223 | ||||
|
224 | FORCE: | |||
|
225 |
1 | NO CONTENT: new file 100755, binary diff hidden |
|
NO CONTENT: new file 100755, binary diff hidden |
1 | NO CONTENT: new file 100755, binary diff hidden |
|
NO CONTENT: new file 100755, binary diff hidden |
@@ -0,0 +1,44 | |||||
|
1 | TEMPLATE = app | |||
|
2 | # CONFIG += console v8 sim | |||
|
3 | # CONFIG options = verbose *** cpu_usage_report *** gsa | |||
|
4 | CONFIG += console verbose | |||
|
5 | CONFIG -= qt | |||
|
6 | ||||
|
7 | include(./sparc.pri) | |||
|
8 | ||||
|
9 | contains( CONFIG, verbose ) { | |||
|
10 | DEFINES += PRINT_MESSAGES_ON_CONSOLE | |||
|
11 | } | |||
|
12 | ||||
|
13 | contains( CONFIG, cpu_usage_report ) { | |||
|
14 | DEFINES += PRINT_TASK_STATISTICS | |||
|
15 | } | |||
|
16 | ||||
|
17 | TARGET = fsw | |||
|
18 | contains( CONFIG, gsa ) { | |||
|
19 | DEFINES += GSA | |||
|
20 | TARGET = fsw-gsa | |||
|
21 | } | |||
|
22 | ||||
|
23 | INCLUDEPATH += \ | |||
|
24 | ../src \ | |||
|
25 | ../header | |||
|
26 | ||||
|
27 | SOURCES += \ | |||
|
28 | ../src/wf_handler.c \ | |||
|
29 | ../src/tc_handler.c \ | |||
|
30 | ../src/fsw_processing.c \ | |||
|
31 | ../src/fsw_misc.c \ | |||
|
32 | ../src/fsw_init.c \ | |||
|
33 | ../src/fsw_globals.c | |||
|
34 | ||||
|
35 | HEADERS += \ | |||
|
36 | ../header/wf_handler.h \ | |||
|
37 | ../header/tc_handler.h \ | |||
|
38 | ../header/grlib_regs.h \ | |||
|
39 | ../header/fsw_processing.h \ | |||
|
40 | ../header/fsw_params.h \ | |||
|
41 | ../header/fsw_misc.h \ | |||
|
42 | ../header/fsw_init.h \ | |||
|
43 | ../header/ccsds_types.h | |||
|
44 |
@@ -0,0 +1,265 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <!DOCTYPE QtCreatorProject> | |||
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-04T15:59:14. --> | |||
|
4 | <qtcreator> | |||
|
5 | <data> | |||
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |||
|
7 | <value type="int">0</value> | |||
|
8 | </data> | |||
|
9 | <data> | |||
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |||
|
11 | <valuemap type="QVariantMap"> | |||
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |||
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |||
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |||
|
15 | <value type="QString" key="language">Cpp</value> | |||
|
16 | <valuemap type="QVariantMap" key="value"> | |||
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |||
|
18 | </valuemap> | |||
|
19 | </valuemap> | |||
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |||
|
21 | <value type="QString" key="language">QmlJS</value> | |||
|
22 | <valuemap type="QVariantMap" key="value"> | |||
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |||
|
24 | </valuemap> | |||
|
25 | </valuemap> | |||
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |||
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |||
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |||
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |||
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |||
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |||
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |||
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |||
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |||
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |||
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |||
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |||
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |||
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |||
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |||
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |||
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |||
|
43 | </valuemap> | |||
|
44 | </data> | |||
|
45 | <data> | |||
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |||
|
47 | <valuemap type="QVariantMap"/> | |||
|
48 | </data> | |||
|
49 | <data> | |||
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |||
|
51 | <valuemap type="QVariantMap"> | |||
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |||
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |||
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |||
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |||
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |||
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |||
|
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |||
|
59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |||
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |||
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |||
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |||
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |||
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |||
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |||
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |||
|
69 | </valuemap> | |||
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |||
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |||
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |||
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
77 | </valuemap> | |||
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |||
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |||
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |||
|
82 | </valuemap> | |||
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |||
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |||
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |||
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
91 | </valuemap> | |||
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |||
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |||
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |||
|
96 | </valuemap> | |||
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |||
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |||
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |||
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |||
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |||
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |||
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/DEV_PLE/FSW-qt</value> | |||
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |||
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |||
|
107 | </valuemap> | |||
|
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |||
|
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |||
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |||
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |||
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |||
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |||
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |||
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |||
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |||
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |||
|
119 | </valuemap> | |||
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |||
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |||
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |||
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |||
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |||
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |||
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |||
|
127 |