This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compilers_generic_null: Fast turn-around project to test cross compil…
…er build issues
- Loading branch information
1 parent
c6f0ba7
commit d80235b
Showing
19 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "activating binutils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "activating g++" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "activating gcc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "activating gfortran" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
exit 0 |
3 changes: 3 additions & 0 deletions
3
cross-compilers/compilers_generic_null/deactivate-binutils.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "deactivating binutils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "deactivating g++" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
3
cross-compilers/compilers_generic_null/deactivate-gfortran.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "deactivating gfortran" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
cross-compilers/compilers_generic_null/install-libgfortran.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |