Add airframe .post scripts on NuttX targets

This commit is contained in:
Julien Lecoeur
2019-07-22 13:02:45 +02:00
committed by Beat Küng
parent e964af9262
commit daeba4e75f
5 changed files with 47 additions and 13 deletions
+15 -3
View File
@@ -3,7 +3,7 @@ import codecs
import os
class RCOutput():
def __init__(self, groups, board):
def __init__(self, groups, board, post_start=False):
result = ( "#\n"
"#\n"
@@ -41,7 +41,19 @@ class RCOutput():
excluded = True
if excluded:
continue
path = os.path.split(param.GetPath())[1]
if post_start:
# Path to post-start sript
path = param.GetPostPath()
else:
# Path to start script
path = param.GetPath()
if not path:
continue
path = os.path.split(path)[1]
id_val = param.GetId()
name = param.GetFieldValue("short_desc")
long_desc = param.GetFieldValue("long_desc")
@@ -58,7 +70,7 @@ class RCOutput():
result += "\n"
result += "\n"
self.output = result;
self.output = result
def Save(self, filename):
with codecs.open(filename, 'w', 'utf-8') as f: