annotate TaskManager/Makefile.cell @ 1479:163220e54cc0 draft

remove hard code for TaskLog
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Jul 2012 17:15:15 +0900
parents 5b024efa2429
children 34582cd8a7af
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
1 include ./Makefile.def
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
2
1081
4a5498c98e34 look like working...
root@localhost.localdomain
parents: 1021
diff changeset
3 ABIBIT=32
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
4 ABI= -m$(ABIBIT)
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
5 TARGET = libCellManager.a
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
6 SPETARGET = libspemanager.a
1087
20f09564c586 fix (not yet tested)
root@localhost.localdomain
parents: 1081
diff changeset
7 CFLAGS += -DHAS_POSIX_MEMALIGN
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
8
304
df3d65ae7d12 fix Makefile.cell
kono@localhost.localdomain
parents: 303
diff changeset
9 CELL_SPE_DIR = $(IMPL_CELL_DIR)/spe
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
10
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
11 CELL_SPE_SCHEDULE_SRC = $(CELL_SPE_DIR)/SchedExit.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
12 $(CELL_SPE_DIR)/SchedNop2Ready.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
13 $(CELL_SPE_DIR)/SchedTaskList.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
14 $(CELL_SPE_DIR)/SchedMail.cc \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
15 $(CELL_SPE_DIR)/SchedTask.cc \
706
b2b4a1243961 no compile error on Cell. Regression Test.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
16 $(CELL_SPE_DIR)/SchedTaskArray.cc \
786
043c98537bc5 fix early free of TaskArray, add SchedTaskArrayNop stage.
yutaka@localhost.localdomain
parents: 706
diff changeset
17 $(CELL_SPE_DIR)/SchedTaskArrayNop.cc \
706
b2b4a1243961 no compile error on Cell. Regression Test.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
18 $(CELL_SPE_DIR)/SchedTaskArrayLoad.cc \
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
19 $(CELL_SPE_DIR)/Scheduler.cc\
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
20 $(CELL_SPE_DIR)/SchedNop.cc \
380
fcd53a8b777c ps3 fix
e065701@localhost.localdomain
parents: 372
diff changeset
21 $(CELL_SPE_DIR)/MemList.cc \
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
22 $(CELL_SPE_DIR)/MemHash.cc \
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
23 $(CELL_SPE_DIR)/MailManager.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
24 CELL_SPE_SCHEDULE_OBJ = $(CELL_SPE_SCHEDULE_SRC:.cc=.o)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
25
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
26 CELL_SPE_SRCS = \
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
27 $(CELL_SPE_DIR)/CellDmaManager.cc \
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
28 $(CELL_SPE_DIR)/CellScheduler.cc \
621
64e05530e333 Cell fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 611
diff changeset
29 $(CELL_SPE_DIR)/SpeTaskManagerImpl.cc \
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
30 $(CELL_SPE_DIR)/main.cc
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
31
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
32 CELL_SPE_TASK_SRCS = \
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
33 $(CELL_SPE_DIR)/TaskQueue.cc \
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
34 $(CELL_SPE_DIR)/Task.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
35
1348
5f004520face mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1087
diff changeset
36 CELL_SPE_PROFILE = \
5f004520face mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1087
diff changeset
37 $(KERN_SYSTASK_DIR)/ShowTime.cc \
5f004520face mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1087
diff changeset
38 $(KERN_SYSTASK_DIR)/StartProfile.cc
5f004520face mv ShowTime and StartProfile. fix Makefile.cell
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1087
diff changeset
39
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
40 # $(wildcard $(CELL_SPE_DIR)/*.cc)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
41
1413
5b024efa2429 fix free on non copy DMA
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1348
diff changeset
42 CELL_SPE_OBJS = $(CELL_SPE_SRCS:.cc=.o) $(CELL_SPE_SCHEDULE_OBJ) $(CELL_SPE_TASK_SRCS:.cc=.o) # $(CELL_SPE_PROFILE:.cc=.o)
301
7f991471d43f remove deprecated source. not work.
tkaito@localhost.localdomain
parents: 109
diff changeset
43
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
44 SPUCC = spu-g++ -DABIBIT=$(ABIBIT)
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
45
631
30dd8a3deb4a Cell 64 bit tried, but not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 626
diff changeset
46 EXTRA_CFLAGS = -D__CERIUM_CELL__ -DHAS_POSIX_MEMALIGN -fno-strict-aliasing
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
47
664
beb0f17c19f9 word count
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 663
diff changeset
48 SPE_CFLAGS = $(SIMPLE_TASK) -D__CERIUM_CELL__ -fno-exceptions -fno-rtti -Wall $(OPT)
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
49
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
50 all: default
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
51
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
52 default: $(CELL_SPE_SCHEDULE_SRC) $(TARGET) $(SPETARGET)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
53
372
d2418a3abcef change TaskManger/Makefile.cell
e065725@localhost.localdomain
parents: 356
diff changeset
54 PPE_ALL_OBJS = $(KERN_MAIN_OBJS) $(KERN_PPE_OBJS) $(KERN_SCHED_OBJS) $(KERN_SYSTASK_OBJS) $(IMPL_CELL_OBJS) $(KERN_MEM_OBJS)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
55
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
56 $(TARGET): $(PPE_ALL_OBJS)
61
6bc72fde6615 *** empty log message ***
gongo
parents: 60
diff changeset
57 ar crus $@ $(PPE_ALL_OBJS)
59
16f9f6251f49 *** empty log message ***
gongo
parents: 58
diff changeset
58
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
59 $(PPE_ALL_OBJS): %.o : %.cc
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
60 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
61
302
40db021f6272 working on macosx
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 301
diff changeset
62 $(SPETARGET): $(CELL_SPE_OBJS)
40db021f6272 working on macosx
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 301
diff changeset
63 ar crus $@ $(CELL_SPE_OBJS)
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
64
873
c50f39fbb6ca fix hash problem ( unsigned int-> long overflow )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 786
diff changeset
65 $(CELL_SPE_SCHEDULE_SRC): kernel/schedule/*.cc kernel/memory/*.cc kernel/ppe/*.cc
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
66 cp kernel/schedule/*.cc $(CELL_SPE_DIR)/
380
fcd53a8b777c ps3 fix
e065701@localhost.localdomain
parents: 372
diff changeset
67 cp kernel/memory/*.cc $(CELL_SPE_DIR)/
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 873
diff changeset
68 cp kernel/ppe/{TaskQueue.cc,Task.cc,MailManager.cc} $(CELL_SPE_DIR)/
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
69
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 80
diff changeset
70 $(CELL_SPE_OBJS): %.o : %.cc
611
e4c355211bd7 cell fix memaddr
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 478
diff changeset
71 $(SPUCC) $(SPE_CFLAGS) $(INCLUDE) -c $< -o $@
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
72
80
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
73 celldistclean: cellclean
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
74 rm -f $(TARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
75 rm -f $(SPETARGET)
1c648675c2bd *** empty log message ***
gongo
parents: 76
diff changeset
76
74
5da437ae84db *** empty log message ***
gongo
parents: 61
diff changeset
77 cellclean:
478
b31019c79c34 remove duplicate sources in Cell/spe
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 384
diff changeset
78 rm -f $(CELL_SPE_OBJS) $(CELL_SPE_SCHEDULE_SRC) $(CELL_SPE_TASK_SRCS)
321
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
79 (cd $(CELL_SPE_DIR); rm -f *~ \#*)
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
80
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
81
f22280772f20 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
82