Commit 4c6f2346 authored by Bruno Gomes's avatar Bruno Gomes

AIR configurator: update submodules ignore list accordingly with files...

AIR configurator: update submodules ignore list accordingly with files generated by configurator. Configurator now asks user for POS to be used

refs #201957
parent 60825fff
rtems48i @ a6f1578a
Subproject commit 4b06a1ce19cb9b7716beda65b5c5950b0b6fd844
Subproject commit a6f1578a2097f57250defe9582daae917b31785f
rtems5 @ 3cb386c0
Subproject commit a9f9543c6af02acf04e71a01759a2c28985cbaa0
Subproject commit 3cb386c0e805ddbd9adf8df0d5beff68606203f9
......@@ -91,22 +91,22 @@ def get_available_libraries():
def get_available_pos():
pos = {}
# Prompt to install RTOS
#opts = ['No', 'Yes']
#promptx = 'Install All RTOS ?'
#all_rtos = terminalutils.promptActions(promptx, opts)
opts = ['No', 'Yes']
promptx = 'Install All RTOS ?'
all_rtos = terminalutils.promptActions(promptx, opts)
pos_names = [x for x in os.listdir(AIR_POS)
if os.path.isdir(os.path.join(AIR_POS, x)) and x != 'shared']
for pos_name in pos_names:
try:
#i = 0
#if all_rtos == 0:
# promptx = 'Install ' + pos_name + '?'
# i = terminalutils.promptActions(promptx, opts)
#if i == 1 or all_rtos == 1:
pos_path = os.path.join(AIR_POS, pos_name, 'config.py')
module = imp.load_source(pos_name, pos_path)
module.path = pos_path
pos[module.name.lower()] = module
i = 0
if all_rtos == 0:
promptx = 'Install ' + pos_name + '?'
i = terminalutils.promptActions(promptx, opts)
if i == 1 or all_rtos == 1:
pos_path = os.path.join(AIR_POS, pos_name, 'config.py')
module = imp.load_source(pos_name, pos_path)
module.path = pos_path
pos[module.name.lower()] = module
except IOError:
logging.warning ('Missing AIR POS : %s, name: %s', pos_path, pos_name)
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment