summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/arm-cortex_a15-linux-gnueabihf/crosstool.config (renamed from samples/arm-cortex_a15-linux-gnueabi/crosstool.config)0
-rw-r--r--samples/arm-cortex_a15-linux-gnueabihf/reported.by (renamed from samples/arm-cortex_a15-linux-gnueabi/reported.by)0
-rw-r--r--samples/arm-multilib-linux-uclibcgnueabi/crosstool.config18
-rw-r--r--samples/arm-multilib-linux-uclibcgnueabi/reported.by3
-rw-r--r--samples/mips64el-multilib-linux-uclibc/crosstool.config (renamed from samples/mips64el-n64-linux-uclibc/crosstool.config)4
-rw-r--r--samples/mips64el-multilib-linux-uclibc/reported.by3
-rw-r--r--samples/mips64el-n32-linux-uclibc/reported.by3
-rw-r--r--samples/mips64el-n64-linux-uclibc/reported.by3
-rw-r--r--samples/mipsel-multilib-linux-gnu/crosstool.config20
-rw-r--r--samples/mipsel-multilib-linux-gnu/reported.by3
-rw-r--r--samples/powerpc64-multilib-linux-gnu/crosstool.config (renamed from samples/mips64el-n32-linux-uclibc/crosstool.config)13
-rw-r--r--samples/powerpc64-multilib-linux-gnu/reported.by3
-rw-r--r--samples/samples.mk4
-rw-r--r--samples/sh4-multilib-linux-gnu/crosstool.config13
-rw-r--r--samples/sh4-multilib-linux-gnu/reported.by3
-rw-r--r--samples/sh4-multilib-linux-uclibc/crosstool.config14
-rw-r--r--samples/sh4-multilib-linux-uclibc/reported.by3
-rw-r--r--samples/sparc64-multilib-linux-gnu/crosstool.config8
-rw-r--r--samples/sparc64-multilib-linux-gnu/reported.by3
-rw-r--r--samples/x86_64-multilib-linux-gnu/crosstool.config17
-rw-r--r--samples/x86_64-multilib-linux-gnu/reported.by3
-rw-r--r--samples/x86_64-multilib-linux-musl/crosstool.config19
-rw-r--r--samples/x86_64-multilib-linux-musl/reported.by3
-rw-r--r--samples/x86_64-multilib-linux-uclibc/crosstool.config20
-rw-r--r--samples/x86_64-multilib-linux-uclibc/reported.by3
25 files changed, 170 insertions, 16 deletions
diff --git a/samples/arm-cortex_a15-linux-gnueabi/crosstool.config b/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config
index b625116..b625116 100644
--- a/samples/arm-cortex_a15-linux-gnueabi/crosstool.config
+++ b/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config
diff --git a/samples/arm-cortex_a15-linux-gnueabi/reported.by b/samples/arm-cortex_a15-linux-gnueabihf/reported.by
index 3e05b5a..3e05b5a 100644
--- a/samples/arm-cortex_a15-linux-gnueabi/reported.by
+++ b/samples/arm-cortex_a15-linux-gnueabihf/reported.by
diff --git a/samples/arm-multilib-linux-uclibcgnueabi/crosstool.config b/samples/arm-multilib-linux-uclibcgnueabi/crosstool.config
new file mode 100644
index 0000000..b9fcb42
--- /dev/null
+++ b/samples/arm-multilib-linux-uclibcgnueabi/crosstool.config
@@ -0,0 +1,18 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_FLOAT_SW=y
+CT_ARCH_arm=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+CT_BINUTILS_LINKER_LD_GOLD=y
+CT_BINUTILS_GOLD_THREADS=y
+CT_BINUTILS_LD_WRAPPER=y
+CT_BINUTILS_PLUGINS=y
+CT_LIBC_uClibc=y
+CT_THREADS_NONE=y
+CT_CC_GCC_MULTILIB_LIST="aprofile"
+CT_DEBUG_dmalloc=y
+CT_DEBUG_ltrace=y
+CT_DEBUG_strace=y
diff --git a/samples/arm-multilib-linux-uclibcgnueabi/reported.by b/samples/arm-multilib-linux-uclibcgnueabi/reported.by
new file mode 100644
index 0000000..b876cab
--- /dev/null
+++ b/samples/arm-multilib-linux-uclibcgnueabi/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for ARM/uClibc-ng."
diff --git a/samples/mips64el-n64-linux-uclibc/crosstool.config b/samples/mips64el-multilib-linux-uclibc/crosstool.config
index 2853ccb..bced5d1 100644
--- a/samples/mips64el-n64-linux-uclibc/crosstool.config
+++ b/samples/mips64el-multilib-linux-uclibc/crosstool.config
@@ -5,8 +5,8 @@ CT_ARCH_LE=y
CT_ARCH_64=y
CT_ARCH_FLOAT_SW=y
CT_ARCH_mips=y
-CT_ARCH_mips_n64=y
-CT_TARGET_VENDOR="n64"
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
CT_KERNEL_linux=y
CT_BINUTILS_PLUGINS=y
CT_LIBC_uClibc=y
diff --git a/samples/mips64el-multilib-linux-uclibc/reported.by b/samples/mips64el-multilib-linux-uclibc/reported.by
new file mode 100644
index 0000000..023996f
--- /dev/null
+++ b/samples/mips64el-multilib-linux-uclibc/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for MIPS/uClibc-ng."
diff --git a/samples/mips64el-n32-linux-uclibc/reported.by b/samples/mips64el-n32-linux-uclibc/reported.by
deleted file mode 100644
index bdc66ad..0000000
--- a/samples/mips64el-n32-linux-uclibc/reported.by
+++ /dev/null
@@ -1,3 +0,0 @@
-reporter_name="Yann E. MORIN"
-reporter_url="http://ymorin.is-a-geek.org/projects/crosstool"
-reporter_comment="EXPERIMENTAL MIPS-64 n32 toolchain."
diff --git a/samples/mips64el-n64-linux-uclibc/reported.by b/samples/mips64el-n64-linux-uclibc/reported.by
deleted file mode 100644
index b8e8268..0000000
--- a/samples/mips64el-n64-linux-uclibc/reported.by
+++ /dev/null
@@ -1,3 +0,0 @@
-reporter_name="Yann E. MORIN"
-reporter_url="http://ymorin.is-a-geek.org/projects/crosstool"
-reporter_comment="EXPERIMENTAL MIPS-64 n64 toolchain."
diff --git a/samples/mipsel-multilib-linux-gnu/crosstool.config b/samples/mipsel-multilib-linux-gnu/crosstool.config
new file mode 100644
index 0000000..fa54b08
--- /dev/null
+++ b/samples/mipsel-multilib-linux-gnu/crosstool.config
@@ -0,0 +1,20 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_LE=y
+CT_ARCH_FLOAT_SW=y
+CT_ARCH_mips=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+CT_BINUTILS_PLUGINS=y
+CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-targets=all"
+CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-targets=all"
+CT_CC_GCC_mips_plt=y
+CT_CC_LANG_CXX=y
+CT_DEBUG_dmalloc=y
+CT_DEBUG_duma=y
+CT_DEBUG_gdb=y
+# CT_GDB_CROSS_PYTHON is not set
+CT_GDB_NATIVE=y
+CT_DEBUG_strace=y
diff --git a/samples/mipsel-multilib-linux-gnu/reported.by b/samples/mipsel-multilib-linux-gnu/reported.by
new file mode 100644
index 0000000..a0eb574
--- /dev/null
+++ b/samples/mipsel-multilib-linux-gnu/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for MIPS/glibc."
diff --git a/samples/mips64el-n32-linux-uclibc/crosstool.config b/samples/powerpc64-multilib-linux-gnu/crosstool.config
index 0f61616..71d2f78 100644
--- a/samples/mips64el-n32-linux-uclibc/crosstool.config
+++ b/samples/powerpc64-multilib-linux-gnu/crosstool.config
@@ -1,14 +1,13 @@
CT_LOCAL_TARBALLS_DIR="${HOME}/src"
CT_SAVE_TARBALLS=y
CT_LOG_EXTRA=y
-CT_ARCH_LE=y
CT_ARCH_64=y
-CT_ARCH_FLOAT_SW=y
-CT_ARCH_mips=y
-CT_TARGET_VENDOR="n32"
+CT_ARCH_powerpc=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
CT_KERNEL_linux=y
CT_BINUTILS_PLUGINS=y
-CT_LIBC_uClibc=y
-CT_LIBC_UCLIBC_WCHAR=y
-CT_CC_GCC_mips_plt=y
CT_CC_LANG_CXX=y
+CT_DEBUG_gdb=y
+# CT_GDB_CROSS_PYTHON is not set
+CT_GDB_NATIVE=y
diff --git a/samples/powerpc64-multilib-linux-gnu/reported.by b/samples/powerpc64-multilib-linux-gnu/reported.by
new file mode 100644
index 0000000..b5909d6
--- /dev/null
+++ b/samples/powerpc64-multilib-linux-gnu/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for PowerPC/glibc."
diff --git a/samples/samples.mk b/samples/samples.mk
index 643e595..bf51135 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -186,6 +186,7 @@ $(CT_SAMPLES): config_files
__comma = ,
prefix_dir = $(CT_PREFIX)/$(subst $(__comma),=,$(1))
host_triplet = $(if $(findstring $(__comma),$(1)),$(firstword $(subst $(__comma), ,$(1))))
+target_triplet = $(if $(findstring $(__comma),$(1)),$(word 2,$(subst $(__comma), ,$(1))),$(1))
# Create the rule to build a sample
# $1: sample name (target tuple, or host/target tuples separated by a comma)
@@ -212,7 +213,8 @@ define build_sample
fi; \
printf '\r %-5s %s\n' $$status '$(1)'; \
mkdir -p .build-all/$$status/$(1); \
- bzip2 < build.log > .build-all/$$status/$(1)/build.log.bz2
+ bzip2 < build.log > .build-all/$$status/$(1)/build.log.bz2; \
+ [ "$$status" = PASS -a -z "$(CT_PRESERVE_PASSED_BUILDS)" ] && rm -rf .build/$(call target_triplet,$(1)) || :
endef
# ----------------------------------------------------------
diff --git a/samples/sh4-multilib-linux-gnu/crosstool.config b/samples/sh4-multilib-linux-gnu/crosstool.config
new file mode 100644
index 0000000..cb2d3b7
--- /dev/null
+++ b/samples/sh4-multilib-linux-gnu/crosstool.config
@@ -0,0 +1,13 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_sh=y
+CT_ARCH_SH_SH4=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+CT_BINUTILS_PLUGINS=y
+CT_CC_GCC_V_4_9_3=y
+CT_CC_GCC_MULTILIB_LIST="m4,m4a"
+CT_CC_LANG_CXX=y
+CT_DEBUG_gdb=y
+# CT_GDB_CROSS_PYTHON is not set
diff --git a/samples/sh4-multilib-linux-gnu/reported.by b/samples/sh4-multilib-linux-gnu/reported.by
new file mode 100644
index 0000000..f03f2c5
--- /dev/null
+++ b/samples/sh4-multilib-linux-gnu/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for SuperH/glibc."
diff --git a/samples/sh4-multilib-linux-uclibc/crosstool.config b/samples/sh4-multilib-linux-uclibc/crosstool.config
new file mode 100644
index 0000000..e634521
--- /dev/null
+++ b/samples/sh4-multilib-linux-uclibc/crosstool.config
@@ -0,0 +1,14 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_sh=y
+CT_ARCH_SH_SH4=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+CT_BINUTILS_PLUGINS=y
+CT_LIBC_uClibc=y
+CT_CC_GCC_V_4_9_3=y
+CT_CC_GCC_MULTILIB_LIST="m4,m4a,m3"
+CT_CC_LANG_CXX=y
+CT_DEBUG_gdb=y
+# CT_GDB_CROSS_PYTHON is not set
diff --git a/samples/sh4-multilib-linux-uclibc/reported.by b/samples/sh4-multilib-linux-uclibc/reported.by
new file mode 100644
index 0000000..2d3a629
--- /dev/null
+++ b/samples/sh4-multilib-linux-uclibc/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for SuperH/uClibc."
diff --git a/samples/sparc64-multilib-linux-gnu/crosstool.config b/samples/sparc64-multilib-linux-gnu/crosstool.config
new file mode 100644
index 0000000..c9b89cf
--- /dev/null
+++ b/samples/sparc64-multilib-linux-gnu/crosstool.config
@@ -0,0 +1,8 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_64=y
+CT_ARCH_sparc=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
diff --git a/samples/sparc64-multilib-linux-gnu/reported.by b/samples/sparc64-multilib-linux-gnu/reported.by
new file mode 100644
index 0000000..8ef2217
--- /dev/null
+++ b/samples/sparc64-multilib-linux-gnu/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for SPARC/glibc."
diff --git a/samples/x86_64-multilib-linux-gnu/crosstool.config b/samples/x86_64-multilib-linux-gnu/crosstool.config
new file mode 100644
index 0000000..b6663e8
--- /dev/null
+++ b/samples/x86_64-multilib-linux-gnu/crosstool.config
@@ -0,0 +1,17 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_64=y
+CT_ARCH_x86=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+CT_BINUTILS_LINKER_LD_GOLD=y
+CT_BINUTILS_GOLD_THREADS=y
+CT_BINUTILS_LD_WRAPPER=y
+CT_BINUTILS_PLUGINS=y
+CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y
+CT_CC_GCC_MULTILIB_LIST="m64,m32,mx32"
+CT_CC_GCC_LNK_HASH_STYLE_BOTH=y
+CT_CC_LANG_CXX=y
+CT_DEBUG_gdb=y
diff --git a/samples/x86_64-multilib-linux-gnu/reported.by b/samples/x86_64-multilib-linux-gnu/reported.by
new file mode 100644
index 0000000..f7441e0
--- /dev/null
+++ b/samples/x86_64-multilib-linux-gnu/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for x86/glibc."
diff --git a/samples/x86_64-multilib-linux-musl/crosstool.config b/samples/x86_64-multilib-linux-musl/crosstool.config
new file mode 100644
index 0000000..c16bd4a
--- /dev/null
+++ b/samples/x86_64-multilib-linux-musl/crosstool.config
@@ -0,0 +1,19 @@
+CT_EXPERIMENTAL=y
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_64=y
+CT_ARCH_x86=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+# CT_KERNEL_LINUX_INSTALL_CHECK is not set
+CT_BINUTILS_LINKER_LD_GOLD=y
+CT_BINUTILS_GOLD_THREADS=y
+CT_BINUTILS_LD_WRAPPER=y
+CT_BINUTILS_PLUGINS=y
+CT_LIBC_musl=y
+CT_CC_LANG_CXX=y
+CT_DEBUG_dmalloc=y
+CT_DEBUG_duma=y
+CT_DEBUG_gdb=y
diff --git a/samples/x86_64-multilib-linux-musl/reported.by b/samples/x86_64-multilib-linux-musl/reported.by
new file mode 100644
index 0000000..0773337
--- /dev/null
+++ b/samples/x86_64-multilib-linux-musl/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for x86/musl."
diff --git a/samples/x86_64-multilib-linux-uclibc/crosstool.config b/samples/x86_64-multilib-linux-uclibc/crosstool.config
new file mode 100644
index 0000000..f28915a
--- /dev/null
+++ b/samples/x86_64-multilib-linux-uclibc/crosstool.config
@@ -0,0 +1,20 @@
+CT_LOCAL_TARBALLS_DIR="${HOME}/src"
+CT_SAVE_TARBALLS=y
+CT_LOG_EXTRA=y
+CT_ARCH_64=y
+CT_ARCH_x86=y
+CT_MULTILIB=y
+CT_TARGET_VENDOR="multilib"
+CT_KERNEL_linux=y
+# CT_KERNEL_LINUX_INSTALL_CHECK is not set
+CT_BINUTILS_LINKER_LD_GOLD=y
+CT_BINUTILS_GOLD_THREADS=y
+CT_BINUTILS_LD_WRAPPER=y
+CT_BINUTILS_PLUGINS=y
+CT_LIBC_uClibc=y
+CT_LIBC_UCLIBC_WCHAR=y
+CT_CC_LANG_CXX=y
+CT_DEBUG_dmalloc=y
+CT_DEBUG_duma=y
+CT_DEBUG_gdb=y
+CT_GDB_NATIVE=y
diff --git a/samples/x86_64-multilib-linux-uclibc/reported.by b/samples/x86_64-multilib-linux-uclibc/reported.by
new file mode 100644
index 0000000..8c22764
--- /dev/null
+++ b/samples/x86_64-multilib-linux-uclibc/reported.by
@@ -0,0 +1,3 @@
+reporter_name="Alexey Neyman"
+reporter_url=""
+reporter_comment="Multilib configuration for x86/uClibc-ng."