re-write build script for all-in-one building (need to work on loki)

Change-Id: I3cd178d1e0c2fee5bdb1406d3067bd6d34a3300a
update build-all-variants.sh

Change-Id: I8ac3825720b00a492dd45d933de19119a16fcef4