Extract common build function
Extract common build function

fy2462/apollo,startcode/apollo,fy2462/apollo,fy2462/apollo,fy2462/apollo,fy2462/apollo,startcode/apollo,startcode/apollo,startcode/apollo,fy2462/apollo,startcode/apollo,startcode/apollo