Skip to content

Commit 882af42

Browse files
committed
Change project name
1 parent 06073c2 commit 882af42

5 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
path: |
2626
/tmp/x86_64-linux-gnu.tar.xz
2727
/tmp/x86_64-linux-gnu.tar.xz.sha256
28-
- name: Build Dakini
28+
- name: Build netbsd-gcc-cross
2929
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
3030
run: |
3131
bash './build.sh' 'native'
@@ -51,7 +51,7 @@ jobs:
5151
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
5252
run: |
5353
declare tarball_filename='/tmp/x86_64-linux-gnu.tar.xz'
54-
tar --directory='/tmp' --create --file=- 'dakini' | xz --threads='0' --compress -9 > "${tarball_filename}"
54+
tar --directory='/tmp' --create --file=- 'netbsd-gcc-cross' | xz --threads='0' --compress -9 > "${tarball_filename}"
5555
sha256sum "${tarball_filename}" | sed 's|/tmp/||' > "${tarball_filename}.sha256"
5656
- name: Upload artifact
5757
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
@@ -136,8 +136,8 @@ jobs:
136136
- name: Setup toolchain
137137
run: |
138138
tar --directory='/tmp' --extract --file='/tmp/x86_64-linux-gnu.tar.xz'
139-
mv '/tmp/dakini' '/tmp/dakini-toolchain'
140-
- name: Cross-compile Dakini to ${{ matrix.target }}
139+
mv '/tmp/netbsd-gcc-cross' '/tmp/netbsd-gcc-cross-toolchain'
140+
- name: Cross-compile netbsd-gcc-cross to ${{ matrix.target }}
141141
run: |
142142
source './tools/setup_toolchain.sh'
143143
@@ -170,24 +170,24 @@ jobs:
170170
elif [[ '${{ matrix.target }}' = *'-freebsd' ]]; then
171171
declare -r LOKI_TAG='gcc-15'
172172
declare -r LOKI_TARBALL='/tmp/toolchain.tar.xz'
173-
declare -r LOKI_URL="https://github.com/AmanoTeam/Loki/releases/download/${LOKI_TAG}/x86_64-unknown-linux-gnu.tar.xz"
173+
declare -r LOKI_URL="https://github.com/AmanoTeam/freebsd-gcc-cross/releases/download/${LOKI_TAG}/x86_64-unknown-linux-gnu.tar.xz"
174174
175175
curl --silent --connect-timeout '10' --retry '15' --retry-all-errors --fail --location --url "${LOKI_URL}" --output "${LOKI_TARBALL}"
176176
tar --directory="$(dirname "${LOKI_TARBALL}")" --extract --file="${LOKI_TARBALL}"
177177
178-
export LOKI_HOME='/tmp/loki'
178+
export LOKI_HOME='/tmp/freebsd-gcc-cross'
179179
export PATH="${LOKI_HOME}/bin:${PATH}"
180180
181181
source "${LOKI_HOME}/build/autotools/${{ matrix.target }}.sh"
182182
elif [[ '${{ matrix.target }}' = *'-netbsd'* ]]; then
183183
# declare -r DAKINI_TAG='gcc-15'
184184
# declare -r DAKINI_TARBALL='/tmp/toolchain.tar.xz'
185-
# declare -r DAKINI_URL="https://github.com/AmanoTeam/Dakini/releases/download/${DAKINI_TAG}/x86_64-unknown-linux-gnu.tar.xz"
185+
# declare -r DAKINI_URL="https://github.com/AmanoTeam/netbsd-gcc-cross/releases/download/${DAKINI_TAG}/x86_64-unknown-linux-gnu.tar.xz"
186186
187187
# curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${DAKINI_URL}" --output "${DAKINI_TARBALL}"
188188
# tar --directory="$(dirname "${DAKINI_TARBALL}")" --extract --file="${DAKINI_TARBALL}"
189189
190-
# export DAKINI_HOME='/tmp/dakini'
190+
# export DAKINI_HOME='/tmp/netbsd-gcc-cross'
191191
export PATH="${DAKINI_HOME}/bin:${PATH}"
192192
193193
source "${DAKINI_HOME}/build/autotools/${{ matrix.target }}.sh"
@@ -235,7 +235,7 @@ jobs:
235235
--url 'https://raw.githubusercontent.com/AmanoTeam/OSXCross-Builds/refs/heads/master/main.sh' \
236236
| bash -s -- install
237237
238-
export DARWIN_HOME='/tmp/darwin'
238+
export DARWIN_HOME='/tmp/darwin-clang-cross'
239239
export PATH="${DARWIN_HOME}/bin:${PATH}"
240240
241241
source "${DARWIN_HOME}/build/autotools/${{ matrix.target }}.sh"
@@ -245,7 +245,7 @@ jobs:
245245
- name: Generate tarball
246246
run: |
247247
declare tarball_filename='/tmp/${{ matrix.target }}.tar.xz'
248-
tar --directory='/tmp' --create --file=- 'dakini' | xz --memlimit-compress='100%' --extreme --threads='0' --compress -9 > "${tarball_filename}"
248+
tar --directory='/tmp' --create --file=- 'netbsd-gcc-cross' | xz --memlimit-compress='100%' --extreme --threads='0' --compress -9 > "${tarball_filename}"
249249
sha256sum "${tarball_filename}" | sed 's|/tmp/||' > "${tarball_filename}.sha256"
250250
- name: Upload artifact
251251
uses: actions/upload-artifact@main

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ This is a GCC cross-compiler targeting NetBSD. It uses the patchset from NetBSD
77
The current release is based on GCC 15 and supports cross-compiling for the `x86`, `x86_64`, and `aarch64` targets. The toolchain includes support for the C and C++ frontends.
88

99
You can download the prebuilt toolchains from the [releases](https://github.com/AmanoTeam/Dakini/releases) page.
10+
11+
## disclaimer
12+
13+
NetBSD is a registered trademark of The NetBSD Foundation. This project is an independent open-source effort and is not affiliated with or endorsed by The NetBSD Foundation.

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ declare -r revision="$(git rev-parse --short HEAD)"
66

77
declare -r workdir="${PWD}"
88

9-
declare -r toolchain_directory='/tmp/dakini'
10-
declare -r share_directory="${toolchain_directory}/usr/local/share/dakini"
9+
declare -r toolchain_directory='/tmp/netbsd-gcc-cross'
10+
declare -r share_directory="${toolchain_directory}/usr/local/share/netbsd-gcc-cross"
1111

1212
declare -r environment="LD_LIBRARY_PATH=${toolchain_directory}/lib PATH=${PATH}:${toolchain_directory}/bin"
1313

submodules/obggcc

Submodule obggcc updated 367 files

tools/setup_toolchain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
declare -r DAKINI_HOME='/tmp/dakini-toolchain'
5+
declare -r DAKINI_HOME='/tmp/netbsd-gcc-cross-toolchain'
66

77
if [ -d "${DAKINI_HOME}" ]; then
88
PATH+=":${DAKINI_HOME}/bin"
@@ -20,7 +20,7 @@ tar --directory="$(dirname "${DAKINI_CROSS_TARBALL}")" --extract --file="${DAKIN
2020

2121
rm "${DAKINI_CROSS_TARBALL}"
2222

23-
mv '/tmp/dakini' "${DAKINI_HOME}"
23+
mv '/tmp/netbsd-gcc-cross' "${DAKINI_HOME}"
2424

2525
PATH+=":${DAKINI_HOME}/bin"
2626

0 commit comments

Comments
 (0)