about summary refs log tree commit diff homepage
path: root/scripts/build/v-uclibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/v-uclibc.inc')
-rw-r--r--scripts/build/v-uclibc.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/build/v-uclibc.inc b/scripts/build/v-uclibc.inc
new file mode 100644
index 00000000..e7a2f720
--- /dev/null
+++ b/scripts/build/v-uclibc.inc
@@ -0,0 +1,17 @@
+required_variables_uclibc=(
+  "UCLIBC_VERSION"
+  "LLVM_VERSION"
+)
+
+artifact_dependency_uclibc(){
+  # Add llvm if needed; otherwise only use clang package
+# TODO this is quite distribution specific; should be handled in a more general case
+  local LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}"
+  local LLVM_VERSION_MINOR="${LLVM_VERSION/*./}"
+  # Check versions: no support for LLVM < 3.5
+  if [[ "${LLVM_VERSION_MAJOR}" -eq 3 ]]; then
+    [[ "${LLVM_VERSION_MINOR}" -lt 5 ]] && echo "llvm"
+  fi
+
+  echo "clang"
+}
\ No newline at end of file