t6: Add setup-makefiles script

Change-Id: I584678be4997fcfb812897a95284bc386a226bae