GDMA driver will be adapted to more DMA peripherals in the future. This commit is to extract a minimal interface in the hal layer
Trim the build components to decrease the load of Gitlab server.