Add a stub of the code that will fill all the fields of the board selection Wizard...
[bertos.git] / wizard / const.py
index 4b2a3fccb10ea82f50d69482d57ce454f3ce8b37..3b6add0de74d5c77592669bc6e55c27a4d5911bf 100644 (file)
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import os, sys
+
+_tmp = sys.argv[0]
+if os.path.islink(_tmp):
+    _tmp = os.readlink(_tmp)
+DATA_DIR = os.path.dirname(os.path.abspath(_tmp))
+del _tmp
+
+PREDEFINED_BOARDS_DIR = 'predefined_boards'
+
 CPU_DEF = {
     "CPU_NAME": "",
     "CPU_DIR": "",
@@ -65,6 +75,8 @@ EXTENSION_FILTER = (
     ".cxx",
     ".h",
     ".c++",
+    ".ld",
+    ".S",
     ".mk",
     "Makefile",
 )
@@ -83,3 +95,5 @@ MODULE_DEFINITION = {
     "module_hw": "module_hw",
     "module_supports": "module_supports",
 }
+
+MK_PARAM_ID = "MK_"