[build][tests] Set make variables to compile for Cortex-M3/Qemu