sysgen: Relocate code for processing output directory name
Reworks output directory name processing so that it is invoked at the bottom of the file, just like the rest of the program's mainline. (It's previous location wasn't incorrect, but it could be easily overlooked.) Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
779932139c
commit
04012be07c
|
@ -117,14 +117,15 @@ copyright = \
|
|||
" * POSSIBILITY OF SUCH DAMAGE.\n" + \
|
||||
" */\n"
|
||||
|
||||
output_dir = ""
|
||||
|
||||
|
||||
def get_output_dir():
|
||||
if len(sys.argv) > 2:
|
||||
return sys.argv[2]
|
||||
else:
|
||||
return ""
|
||||
""" Handle optional output directory argument """
|
||||
|
||||
output_dir = get_output_dir()
|
||||
global output_dir
|
||||
if len(sys.argv) > 2:
|
||||
output_dir = sys.argv[2]
|
||||
|
||||
|
||||
def write_file(filename, contents):
|
||||
|
@ -1162,6 +1163,7 @@ def vxmicro_h_generate():
|
|||
|
||||
|
||||
vpf_parse()
|
||||
get_output_dir()
|
||||
kernel_main_c_generate()
|
||||
vxmicro_h_generate()
|
||||
micro_objs_h_generate()
|
||||
|
|
Loading…
Reference in a new issue