Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
compilers_generic_null: Fast turn-around project to test cross compil…
Browse files Browse the repository at this point in the history
…er build issues
  • Loading branch information
mingwandroid committed Jun 2, 2017
1 parent c6f0ba7 commit d80235b
Show file tree
Hide file tree
Showing 19 changed files with 152 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/activate-binutils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "activating binutils"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/activate-g++.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "activating g++"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/activate-gcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "activating gcc"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/activate-gfortran.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "activating gfortran"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/deactivate-binutils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "deactivating binutils"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/deactivate-g++.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "deactivating g++"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/deactivate-gcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "deactivating gcc"
3 changes: 3 additions & 0 deletions cross-compilers/compilers_generic_null/deactivate-gfortran.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "deactivating gfortran"
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-binutils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "binutils" > $PREFIX/bin/binutils
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-duma.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "duma" > $PREFIX/bin/duma
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-g++.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "g++" > $PREFIX/bin/g++
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-gcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "gcc" > $PREFIX/bin/gcc
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-gdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "binutils" > $PREFIX/bin/binutils
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-gfortran.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/bin ]] || mkdir $PREFIX/bin
echo "binutils" > $PREFIX/bin/binutils
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-libgcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib
echo "libgcc" > $PREFIX/lib/libgcc
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-libgfortran.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib
echo "libgfortran" > $PREFIX/lib/libgfortran
2 changes: 2 additions & 0 deletions cross-compilers/compilers_generic_null/install-libstdc++.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[ -d $PREFIX/lib ]] || mkdir $PREFIX/lib
echo "libstdc++" > $PREFIX/lib/libstdc++
107 changes: 107 additions & 0 deletions cross-compilers/compilers_generic_null/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d80235b

Please sign in to comment.