source: rubycfg_asp/trunk/asp_dcre/arch/ccrx/updatepath.py@ 313

Last change on this file since 313 was 313, checked in by coas-nagasima, 7 years ago

ソースを追加

File size: 1.4 KB
Line 
1#!python
2import os
3
4#
5# variable definition
6#
7INCLUDES = []
8CFG1_DEF_TABLES = []
9
10os.chdir(os.path.dirname(project.Path))
11
12ADDITIONAL_INCLUDES = []
13
14# set relative path from top proj
15proj_rel_dir = ""
16
17# call definition file
18execfile("./def.py")
19
20# path
21src_abs_path = os.path.abspath(SRCDIR)
22
23# call common file
24execfile(src_abs_path + "/arch/ccrx/common.py")
25
26#
27# Update asp.mtpj
28#
29inputstr = ReadFile('asp.mtpj')
30inputstr = SetTargetFileRelativePath(inputstr, asp_files, SRCDIR)
31inputstr = SetCcrxIncludes(inputstr, asp_rel_includes, INCLUDES, SRCDIR)
32inputstr = SetPythonFileRelativePath(inputstr, asp_post_python_files, SRCDIR)
33WriteFile('asp.mtpj', inputstr)
34
35#
36# Update ./cfg/cfg.mtpj
37#
38inputstr = ReadFile('./cfg/cfg.mtsp')
39inputstr = SetTargetFileRelativePath(inputstr, asp_files, SRCDIR + "../")
40inputstr = SetCcrxIncludes(inputstr, cfg_rel_includes, INCLUDES, SRCDIR + "../")
41inputstr = SetPythonFileRelativePath(inputstr, cfg_pre_python_files, SRCDIR + "../")
42inputstr = SetPythonFileRelativePath(inputstr, cfg_post_python_files, SRCDIR + "../")
43WriteFile('./cfg/cfg.mtsp', inputstr)
44
45
46#
47# make ccrx include path for kernel
48#
49inputstr = ReadFile('./kernel/kernel.mtsp')
50inputstr = SetTargetFileRelativePath(inputstr, kernel_files, SRCDIR + "../")
51inputstr = SetCcrxIncludes(inputstr, kernel_rel_includes, INCLUDES, SRCDIR + "../")
52WriteFile('./kernel/kernel.mtsp', inputstr)
Note: See TracBrowser for help on using the repository browser.