build: support to build generated c files.

N/A

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