From 2ffa33b77cab2e30b912e14bb839f491630ceefb Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 24 Apr 2024 19:01:03 +0200 Subject: export toolchains An intended use case of this bootstrappable toolchain is to be imported as toolchain into other projects. However, only export targets should be imported into other projects (a recommendation that is a requirement when obtaineing the imported project via a serve endpoint). Fix this by exporting the toolchains. --- toolchains/CC/clang.TARGETS | 6 ++++++ toolchains/CC/compiler+tools.TARGETS | 6 ++++++ toolchains/CC/foreign/busybox.TARGETS | 6 ++++++ toolchains/CC/foreign/cmake.TARGETS | 6 ++++++ toolchains/CC/foreign/compiler+tools.TARGETS | 6 ++++++ toolchains/CC/foreign/make.TARGETS | 6 ++++++ toolchains/CC/foreign/python.TARGETS | 6 ++++++ toolchains/CC/foreign/tools-all.TARGETS | 6 ++++++ toolchains/CC/gcc.TARGETS | 6 ++++++ toolchains/patch/busybox.TARGETS | 6 ++++++ toolchains/patch/compiler+tools.TARGETS | 6 ++++++ toolchains/patch/tools-all.TARGETS | 6 ++++++ 12 files changed, 72 insertions(+) diff --git a/toolchains/CC/clang.TARGETS b/toolchains/CC/clang.TARGETS index d482b54..8c95e0f 100644 --- a/toolchains/CC/clang.TARGETS +++ b/toolchains/CC/clang.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC", "defaults"] , "arguments_config": ["TOOLCHAIN_CONFIG"] , "CC": ["clang/bin/clang"] diff --git a/toolchains/CC/compiler+tools.TARGETS b/toolchains/CC/compiler+tools.TARGETS index c72120b..11a5074 100644 --- a/toolchains/CC/compiler+tools.TARGETS +++ b/toolchains/CC/compiler+tools.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC", "defaults"] , "base": [["@", "compiler", "CC", "defaults"]] } diff --git a/toolchains/CC/foreign/busybox.TARGETS b/toolchains/CC/foreign/busybox.TARGETS index d051ad1..da37c1a 100644 --- a/toolchains/CC/foreign/busybox.TARGETS +++ b/toolchains/CC/foreign/busybox.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "toolchain": ["staged-busybox"] , "PATH": diff --git a/toolchains/CC/foreign/cmake.TARGETS b/toolchains/CC/foreign/cmake.TARGETS index facb83d..4436416 100644 --- a/toolchains/CC/foreign/cmake.TARGETS +++ b/toolchains/CC/foreign/cmake.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "CMAKE": ["cmake/bin/cmake"] , "toolchain": ["staged-cmake"] diff --git a/toolchains/CC/foreign/compiler+tools.TARGETS b/toolchains/CC/foreign/compiler+tools.TARGETS index bc75880..fabf11d 100644 --- a/toolchains/CC/foreign/compiler+tools.TARGETS +++ b/toolchains/CC/foreign/compiler+tools.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "base": [["@", "tools", "CC/foreign", "defaults"]] } diff --git a/toolchains/CC/foreign/make.TARGETS b/toolchains/CC/foreign/make.TARGETS index ca679db..a5efc72 100644 --- a/toolchains/CC/foreign/make.TARGETS +++ b/toolchains/CC/foreign/make.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "MAKE": ["make/bin/make"] , "PATH": ["$(TOOLCHAIN)/make/bin"] diff --git a/toolchains/CC/foreign/python.TARGETS b/toolchains/CC/foreign/python.TARGETS index 2824c77..143cc14 100644 --- a/toolchains/CC/foreign/python.TARGETS +++ b/toolchains/CC/foreign/python.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "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"] diff --git a/toolchains/CC/foreign/tools-all.TARGETS b/toolchains/CC/foreign/tools-all.TARGETS index 260bc43..079a97c 100644 --- a/toolchains/CC/foreign/tools-all.TARGETS +++ b/toolchains/CC/foreign/tools-all.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC/foreign", "defaults"] , "base": [ ["@", "busybox", "CC/foreign", "defaults"] diff --git a/toolchains/CC/gcc.TARGETS b/toolchains/CC/gcc.TARGETS index 9f0fbc0..5d17103 100644 --- a/toolchains/CC/gcc.TARGETS +++ b/toolchains/CC/gcc.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "CC", "defaults"] , "arguments_config": ["TOOLCHAIN_CONFIG"] , "CC": ["gcc/bin/gcc"] diff --git a/toolchains/patch/busybox.TARGETS b/toolchains/patch/busybox.TARGETS index e027085..fba575c 100644 --- a/toolchains/patch/busybox.TARGETS +++ b/toolchains/patch/busybox.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "patch", "defaults"] , "PATCH": ["busybox/usr/bin/patch"] , "toolchain": ["staged-busybox"] diff --git a/toolchains/patch/compiler+tools.TARGETS b/toolchains/patch/compiler+tools.TARGETS index 86297fe..3f16919 100644 --- a/toolchains/patch/compiler+tools.TARGETS +++ b/toolchains/patch/compiler+tools.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "patch", "defaults"] , "base": [["@", "tools", "patch", "defaults"]] } diff --git a/toolchains/patch/tools-all.TARGETS b/toolchains/patch/tools-all.TARGETS index 0dd1455..9eeb7e8 100644 --- a/toolchains/patch/tools-all.TARGETS +++ b/toolchains/patch/tools-all.TARGETS @@ -1,4 +1,10 @@ { "defaults": + { "type": "export" + , "target": "defaults (unexported)" + , "flexible_config": + ["ARCH", "ENV", "HOST_ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"] + } +, "defaults (unexported)": { "type": ["@", "rules", "patch", "defaults"] , "base": [["@", "busybox", "patch", "defaults"]] } -- cgit v1.2.3