summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-11-20 07:34:48 (GMT)
committerAlexey Neyman <stilor@att.net>2018-11-28 08:30:10 (GMT)
commit172308cb1be5b23c816c19d0b9c84ba4910cbe80 (patch)
tree90fb6fe4206ba0c70a38d8c1c73931f58413d01e /scripts
parentda76ae3ea3ba523223fe61b3b40974254a389141 (diff)
Add moxie architecture
and a moxie-unknown-elf target (which is what #1088 apparently wanted). Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/arch/moxie.sh7
-rw-r--r--scripts/build/kernel/windows.sh1
-rw-r--r--scripts/functions15
3 files changed, 17 insertions, 6 deletions
diff --git a/scripts/build/arch/moxie.sh b/scripts/build/arch/moxie.sh
new file mode 100644
index 0000000..91a9969
--- /dev/null
+++ b/scripts/build/arch/moxie.sh
@@ -0,0 +1,7 @@
+# Moxie-specific arch callbacks
+
+# No arch-specific overrides yet
+CT_DoArchTupleValues()
+{
+ :
+}
diff --git a/scripts/build/kernel/windows.sh b/scripts/build/kernel/windows.sh
index 5e34420..7d6266c 100644
--- a/scripts/build/kernel/windows.sh
+++ b/scripts/build/kernel/windows.sh
@@ -6,7 +6,6 @@ CT_DoKernelTupleValues() {
# Even we compile for x86_64 target architecture, the target OS have to
# bet mingw32 (require by gcc and mingw-w64)
CT_TARGET_KERNEL="mingw32"
- CT_TARGET_SYS=
}
do_kernel_get() {
diff --git a/scripts/functions b/scripts/functions
index 973ba3f..65a74c2 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1091,16 +1091,21 @@ CT_DoBuildTargetTuple() {
# Set defaults for the system part of the tuple. Can be overriden
# by architecture-specific values.
case "${CT_LIBC}" in
- *glibc) CT_TARGET_SYS=gnu;;
- uClibc) CT_TARGET_SYS=uclibc;;
- musl) CT_TARGET_SYS=musl;;
+ glibc) CT_TARGET_SYS=gnu;;
+ uClibc) CT_TARGET_SYS=uclibc;;
+ musl) CT_TARGET_SYS=musl;;
bionic) CT_TARGET_SYS=android;;
avr-libc)
# avr-libc only seems to work with the non-canonical "avr" target.
CT_TARGET_SKIP_CONFIG_SUB=y
CT_TARGET_SYS= # CT_TARGET_SYS must be empty too
- ;;
- *) CT_TARGET_SYS=elf;;
+ ;;
+ none|newlib)
+ CT_TARGET_SYS=elf
+ ;;
+ *)
+ CT_TARGET_SYS= # Keep empty for the libraries like mingw
+ ;;
esac
# Set the default values for ARCH, ABI, CPU, TUNE, FPU and FLOAT