Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ on:
description: "Languages list"
type: string
default: '[""]'
report:
description: "Generate build report"
type: boolean
default: true
sim:
description: "Simulator"
type: string
Expand Down Expand Up @@ -63,6 +67,7 @@ jobs:
echo "Target list: ${{ inputs.target }}"
echo "Compiler list: ${{ inputs.compiler }}"
echo "C model list: ${{ inputs.cmodel }}"
echo "Report: ${{ inputs.report }}"
echo "Languages list: ${{ inputs.languages }}"
echo "Simulator: ${{ inputs.sim }}"

Expand Down Expand Up @@ -111,6 +116,8 @@ jobs:
sim: ${{ fromJSON(inputs.sim) }}
cmodel: ${{ fromJSON(inputs.cmodel) }}
languages: ${{ fromJSON(inputs.languages) }}
report:
- ${{ inputs.report }}

exclude:
- mode: musl
Expand Down Expand Up @@ -167,6 +174,7 @@ jobs:
matrix.os == 'ubuntu-24.04'
&& (matrix.mode == 'linux' || matrix.mode == 'newlib')
&& matrix.compiler == 'gcc'
&& matrix.report == true
run: |
make report-${{ matrix.mode }} -j $(nproc)

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ on:
workflow_dispatch:
push:
branches:
- master
- et # change back to `master` after upstreaming
pull_request:
branches:
- master
- et # change back to `master` after upstreaming

jobs:
build:
uses: ./.github/workflows/build-reusable.yaml
with:
artifact-name: build
target: '["rv64imfc-lp64f"]'
os: '["ubuntu-24.04"]'
mode: '["newlib"]'
cmodel: '["medany"]'
languages: '["c,c++"]'
report: false

test-sim:
# disable until upstreamed
if: ${{ false }}
uses: ./.github/workflows/build-reusable.yaml
with:
artifact-name: sim
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
needs: [activity-check]
if: needs.activity-check.outputs.stale != 'true'
uses: ./.github/workflows/build-reusable.yaml
with:
target: '["rv64imfc-lp64f"]'
os: '["ubuntu-24.04"]'
mode: '["newlib"]'
cmodel: '["medany"]'
languages: '["c,c++"]'
report: false

create-release:
needs: [build]
Expand Down
18 changes: 8 additions & 10 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Some of the external git repos are not upstream servers but upstream clones to
# avoid "Server does not allow request for unadvertised object" errors (see
# #1654).
[submodule "binutils"]
path = binutils
url = https://github.com/bminor/binutils-gdb.git
branch = binutils-2_45-branch
shallow = true
[submodule "gcc"]
path = gcc
url = https://github.com/gcc-mirror/gcc.git
Expand All @@ -25,11 +20,6 @@
url = https://github.com/bminor/newlib.git
branch = master
shallow = true
[submodule "gdb"]
path = gdb
url = https://github.com/bminor/binutils-gdb.git
branch = gdb-16-branch
shallow = true
[submodule "qemu"]
path = qemu
url = https://gitlab.com/qemu-project/qemu.git
Expand Down Expand Up @@ -58,3 +48,11 @@
path = uclibc-ng
url = https://github.com/wbx-github/uclibc-ng.git
shallow = true
[submodule "binutils"]
path = binutils
url = https://github.com/aifoundry-org/binutils-gdb.git
branch = et
[submodule "gdb"]
path = gdb
url = https://github.com/aifoundry-org/binutils-gdb.git
branch = et
14 changes: 14 additions & 0 deletions aifoundry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# RISCV Toolchain for ETSOC1

This repository contains the toolchain for the ETSOC1 chip.

To build:

$ ./configure --prefix=/opt/et --with-arch=rv64imfc --with-abi=lp64f \
--with-languages=c,c++ --with-cmodel=medany
$ make -j $(nproc)

As per main README, Ubuntu dependencies are as following:

$ sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip python3-tomli libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev

2 changes: 1 addition & 1 deletion gdb
Submodule gdb updated 12516 files