CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for gcc to avoid passing gcc flags to g++.
1. Import M031 porting. 2. Support numaker-m032ki BSP.