Skip to content

Commit

Permalink
删除tools/kconfiglib文件夹,采用pip安装kconfiglib
Browse files Browse the repository at this point in the history
  • Loading branch information
ComerLater committed Jun 27, 2024
1 parent eb1d691 commit 5edab01
Show file tree
Hide file tree
Showing 23 changed files with 11 additions and 17,838 deletions.
19 changes: 11 additions & 8 deletions tools/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,18 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
Env['BSP_ROOT'] = Dir('#').abspath
os.environ["BSP_DIR"] = Dir('#').abspath
# set PKGS_ROOT in ENV
if not "PKGS_DIR" in os.environ:
if "ENV_ROOT" in os.environ:
os.environ["PKGS_DIR"] = os.path.join(os.environ["ENV_ROOT"], "packages")
elif sys.platform == "win32":
os.environ["PKGS_DIR"] = os.path.join(os.environ["USERPROFILE"], ".env/packages")
else:
os.environ["PKGS_DIR"] = os.path.join(os.environ["HOME"], ".env/packages")
if "PKGS_DIR" in os.environ:
pass
elif "PKGS_ROOT" in os.environ:
os.environ["PKGS_DIR"] = os.environ["PKGS_ROOT"]
elif "ENV_ROOT" in os.environ:
os.environ["PKGS_DIR"] = os.path.join(os.environ["ENV_ROOT"], "packages")
elif sys.platform == "win32":
os.environ["PKGS_DIR"] = os.path.join(os.environ["USERPROFILE"], ".env", "packages")
else:
os.environ["PKGS_DIR"] = os.path.join(os.environ["HOME"], ".env", "packages")

sys.path = sys.path + [os.path.join(Rtt_Root, 'tools'), os.path.join(Rtt_Root, 'tools/kconfiglib')]
sys.path += os.path.join(Rtt_Root, 'tools')

# {target_name:(CROSS_TOOL, PLATFORM)}
tgt_dict = {'mdk':('keil', 'armcc'),
Expand Down
4 changes: 0 additions & 4 deletions tools/kconfiglib/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions tools/kconfiglib/LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tools/kconfiglib/MANIFEST.in

This file was deleted.

Loading

0 comments on commit 5edab01

Please sign in to comment.