add hardware compile into the sccript