build.py: Add target order

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-03-06 16:03:46 +00:00
commit 014e0d6778

View file

@ -113,10 +113,15 @@ if len(env_exclude):
exclude += " " + env_exclude
# -- build
print "calculating order for modules: " + ' '.join(modules)
if target != 'order':
print "calculating order for modules: " + ' '.join(modules)
order = []
calculate_order(order, modules, glob_prereq_type)
order = [m for m in order if m not in exclude]
if target == 'order':
print ' '.join(order)
exit(0)
print "order is: " + ' '.join(order)
build(modules, order, target)