From ecbe7b4ca15acb3f864fb75fc5645954acfa76ea Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 20 Dec 2017 11:20:55 +0800 Subject: [PATCH] [Tools] Add more packages support under Linux --- tools/menuconfig.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/menuconfig.py b/tools/menuconfig.py index 4ffcd9372..4a339ec14 100644 --- a/tools/menuconfig.py +++ b/tools/menuconfig.py @@ -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):