Moved toolchain to another repo.
This commit is contained in:
parent
0699b21148
commit
8ddf4f9935
48
.github/workflows/build-bm-toolchain.yaml
vendored
48
.github/workflows/build-bm-toolchain.yaml
vendored
|
@ -1,48 +0,0 @@
|
|||
name: "Build baremetal toolchain"
|
||||
on: ["push"]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v3"
|
||||
with:
|
||||
repository: "crosstool-ng/crosstool-ng"
|
||||
path: "ct_ng"
|
||||
- uses: "actions/checkout@v3"
|
||||
with:
|
||||
path: "meta"
|
||||
- name: "ct-ng dependencies"
|
||||
run: |
|
||||
sudo apt-get install -y gperf help2man libtool-bin meson ninja-build
|
||||
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
|
||||
- name: "Build ct-ng"
|
||||
working-directory: "ct_ng"
|
||||
run: "./bootstrap && ./configure --prefix=${{ github.workspace }}/.local && make && make install"
|
||||
- name: "Create build environment"
|
||||
run: "mkdir -p build/tarballs && cp meta/Crosstool-NG/defconfig build/defconfig"
|
||||
- name: "Patch defconfig & configure build"
|
||||
working-directory: "build"
|
||||
run: |
|
||||
echo CT_LOCAL_TARBALLS_DIR=\"${{ github.workspace }}/build/tarballs\" >> defconfig
|
||||
echo CT_PREFIX_DIR=\"\${CT_TOP_DIR}/\${CT_HOST:+HOST-${CT_HOST}/}\${CT_TARGET}\" >> defconfig
|
||||
echo CT_LOG_PROGRESS_BAR=n >> defconfig
|
||||
ct-ng defconfig
|
||||
- name: "Tarball cache management"
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "build/tarballs"
|
||||
key: ${{ runner.os }}-ct-ng-tarballs
|
||||
- name: "Build toolchain"
|
||||
working-directory: "build"
|
||||
run: "ct-ng build"
|
||||
- name: "Create toolchain archive"
|
||||
working-directory: "build"
|
||||
run: "tar -cvzf sh-unknown-elf-${{ github.sha }}.tar.gz sh-unknown-elf"
|
||||
- name: "Publish artifact"
|
||||
uses: "actions/upload-artifact@v3"
|
||||
with:
|
||||
name: "toolchain archive"
|
||||
path: |
|
||||
build/sh-unknown-elf-${{ github.sha }}.tar.gz
|
||||
build/build.log
|
||||
retention-days: 30
|
|
@ -1,16 +0,0 @@
|
|||
CT_CONFIG_VERSION="4"
|
||||
CT_ARCH_SH=y
|
||||
CT_ARCH_LE_BE=y
|
||||
CT_STATIC_TOOLCHAIN=y
|
||||
CT_BINUTILS_PLUGINS=y
|
||||
CT_LIBC_NEWLIB_IO_LL=y
|
||||
CT_LIBC_NEWLIB_IO_FLOAT=y
|
||||
CT_LIBC_NEWLIB_IO_LDBL=y
|
||||
CT_LIBC_NEWLIB_IO_POS_ARGS=y
|
||||
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
|
||||
CT_LIBC_NEWLIB_EXTRA_SECTIONS=y
|
||||
CT_CC_LANG_CXX=y
|
||||
CT_DEBUG_GDB=y
|
||||
CT_COMP_LIBS_NEWLIB_NANO=y
|
||||
CT_LIBC_NEWLIB_NANO_DISABLE_SUPPLIED_SYSCALLS=y
|
||||
CT_LIBC_NEWLIB_NANO_EXTRA_SECTIONS=y
|
Loading…
Reference in New Issue
Block a user