Commit 2acab86c authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Specify board target when calling asn1scc for Ada

Latest version of ASN1SCC have a flag --target to specify the target
board, allowing to customize word size, etc.
parent 369e0722
Pipeline #2448 passed with stage
in 3 minutes and 18 seconds
......@@ -50,7 +50,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
extraFlags = os.getenv("ASN1SCC_FLAGS") or ""
os.system(
("mono " if sys.platform.startswith('linux') else "") +
"\"{}\" -typePrefix asn1Scc -equal -Ada {} -o \"".format(asn1SccPath, extraFlags) +
"\"{}\" -typePrefix asn1Scc -equal --target allboards -Ada {} -o \"".format(asn1SccPath, extraFlags) +
outputDir + "\" \"" + "\" \"".join(asnFiles) + "\"")
# os.system("rm -f \"" + outputDir + "\"/*.adb")
......
......@@ -242,7 +242,7 @@ types). This used to cover Dumpable C/Ada Types and OG headers.'''
if asnFile is not None:
if not asn1SccPath:
panic("ASN1SCC seems not installed on your system (asn1.exe not found in PATH).\n") # pragma: no cover
os.system('mono "{}" -typePrefix asn1Scc {} -Ada -equal -o "{}" "{}"'
os.system('mono "{}" -typePrefix asn1Scc {} --target allboards -Ada -equal -o "{}" "{}"'
.format(asn1SccPath, extraFlags, outputDir, '" "'.join([asnFile])))
......
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