-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build all cross-compilers with OBGGCC
- Loading branch information
Showing
7 changed files
with
170 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
[submodule "submodules/obggcc"] | ||
path = submodules/obggcc | ||
url = https://github.com/AmanoTeam/obggcc |
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 |
---|---|---|
@@ -1,7 +1,22 @@ | ||
# n3tbsdcr0ss | ||
# Dakini | ||
|
||
A GCC cross-compiler targeting NetBSD 8.0. | ||
|
||
## Target architectures | ||
|
||
We currently build cross-compilers targeting many NetBSD architectures. See above for more info: | ||
|
||
* `alpha-unknown-netbsd` | ||
* `hppa-unknown-netbsd` | ||
* `i386-unknown-netbsdelf` | ||
* `mips-unknown-netbsd` | ||
* `powerpc-unknown-netbsd` | ||
* `shle-unknown-netbsdelf` | ||
* `sparc-unknown-netbsdelf` | ||
* `sparc64-unknown-netbsd` | ||
* `vax-unknown-netbsdelf` | ||
* `x86_64-unknown-netbsd` | ||
|
||
## Releases | ||
|
||
You can obtain releases from the [releases](https://github.com/AmanoTeam/n3tbsdcr0ss/releases) page. | ||
You can obtain releases from the [releases](https://github.com/AmanoTeam/Dakini/releases) page. |
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
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,39 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
declare -ra targets=( | ||
'alpha-unknown-linux-gnu' | ||
'x86_64-unknown-linux-gnu' | ||
'i386-unknown-linux-gnu' | ||
'arm-unknown-linux-gnueabi' | ||
'arm-unknown-linux-gnueabihf' | ||
'hppa-unknown-linux-gnu' | ||
'aarch64-unknown-linux-gnu' | ||
'mips-unknown-linux-gnu' | ||
'mipsel-unknown-linux-gnu' | ||
'powerpc-unknown-linux-gnu' | ||
's390-unknown-linux-gnu' | ||
's390x-unknown-linux-gnu' | ||
'sparc-unknown-linux-gnu' | ||
'powerpc64le-unknown-linux-gnu' | ||
'mips64el-unknown-linux-gnuabi64' | ||
) | ||
|
||
declare -r tarballs_directory="${PWD}/dakini-tarballs" | ||
|
||
[ -d "${tarballs_directory}" ] || mkdir "${tarballs_directory}" | ||
|
||
source './tools/setup_toolchain.sh' | ||
source './submodules/obggcc/tools/setup_toolchain.sh' | ||
|
||
for target in "${targets[@]}"; do | ||
bash './build.sh' "${target}" | ||
|
||
declare tarball_filename="${tarballs_directory}/${target}.tar.xz" | ||
|
||
tar --directory='/tmp' --create --file=- 'dakini' | xz --threads=0 --compress -9 > "${tarball_filename}" | ||
sha256sum "${tarball_filename}" > "${tarball_filename}.sha256" | ||
|
||
rm --recursive --force '/tmp/dakini' | ||
done |
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,28 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
declare -r DAKINI_HOME='/tmp/dakini-toolchain' | ||
|
||
if [ -d "${DAKINI_HOME}" ]; then | ||
PATH+=":${DAKINI_HOME}/bin" | ||
export DAKINI_HOME \ | ||
PATH | ||
return 0 | ||
fi | ||
|
||
declare -r DAKINI_CROSS_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --retry 10 --retry-delay 3 --silent --url 'https://api.github.com/repos/AmanoTeam/Dakini/releases/latest')")" | ||
declare -r DAKINI_CROSS_TARBALL='/tmp/daiki.tar.xz' | ||
declare -r DAKINI_CROSS_URL="https://github.com/AmanoTeam/Dakini/releases/download/${DAKINI_CROSS_TAG}/x86_64-unknown-linux-gnu.tar.xz" | ||
|
||
curl --retry 10 --retry-delay 3 --silent --location --url "${DAKINI_CROSS_URL}" --output "${DAKINI_CROSS_TARBALL}" | ||
tar --directory="$(dirname "${DAKINI_CROSS_TARBALL}")" --extract --file="${DAKINI_CROSS_TARBALL}" | ||
|
||
rm "${DAKINI_CROSS_TARBALL}" | ||
|
||
mv '/tmp/dakini' "${DAKINI_HOME}" | ||
|
||
PATH+=":${DAKINI_HOME}/bin" | ||
|
||
export DAKINI_HOME \ | ||
PATH |