diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-09-27 14:55:15 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-09-27 15:57:24 +0200 |
commit | 8c5a5e17484c92f286a26fca45b6db4bddde1f3b (patch) | |
tree | 73c4e5fe3bede48cc1dd99f66cc98ec39e7a8df2 | |
parent | aa079bbb57c26abafb29dde57508b3ce9d0567b6 (diff) | |
download | bootstrappable-toolchain-8c5a5e17484c92f286a26fca45b6db4bddde1f3b.tar.gz |
toolchains: move python to shell defaults
... and drop unneeded duplication as well as wrong expansion
variables in "PATH" fields.
-rw-r--r-- | etc/defaults/shell/clang.TARGETS | 3 | ||||
-rw-r--r-- | toolchains/CC/foreign/busybox.TARGETS | 8 | ||||
-rw-r--r-- | toolchains/CC/foreign/cmake.TARGETS | 1 | ||||
-rw-r--r-- | toolchains/CC/foreign/make.TARGETS | 1 | ||||
-rw-r--r-- | toolchains/CC/foreign/python.TARGETS | 7 | ||||
-rw-r--r-- | toolchains/shell/python.TARGETS | 14 |
6 files changed, 15 insertions, 19 deletions
diff --git a/etc/defaults/shell/clang.TARGETS b/etc/defaults/shell/clang.TARGETS index 6a2bf9f..7cea0f5 100644 --- a/etc/defaults/shell/clang.TARGETS +++ b/etc/defaults/shell/clang.TARGETS @@ -1,5 +1,6 @@ { "defaults": { "type": "defaults" - , "base": [["@", "base", "shell", "defaults"]] + , "base": + [["@", "base", "shell", "defaults"], ["@", "python", "shell", "defaults"]] } } diff --git a/toolchains/CC/foreign/busybox.TARGETS b/toolchains/CC/foreign/busybox.TARGETS index da37c1a..3559b47 100644 --- a/toolchains/CC/foreign/busybox.TARGETS +++ b/toolchains/CC/foreign/busybox.TARGETS @@ -7,13 +7,5 @@ , "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "toolchain": ["staged-busybox"] - , "PATH": - [ "$(TOOLCHAIN)/busybox/bin" - , "$(TOOLCHAIN)/busybox/sbin" - , "$(TOOLCHAIN)/busybox/usr/bin" - , "$(TOOLCHAIN)/busybox/usr/sbin" - ] } -, "staged-busybox": - {"type": "install", "dirs": [[["", "toolchain"], "busybox"]]} } diff --git a/toolchains/CC/foreign/cmake.TARGETS b/toolchains/CC/foreign/cmake.TARGETS index 4436416..78f3436 100644 --- a/toolchains/CC/foreign/cmake.TARGETS +++ b/toolchains/CC/foreign/cmake.TARGETS @@ -8,7 +8,6 @@ { "type": ["@", "rules", "CC/foreign", "defaults"] , "CMAKE": ["cmake/bin/cmake"] , "toolchain": ["staged-cmake"] - , "PATH": ["$(TOOLCHAIN)/cmake/bin"] } , "staged-cmake": {"type": "install", "dirs": [[["", "toolchain"], "cmake"]]} } diff --git a/toolchains/CC/foreign/make.TARGETS b/toolchains/CC/foreign/make.TARGETS index a5efc72..ddd5f09 100644 --- a/toolchains/CC/foreign/make.TARGETS +++ b/toolchains/CC/foreign/make.TARGETS @@ -7,7 +7,6 @@ , "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "MAKE": ["make/bin/make"] - , "PATH": ["$(TOOLCHAIN)/make/bin"] , "toolchain": ["staged-make"] } , "staged-make": {"type": "install", "dirs": [[["", "toolchain"], "make"]]} diff --git a/toolchains/CC/foreign/python.TARGETS b/toolchains/CC/foreign/python.TARGETS index 143cc14..97c0518 100644 --- a/toolchains/CC/foreign/python.TARGETS +++ b/toolchains/CC/foreign/python.TARGETS @@ -4,10 +4,5 @@ , "flexible_config": ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] } -, "defaults (unexported)": - { "type": ["@", "rules", "CC/foreign", "defaults"] - , "toolchain": ["staged-python"] - , "PATH": ["$(TOOLCHAIN)/python/usr/bin"] - } -, "staged-python": {"type": "install", "dirs": [[["", "toolchain"], "python"]]} +, "defaults (unexported)": {"type": ["@", "rules", "CC/foreign", "defaults"]} } diff --git a/toolchains/shell/python.TARGETS b/toolchains/shell/python.TARGETS index a2a686c..0a9e053 100644 --- a/toolchains/shell/python.TARGETS +++ b/toolchains/shell/python.TARGETS @@ -1,3 +1,13 @@ -{ "defaults": {"type": "export", "target": "defaults (unexported)"} -, "defaults (unexported)": {"type": ["@", "rules", "shell", "defaults"]} +{ "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": + { "type": ["@", "rules", "shell", "defaults"] + , "toolchain": ["staged-python"] + , "bin dirs": ["python/usr/bin"] + } +, "staged-python": {"type": "install", "dirs": [[["", "toolchain"], "python"]]} } |