SoC common : scripts :refactor the build system. [2/2]

PD#SWPL-174904

Problem:
Refactor the build system.

Solution:
Merge some flow in a same flow which related with compiler.

Verify:
N/A

Change-Id: Id223479fe9be86ab99d408fb68bafe0ae45fed8a
Signed-off-by: xiaohu.huang <xiaohu.huang@amlogic.com>
4 files changed