Skip to content

Commit

Permalink
Add GCC bitmanip patch
Browse files Browse the repository at this point in the history
Adds the patch and updates the documentation.
  • Loading branch information
luismarques authored and imphil committed Mar 23, 2020
1 parent 1db1332 commit 43c1f54
Show file tree
Hide file tree
Showing 3 changed files with 1,802 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,22 @@ How to do a release
How to generate the bitmanip patches
------------------------------------

1. Generate the binutils patch.
1. Generate the binutils patch:

```
git clone https://github.com/riscv/riscv-binutils-gdb.git
cd riscv-binutils-gdb
git checkout riscv-bitmanip
git diff 612aac65 > 001-bitmanip.patch # 612aac65 is our upstream baseline
# 612aac65 is our upstream baseline
git diff 612aac65 > $TOP/patches/binutils/git-612aac65/001-bitmanip.patch
```

2. Generate the GCC patch: TODO.
2. Generate the GCC patch:

```
git clone https://github.com/riscv/riscv-gcc.git
cd riscv-gcc
git checkout riscv-bitmanip
# 49f75e008c0 is our upstream baseline
git diff 49f75e008c0 > $TOP/patches/gcc/git-49f75e00/001-bitmanip.patch
```
6 changes: 6 additions & 0 deletions lowrisc-toolchain-gcc-rv32imc.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,11 @@ CT_BINUTILS_DEVEL_VCS_git=y
CT_BINUTILS_DEVEL_URL="https://github.com/bminor/binutils-gdb.git"
CT_BINUTILS_DEVEL_REVISION="612aac65e690387c963c34a31dd1fb138d88a45c"

# We apply the gcc bitmanip patches on top of git commit 49f75e008c0
CT_GCC_SRC_DEVEL=y
CT_GCC_DEVEL_VCS_git=y
CT_GCC_DEVEL_URL="https://github.com/riscv/riscv-gcc.git"
CT_GCC_DEVEL_REVISION="49f75e008c0809eb3c74a163297b4aa8925c9f1c"

# The build script appends a definition of CT_LOCAL_PATCH_DIR down here, that
# points to the repo's patch directory.
Loading

0 comments on commit 43c1f54

Please sign in to comment.