Skip to content

Commit 43c1f54

Browse files
luismarquesimphil
authored andcommitted
Add GCC bitmanip patch
Adds the patch and updates the documentation.
1 parent 1db1332 commit 43c1f54

File tree

3 files changed

+1802
-3
lines changed

3 files changed

+1802
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,22 @@ How to do a release
4747
How to generate the bitmanip patches
4848
------------------------------------
4949

50-
1. Generate the binutils patch.
50+
1. Generate the binutils patch:
5151

5252
```
5353
git clone https://github.com/riscv/riscv-binutils-gdb.git
5454
cd riscv-binutils-gdb
5555
git checkout riscv-bitmanip
56-
git diff 612aac65 > 001-bitmanip.patch # 612aac65 is our upstream baseline
56+
# 612aac65 is our upstream baseline
57+
git diff 612aac65 > $TOP/patches/binutils/git-612aac65/001-bitmanip.patch
5758
```
5859

59-
2. Generate the GCC patch: TODO.
60+
2. Generate the GCC patch:
61+
62+
```
63+
git clone https://github.com/riscv/riscv-gcc.git
64+
cd riscv-gcc
65+
git checkout riscv-bitmanip
66+
# 49f75e008c0 is our upstream baseline
67+
git diff 49f75e008c0 > $TOP/patches/gcc/git-49f75e00/001-bitmanip.patch
68+
```

lowrisc-toolchain-gcc-rv32imc.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@ CT_BINUTILS_DEVEL_VCS_git=y
3434
CT_BINUTILS_DEVEL_URL="https://github.com/bminor/binutils-gdb.git"
3535
CT_BINUTILS_DEVEL_REVISION="612aac65e690387c963c34a31dd1fb138d88a45c"
3636

37+
# We apply the gcc bitmanip patches on top of git commit 49f75e008c0
38+
CT_GCC_SRC_DEVEL=y
39+
CT_GCC_DEVEL_VCS_git=y
40+
CT_GCC_DEVEL_URL="https://github.com/riscv/riscv-gcc.git"
41+
CT_GCC_DEVEL_REVISION="49f75e008c0809eb3c74a163297b4aa8925c9f1c"
42+
3743
# The build script appends a definition of CT_LOCAL_PATCH_DIR down here, that
3844
# points to the repo's patch directory.

0 commit comments

Comments
 (0)