build: support build asm source files and multiple target arch.

N/A

Signed-off-by: liminghao <liminghao@xiaomi.com>