提交 ecbe7b4c 编写于 作者: B Bernard Xiong

[Tools] Add more packages support under Linux

上级 89944a78
...@@ -80,7 +80,17 @@ def touch_env(): ...@@ -80,7 +80,17 @@ def touch_env():
os.mkdir(env_dir) os.mkdir(env_dir)
os.mkdir(os.path.join(env_dir, 'local_pkgs')) os.mkdir(os.path.join(env_dir, 'local_pkgs'))
os.mkdir(os.path.join(env_dir, 'packages')) os.mkdir(os.path.join(env_dir, 'packages'))
os.system('git clone https://github.com/RT-Thread/packages.git ~/.env/packages/packages')
kconfig = file(os.path.join(env_dir, 'packages', 'Kconfig'), 'w') kconfig = file(os.path.join(env_dir, 'packages', 'Kconfig'), 'w')
kconfig.write('source "$PKGS_DIR/packages/Kconfig"')
os.mkdir(os.path.join(env_dir, 'tools'))
os.system('git clone https://github.com/RT-Thread/env.git ~/.env/tools/scripts')
env_sh = file(os.path.join(env_dir, 'env.sh'), 'w')
env_sh.write('export $PATH=~/.env/tools/scripts:$PATH')
# menuconfig for Linux # menuconfig for Linux
def menuconfig(RTT_ROOT): def menuconfig(RTT_ROOT):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册