From d9121854fbf14ec7b4001a0915ae62c6569f63b5 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 28 Jun 2024 11:07:52 +0200 Subject: toolchain: set shell toolchain, whenever busybox is available --- toolchains/shell/busybox.TARGETS | 22 ++++++++++++++++++++-- toolchains/shell/compiler+tools.TARGETS | 12 ++++++++++-- toolchains/shell/tools-all.TARGETS | 12 ++++++++++-- 3 files changed, 40 insertions(+), 6 deletions(-) (limited to 'toolchains/shell') diff --git a/toolchains/shell/busybox.TARGETS b/toolchains/shell/busybox.TARGETS index a2a686c..70e6132 100644 --- a/toolchains/shell/busybox.TARGETS +++ b/toolchains/shell/busybox.TARGETS @@ -1,3 +1,21 @@ -{ "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": ["shell-busybox"] + , "bin dirs": + [ "shell-busybox/bin" + , "shell-busybox/sbin" + , "shell-busybox/usr/bin" + , "shell-busybox/usr/sbin" + ] + } +, "shell-busybox": + { "type": "install" + , "dirs": [[["@", "busybox", "", "busybox"], "shell-busybox"]] + } } diff --git a/toolchains/shell/compiler+tools.TARGETS b/toolchains/shell/compiler+tools.TARGETS index a2a686c..f081d9f 100644 --- a/toolchains/shell/compiler+tools.TARGETS +++ b/toolchains/shell/compiler+tools.TARGETS @@ -1,3 +1,11 @@ -{ "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"] + , "base": [["@", "busybox", "shell", "defaults"]] + } } diff --git a/toolchains/shell/tools-all.TARGETS b/toolchains/shell/tools-all.TARGETS index a2a686c..f081d9f 100644 --- a/toolchains/shell/tools-all.TARGETS +++ b/toolchains/shell/tools-all.TARGETS @@ -1,3 +1,11 @@ -{ "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"] + , "base": [["@", "busybox", "shell", "defaults"]] + } } -- cgit v1.2.3