Implement the base functions of lunch and croot.

N/A

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