From d80235b35730388d7e78b6b10c477a52b686f580 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 2 Jun 2017 13:27:42 +0100 Subject: [PATCH] compilers_generic_null: Fast turn-around project to test cross compiler build issues --- .../activate-binutils.sh | 3 + .../compilers_generic_null/activate-g++.sh | 3 + .../compilers_generic_null/activate-gcc.sh | 3 + .../activate-gfortran.sh | 3 + .../compilers_generic_null/build.sh | 3 + .../deactivate-binutils.sh | 3 + .../compilers_generic_null/deactivate-g++.sh | 3 + .../compilers_generic_null/deactivate-gcc.sh | 3 + .../deactivate-gfortran.sh | 3 + .../install-binutils.sh | 2 + .../compilers_generic_null/install-duma.sh | 2 + .../compilers_generic_null/install-g++.sh | 2 + .../compilers_generic_null/install-gcc.sh | 2 + .../compilers_generic_null/install-gdb.sh | 2 + .../install-gfortran.sh | 2 + .../compilers_generic_null/install-libgcc.sh | 2 + .../install-libgfortran.sh | 2 + .../install-libstdc++.sh | 2 + .../compilers_generic_null/meta.yaml | 107 ++++++++++++++++++ 19 files changed, 152 insertions(+) create mode 100644 cross-compilers/compilers_generic_null/activate-binutils.sh create mode 100644 cross-compilers/compilers_generic_null/activate-g++.sh create mode 100644 cross-compilers/compilers_generic_null/activate-gcc.sh create mode 100644 cross-compilers/compilers_generic_null/activate-gfortran.sh create mode 100644 cross-compilers/compilers_generic_null/build.sh create mode 100644 cross-compilers/compilers_generic_null/deactivate-binutils.sh create mode 100644 cross-compilers/compilers_generic_null/deactivate-g++.sh create mode 100644 cross-compilers/compilers_generic_null/deactivate-gcc.sh create mode 100644 cross-compilers/compilers_generic_null/deactivate-gfortran.sh create mode 100644 cross-compilers/compilers_generic_null/install-binutils.sh create mode 100644 cross-compilers/compilers_generic_null/install-duma.sh create mode 100644 cross-compilers/compilers_generic_null/install-g++.sh create mode 100644 cross-compilers/compilers_generic_null/install-gcc.sh create mode 100644 cross-compilers/compilers_generic_null/install-gdb.sh create mode 100644 cross-compilers/compilers_generic_null/install-gfortran.sh create mode 100644 cross-compilers/compilers_generic_null/install-libgcc.sh create mode 100644 cross-compilers/compilers_generic_null/install-libgfortran.sh create mode 100644 cross-compilers/compilers_generic_null/install-libstdc++.sh create mode 100644 cross-compilers/compilers_generic_null/meta.yaml diff --git a/cross-compilers/compilers_generic_null/activate-binutils.sh b/cross-compilers/compilers_generic_null/activate-binutils.sh new file mode 100644 index 000000000..26ae9c0a8 --- /dev/null +++ b/cross-compilers/compilers_generic_null/activate-binutils.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "activating binutils" diff --git a/cross-compilers/compilers_generic_null/activate-g++.sh b/cross-compilers/compilers_generic_null/activate-g++.sh new file mode 100644 index 000000000..21d959ecb --- /dev/null +++ b/cross-compilers/compilers_generic_null/activate-g++.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "activating g++" diff --git a/cross-compilers/compilers_generic_null/activate-gcc.sh b/cross-compilers/compilers_generic_null/activate-gcc.sh new file mode 100644 index 000000000..14d4eb6a9 --- /dev/null +++ b/cross-compilers/compilers_generic_null/activate-gcc.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "activating gcc" diff --git a/cross-compilers/compilers_generic_null/activate-gfortran.sh b/cross-compilers/compilers_generic_null/activate-gfortran.sh new file mode 100644 index 000000000..bef531504 --- /dev/null +++ b/cross-compilers/compilers_generic_null/activate-gfortran.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "activating gfortran" diff --git a/cross-compilers/compilers_generic_null/build.sh b/cross-compilers/compilers_generic_null/build.sh new file mode 100644 index 000000000..8c3cbfc39 --- /dev/null +++ b/cross-compilers/compilers_generic_null/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exit 0 diff --git a/cross-compilers/compilers_generic_null/deactivate-binutils.sh b/cross-compilers/compilers_generic_null/deactivate-binutils.sh new file mode 100644 index 000000000..8cfb8c91c --- /dev/null +++ b/cross-compilers/compilers_generic_null/deactivate-binutils.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "deactivating binutils" diff --git a/cross-compilers/compilers_generic_null/deactivate-g++.sh b/cross-compilers/compilers_generic_null/deactivate-g++.sh new file mode 100644 index 000000000..1e2c9ea82 --- /dev/null +++ b/cross-compilers/compilers_generic_null/deactivate-g++.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "deactivating g++" diff --git a/cross-compilers/compilers_generic_null/deactivate-gcc.sh b/cross-compilers/compilers_generic_null/deactivate-gcc.sh new file mode 100644 index 000000000..ecf8a23a2 --- /dev/null +++ b/cross-compilers/compilers_generic_null/deactivate-gcc.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "deactivating gcc" diff --git a/cross-compilers/compilers_generic_null/deactivate-gfortran.sh b/cross-compilers/compilers_generic_null/deactivate-gfortran.sh new file mode 100644 index 000000000..3141773b9 --- /dev/null +++ b/cross-compilers/compilers_generic_null/deactivate-gfortran.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "deactivating gfortran" diff --git a/cross-compilers/compilers_generic_null/install-binutils.sh b/cross-compilers/compilers_generic_null/install-binutils.sh new file mode 100644 index 000000000..24b3f613d --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-binutils.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "binutils" > $PREFIX/bin/binutils diff --git a/cross-compilers/compilers_generic_null/install-duma.sh b/cross-compilers/compilers_generic_null/install-duma.sh new file mode 100644 index 000000000..a20f65021 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-duma.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "duma" > $PREFIX/bin/duma diff --git a/cross-compilers/compilers_generic_null/install-g++.sh b/cross-compilers/compilers_generic_null/install-g++.sh new file mode 100644 index 000000000..574895237 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-g++.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "g++" > $PREFIX/bin/g++ diff --git a/cross-compilers/compilers_generic_null/install-gcc.sh b/cross-compilers/compilers_generic_null/install-gcc.sh new file mode 100644 index 000000000..6e7ba5835 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-gcc.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "gcc" > $PREFIX/bin/gcc diff --git a/cross-compilers/compilers_generic_null/install-gdb.sh b/cross-compilers/compilers_generic_null/install-gdb.sh new file mode 100644 index 000000000..24b3f613d --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-gdb.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "binutils" > $PREFIX/bin/binutils diff --git a/cross-compilers/compilers_generic_null/install-gfortran.sh b/cross-compilers/compilers_generic_null/install-gfortran.sh new file mode 100644 index 000000000..24b3f613d --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-gfortran.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin +echo "binutils" > $PREFIX/bin/binutils diff --git a/cross-compilers/compilers_generic_null/install-libgcc.sh b/cross-compilers/compilers_generic_null/install-libgcc.sh new file mode 100644 index 000000000..db44ef122 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-libgcc.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib +echo "libgcc" > $PREFIX/lib/libgcc diff --git a/cross-compilers/compilers_generic_null/install-libgfortran.sh b/cross-compilers/compilers_generic_null/install-libgfortran.sh new file mode 100644 index 000000000..4cd97ebf2 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-libgfortran.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib +echo "libgfortran" > $PREFIX/lib/libgfortran diff --git a/cross-compilers/compilers_generic_null/install-libstdc++.sh b/cross-compilers/compilers_generic_null/install-libstdc++.sh new file mode 100644 index 000000000..fcf422997 --- /dev/null +++ b/cross-compilers/compilers_generic_null/install-libstdc++.sh @@ -0,0 +1,2 @@ +[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib +echo "libstdc++" > $PREFIX/lib/libstdc++ diff --git a/cross-compilers/compilers_generic_null/meta.yaml b/cross-compilers/compilers_generic_null/meta.yaml new file mode 100644 index 000000000..53160b1bd --- /dev/null +++ b/cross-compilers/compilers_generic_null/meta.yaml @@ -0,0 +1,107 @@ +package: + name: compilers_{{ cross_target_platform }} + version: {{ gcc }} + +source: + path: . + +build: + detect_binary_files_with_prefix: False + binary_relocation: False + +requirements: + build: + - crosstool-ng + run: + - {{ pin_subpackage('gcc_' ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage('gxx_' ~ cross_target_platform, exact=True) }} + - {{ pin_subpackage('gfortran_' ~ cross_target_platform, exact=True) }} + +outputs: + - name: gcc_{{ cross_target_platform }} + script: install-gcc.sh + requirements: +# build: +# - unifdef + run: + - {{ pin_subpackage('binutils_' ~ cross_target_platform, exact=True) }} + run_exports: + - {{ pin_subpackage('libgcc_' ~ cross_target_platform) }} + about: + summary: GNU C Compiler + home: https://gcc.gnu.org/ + license: GPL + + - name: gxx_{{ cross_target_platform }} + script: install-g++.sh + requirements: + # For cpp and crt{i,n}.o + - {{ pin_subpackage('gcc_' ~ cross_target_platform, exact=True) }} + run_exports: + - {{ pin_subpackage('libstdcxx_' ~ cross_target_platform) }} + about: + summary: GNU C++ Compiler + home: https://gcc.gnu.org/ + license: GPL + + - name: gfortran_{{ cross_target_platform }} + script: install-gfortran.sh + requirements: + # For cpp and crt{i,n}.o + - {{ pin_subpackage('gcc_' ~ cross_target_platform, exact=True) }} + run_exports: + - {{ pin_subpackage('libgfortran_' ~ cross_target_platform) }} + about: + summary: GNU Fortran Compiler + home: https://gcc.gnu.org/ + license: GPL + + - name: binutils_{{ cross_target_platform }} + script: install-binutils.sh + version: {{ binutils }} + about: + summary: The GNU Binutils are a collection of binary tools. + home: https://www.gnu.org/software/binutils/ + license: GPL + + - name: libstdcxx_{{ cross_target_platform }} + target: {{ cross_target_platform }} + script: install-libstdc++.sh + about: + summary: The GNU C++ Runtime Library + home: https://gcc.gnu.org/ + license: GPL3 with runtime exception + + - name: libgcc_{{ cross_target_platform }} + target: {{ cross_target_platform }} + script: install-libgcc.sh + about: + summary: The GCC low-level runtime library + home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html + license: GPL + + - name: libgfortran_{{ cross_target_platform }} + target: {{ cross_target_platform }} + script: install-libgfortran.sh + about: + summary: The GNU Fortran Runtime Library + home: https://gcc.gnu.org/ + license: GPL + + - name: gdb_{{ cross_target_platform }} + target: {{ cross_target_platform }} + version: {{ gdb }} + script: install-gdb.sh + about: + summary: The GNU Project Debugger + home: https://www.gnu.org/software/gdb/ + license: GPL + + - name: duma_{{ cross_target_platform }} + target: {{ cross_target_platform }} + version: {{ duma }} + script: install-duma.sh + about: + summary: DUMA is an open-source library to detect buffer overruns and under-runs in C and C++ programs. + home: http://duma.sourceforge.net/ + license: GPL