Add infrastructure for recognize modules supported by the selected cpu
[bertos.git] / wizard / const.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
5 # All rights reserved.
6 #
7 # $Id$
8 #
9 # Author: Lorenzo Berni <duplo@develer.com>
10 #
11
12 CPU_DEF = {
13     "CPU_NAME": "",
14     "CPU_DIR": "",
15     "DEFINITION_PATH": "",
16     "TOOLCHAIN": "",
17     "CPU_TAGS": [],
18     "CPU_FLAG_NAME": "",
19     "CORE_CPU": "",
20     "SCRIPT_DIR": "",
21     "HW_DIR": "",
22     "DRV_DIR": "",
23     "C_FLAGS": [],
24     "CPPA_FLAGS" : [],
25     "CPP_FLAGS" : [],
26     "CPPA_FLAGS": [],
27     "CXX_FLAGS": [],
28     "AS_FLAGS": [],
29     "AR_FLAGS": [],
30     "LD_FLAGS" : [],
31     "CPPA_SRC" : [],
32     "CXX_SRC": [],
33     "ASRC": [],
34     "C_SRC": [],
35     "SUPPORTED_DRV" : [],
36     "PC_SRC" : [],
37     "CPU_DESC" : [],
38     "CPU_DEFAULT_FREQ": "1000000"
39 }
40
41 TOOLCHAIN_ITEMS = ("ld", "as")
42
43 CPU_DEFINITION = "*.cdef"
44
45 GCC_NAME = "*gcc*"
46
47 MODULE_CONFIGURATION = "cfg_*.h"
48
49 UI_LOCATION = "ui"
50
51 EXTENSION_FILTER = (
52     ".c",
53     ".cpp",
54     ".cxx",
55     ".h",
56     ".c++",
57     ".mk",
58     "Makefile",
59 )
60
61 IGNORE_LIST = (
62     "*/.svn",
63     "*/CVS",
64     "*/.git",
65 )
66
67 MODULE_DEFINITION = {
68     "module_name": "module_name",
69     "module_configuration": "module_configuration",
70     "module_depends": "module_depends",
71     "module_harvard": "module_harvard",
72     "module_hw": "module_hw",
73     "module_supports": "module_supports",
74 }