build.sh: add support to show building time

Change-Id: I5fcf04298a1ee7dc2b5f851241da55af7bda6c92
m4: enable swap

Change-Id: I528019dedc4ae72554299ea6dd7c03b05fde22b0