Merge pull request #1120 from BernardXiong/master

[Tools] Add more packages support under Linux
This commit is contained in:
Bernard Xiong 2017-12-20 11:22:42 +08:00 committed by GitHub
commit c0f50fb5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -80,7 +80,17 @@ def touch_env():
os.mkdir(env_dir)
os.mkdir(os.path.join(env_dir, 'local_pkgs'))
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.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
def menuconfig(RTT_ROOT):