summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index d80e2fa..829539f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -673,6 +673,7 @@ CT_DoBuildTargetTuple() {
# Set defaults for the system part of the tuple. Can be overriden
# by architecture-specific values.
case "${CT_LIBC}" in
+ none) CT_TARGET_SYS=elf;;
*glibc) CT_TARGET_SYS=gnu;;
uClibc) CT_TARGET_SYS=uclibc;;
esac
@@ -695,9 +696,10 @@ CT_DoBuildTargetTuple() {
# Finish the target tuple construction
case "${CT_KERNEL}" in
- linux*) CT_TARGET_KERNEL=linux;;
+ none) CT_TARGET_KERNEL=;;
+ linux) CT_TARGET_KERNEL=linux-;;
esac
- CT_TARGET=$(CT_DoConfigSub "${CT_TARGET_ARCH}-${CT_TARGET_VENDOR:-unknown}-${CT_TARGET_KERNEL}-${CT_TARGET_SYS}")
+ CT_TARGET=$(CT_DoConfigSub "${CT_TARGET_ARCH}-${CT_TARGET_VENDOR:-unknown}-${CT_TARGET_KERNEL}${CT_TARGET_SYS}")
# Prepare the target CFLAGS
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}"