Skip to content

Commit

Permalink
fix small issue in build script, add README.md (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Burns <[email protected]>
  • Loading branch information
benjamincburns authored Apr 13, 2020
1 parent a2a4eae commit e417cd4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Besu Native

This repository contains scripts and tooling that is used to build and package the native libraries used by Hyperledger Besu.

## Prerequisites

### Linux

You'll need to be sure that gcc, make, autoconf, automake, and libtool are installed. If you are building on Ubuntu or Debian, the following command will install these dependencies for you:

```
sudo apt-get install build-essential automake autoconf libtool
```

### OS X

You'll need to be sure that XCode Command Line Tools, make, autoconf, automake, and libtool are installed. The easiest way to do this is to install [Homebrew](https://brew.sh/), and then run the following command. Note that installing Homebrew will automatically install the XCode command line tools.

```
brew install autoconf automake libtool
```

### Windows

TBD

## Building

1. This repository builds native libraries from source that is included as git submodules. To be sure that you have cloned those submodules into the appropriate locations, run `git submodule update`
2. The build steps are entirely contained within the `build.sh` script at the repository root. Simply run this script, and all of the native modules contained herin will be configured with the correct build options for Hyperledger Besu, and built.

7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ cd "$SCRIPTDIR/secp256k1/bitcoin-core-secp256k1"
# delete old build dir, if exists
rm -rf "$SCRIPTDIR/secp256k1/built" || true

if [[ -e Makefile ]]; then
make clean
fi


make clean && \
./autogen.sh && \
./autogen.sh && \
./configure --prefix="$SCRIPTDIR/secp256k1/built" $SECP256K1_BUILD_OPTS && \
make -j $CORE_COUNT && \
make -j $CORE_COUNT install
Expand Down

0 comments on commit e417cd4

Please sign in to comment.