summaryrefslogtreecommitdiff
path: root/etc/defaults/CC
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
commit060a0cf338d6024eee37cc344c224fe3bcb78e81 (patch)
tree3fea7c654b69ecf3490fe9c6cbc542aba0d5bd8f /etc/defaults/CC
downloadbootstrappable-toolchain-060a0cf338d6024eee37cc344c224fe3bcb78e81.tar.gz
Initial commit
Diffstat (limited to 'etc/defaults/CC')
-rw-r--r--etc/defaults/CC/clang.TARGETS11
-rw-r--r--etc/defaults/CC/foreign/clang.TARGETS19
-rw-r--r--etc/defaults/CC/foreign/gcc.TARGETS15
-rw-r--r--etc/defaults/CC/foreign/stage-0.TARGETS1
-rw-r--r--etc/defaults/CC/foreign/stage-1.TARGETS15
-rw-r--r--etc/defaults/CC/foreign/static-build.TARGETS15
-rw-r--r--etc/defaults/CC/foreign/test.TARGETS1
-rw-r--r--etc/defaults/CC/gcc.TARGETS11
-rw-r--r--etc/defaults/CC/stage-0.TARGETS26
-rw-r--r--etc/defaults/CC/stage-1.TARGETS11
-rw-r--r--etc/defaults/CC/static-build.TARGETS12
-rw-r--r--etc/defaults/CC/test.TARGETS3
12 files changed, 140 insertions, 0 deletions
diff --git a/etc/defaults/CC/clang.TARGETS b/etc/defaults/CC/clang.TARGETS
new file mode 100644
index 0000000..a91fced
--- /dev/null
+++ b/etc/defaults/CC/clang.TARGETS
@@ -0,0 +1,11 @@
+{ "defaults":
+ { "type": ["CC", "defaults"]
+ , "CC": ["gcc/bin/gcc"]
+ , "CXX": ["gcc/bin/g++"]
+ , "AR": ["gcc/bin/ar"]
+ , "toolchain": ["staged-gcc"]
+ , "PATH": ["$(TOOLCHAIN)/gcc/bin", "/bin", "/usr/bin"]
+ }
+, "staged-gcc":
+ {"type": "install", "dirs": [[["@", "gcc", "", "toolchain"], "gcc"]]}
+}
diff --git a/etc/defaults/CC/foreign/clang.TARGETS b/etc/defaults/CC/foreign/clang.TARGETS
new file mode 100644
index 0000000..74e376c
--- /dev/null
+++ b/etc/defaults/CC/foreign/clang.TARGETS
@@ -0,0 +1,19 @@
+{ "defaults":
+ { "type": ["CC/foreign", "defaults"]
+ , "base":
+ [ ["@", "cmake", "CC/foreign", "defaults"]
+ , ["@", "python", "CC/foreign", "defaults"]
+ ]
+ , "MAKE": ["make/bin/make"]
+ , "toolchain": ["staged-make", "staged-busybox"]
+ , "PATH":
+ [ "$(TOOLCHAIN)/make/bin"
+ , "$(TOOLCHAIN)/busybox/bin"
+ , "$(TOOLCHAIN)/busybox/usr/bin"
+ ]
+ }
+, "staged-make":
+ {"type": "install", "dirs": [[["@", "make", "", "toolchain"], "make"]]}
+, "staged-busybox":
+ {"type": "install", "dirs": [[["@", "busybox", "", "toolchain"], "busybox"]]}
+}
diff --git a/etc/defaults/CC/foreign/gcc.TARGETS b/etc/defaults/CC/foreign/gcc.TARGETS
new file mode 100644
index 0000000..32ae01b
--- /dev/null
+++ b/etc/defaults/CC/foreign/gcc.TARGETS
@@ -0,0 +1,15 @@
+{ "defaults":
+ { "type": ["CC/foreign", "defaults"]
+ , "MAKE": ["make/bin/make"]
+ , "toolchain": ["staged-make", "staged-busybox"]
+ , "PATH":
+ [ "$(TOOLCHAIN)/make/bin"
+ , "$(TOOLCHAIN)/busybox/bin"
+ , "$(TOOLCHAIN)/busybox/usr/bin"
+ ]
+ }
+, "staged-make":
+ {"type": "install", "dirs": [[["@", "make", "", "toolchain"], "make"]]}
+, "staged-busybox":
+ {"type": "install", "dirs": [[["@", "busybox", "", "toolchain"], "busybox"]]}
+}
diff --git a/etc/defaults/CC/foreign/stage-0.TARGETS b/etc/defaults/CC/foreign/stage-0.TARGETS
new file mode 100644
index 0000000..8b2aad4
--- /dev/null
+++ b/etc/defaults/CC/foreign/stage-0.TARGETS
@@ -0,0 +1 @@
+{"defaults": {"type": ["CC/foreign", "defaults"]}}
diff --git a/etc/defaults/CC/foreign/stage-1.TARGETS b/etc/defaults/CC/foreign/stage-1.TARGETS
new file mode 100644
index 0000000..32ae01b
--- /dev/null
+++ b/etc/defaults/CC/foreign/stage-1.TARGETS
@@ -0,0 +1,15 @@
+{ "defaults":
+ { "type": ["CC/foreign", "defaults"]
+ , "MAKE": ["make/bin/make"]
+ , "toolchain": ["staged-make", "staged-busybox"]
+ , "PATH":
+ [ "$(TOOLCHAIN)/make/bin"
+ , "$(TOOLCHAIN)/busybox/bin"
+ , "$(TOOLCHAIN)/busybox/usr/bin"
+ ]
+ }
+, "staged-make":
+ {"type": "install", "dirs": [[["@", "make", "", "toolchain"], "make"]]}
+, "staged-busybox":
+ {"type": "install", "dirs": [[["@", "busybox", "", "toolchain"], "busybox"]]}
+}
diff --git a/etc/defaults/CC/foreign/static-build.TARGETS b/etc/defaults/CC/foreign/static-build.TARGETS
new file mode 100644
index 0000000..32ae01b
--- /dev/null
+++ b/etc/defaults/CC/foreign/static-build.TARGETS
@@ -0,0 +1,15 @@
+{ "defaults":
+ { "type": ["CC/foreign", "defaults"]
+ , "MAKE": ["make/bin/make"]
+ , "toolchain": ["staged-make", "staged-busybox"]
+ , "PATH":
+ [ "$(TOOLCHAIN)/make/bin"
+ , "$(TOOLCHAIN)/busybox/bin"
+ , "$(TOOLCHAIN)/busybox/usr/bin"
+ ]
+ }
+, "staged-make":
+ {"type": "install", "dirs": [[["@", "make", "", "toolchain"], "make"]]}
+, "staged-busybox":
+ {"type": "install", "dirs": [[["@", "busybox", "", "toolchain"], "busybox"]]}
+}
diff --git a/etc/defaults/CC/foreign/test.TARGETS b/etc/defaults/CC/foreign/test.TARGETS
new file mode 100644
index 0000000..8b2aad4
--- /dev/null
+++ b/etc/defaults/CC/foreign/test.TARGETS
@@ -0,0 +1 @@
+{"defaults": {"type": ["CC/foreign", "defaults"]}}
diff --git a/etc/defaults/CC/gcc.TARGETS b/etc/defaults/CC/gcc.TARGETS
new file mode 100644
index 0000000..a91fced
--- /dev/null
+++ b/etc/defaults/CC/gcc.TARGETS
@@ -0,0 +1,11 @@
+{ "defaults":
+ { "type": ["CC", "defaults"]
+ , "CC": ["gcc/bin/gcc"]
+ , "CXX": ["gcc/bin/g++"]
+ , "AR": ["gcc/bin/ar"]
+ , "toolchain": ["staged-gcc"]
+ , "PATH": ["$(TOOLCHAIN)/gcc/bin", "/bin", "/usr/bin"]
+ }
+, "staged-gcc":
+ {"type": "install", "dirs": [[["@", "gcc", "", "toolchain"], "gcc"]]}
+}
diff --git a/etc/defaults/CC/stage-0.TARGETS b/etc/defaults/CC/stage-0.TARGETS
new file mode 100644
index 0000000..f58d2bf
--- /dev/null
+++ b/etc/defaults/CC/stage-0.TARGETS
@@ -0,0 +1,26 @@
+{ "defaults":
+ { "type": ["CC", "defaults"]
+ , "arguments_config": ["TOOLCHAIN_CONFIG"]
+ , "CC":
+ [ { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "BOOTSTRAP_CC"
+ , "default": "cc"
+ }
+ ]
+ , "PATH":
+ { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "BOOTSTRAP_PATH"
+ , "default": ["/bin", "/usr/bin"]
+ }
+ }
+}
diff --git a/etc/defaults/CC/stage-1.TARGETS b/etc/defaults/CC/stage-1.TARGETS
new file mode 100644
index 0000000..a91fced
--- /dev/null
+++ b/etc/defaults/CC/stage-1.TARGETS
@@ -0,0 +1,11 @@
+{ "defaults":
+ { "type": ["CC", "defaults"]
+ , "CC": ["gcc/bin/gcc"]
+ , "CXX": ["gcc/bin/g++"]
+ , "AR": ["gcc/bin/ar"]
+ , "toolchain": ["staged-gcc"]
+ , "PATH": ["$(TOOLCHAIN)/gcc/bin", "/bin", "/usr/bin"]
+ }
+, "staged-gcc":
+ {"type": "install", "dirs": [[["@", "gcc", "", "toolchain"], "gcc"]]}
+}
diff --git a/etc/defaults/CC/static-build.TARGETS b/etc/defaults/CC/static-build.TARGETS
new file mode 100644
index 0000000..4b74449
--- /dev/null
+++ b/etc/defaults/CC/static-build.TARGETS
@@ -0,0 +1,12 @@
+{ "defaults":
+ { "type": ["CC", "defaults"]
+ , "CC": ["gcc/bin/gcc"]
+ , "CXX": ["gcc/bin/g++"]
+ , "AR": ["gcc/bin/ar"]
+ , "LDFLAGS": ["-static"]
+ , "toolchain": ["staged-gcc"]
+ , "PATH": ["$(TOOLCHAIN)/gcc/bin", "/bin", "/usr/bin"]
+ }
+, "staged-gcc":
+ {"type": "install", "dirs": [[["@", "gcc-musl", "", "toolchain"], "gcc"]]}
+}
diff --git a/etc/defaults/CC/test.TARGETS b/etc/defaults/CC/test.TARGETS
new file mode 100644
index 0000000..76dc47d
--- /dev/null
+++ b/etc/defaults/CC/test.TARGETS
@@ -0,0 +1,3 @@
+{ "defaults":
+ {"type": ["CC", "defaults"], "base": [["@", "toolchain", "CC", "defaults"]]}
+}