From 23393f3fa4777a0840a3048f2bdbafb640939082 Mon Sep 17 00:00:00 2001 From: ducky Date: Wed, 30 Sep 2015 14:44:07 -0700 Subject: Linux compatibility instructions and files --- README.md | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e02f0e8e..8c380041 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,39 @@ 4. As a favor, its useful to develop in stanza to give Patrick some language tips :) The hardest part to port will likely be the parser, but we hope to use an existing scala-based general-purpose parser for the port. -#### Installation instructions (for Mac): -*Disclaimer*: This project is going through development stages so there is no guarantee anything works. - `git clone https://github.com/ucb-bar/firrtl # Clone repository` - `make install-mac # Stanza installation` - `pip install lit # Install lit (this assumes you have pip installed)` - `make build # Build firrtl` - `make check # Run tests` - `make # Build & test` +#### Installation Instructions +*Disclaimer*: This project is going through development stages so there is no guarantee anything works. + +##### For Linux: + 1. Clone the repository: + `git clone https://github.com/ucb-bar/firrtl` + 1. Install Stanza: + `make install-mac` + 1. Install lit (you need to have pip installed first): + `pip install lit` + 1. Build firrtl: + `make build` + 1. Add `firrtl/utils/bin` to your `PATH`, so that the compiled firrtl will be + available anywhere. This also makes FileCheck available for the tests. + 1. Rename `FileCheck_linux` in `firrtl/utils/bin` to `FileCheck`. The original + `FileCheck` is a compiled Mac version and will not run on Linux. + *Note: This compiled binary may not run on all platforms. You may need to build + Clang/LLVM from source to extract the compiled FileCheck utility.* + 1. Run tests: + `make check` + 1. Build and test: + `make` + +##### For Mac: + 1. Clone the repository: + `git clone https://github.com/ucb-bar/firrtl` + 1. Install Stanza: + `make install-mac` + 1. Install lit (you need to have pip installed first): + `pip install lit` + 1. Build firrtl: + `make build` + 1. Run tests: + `make check` + 1. Build and test: + `make` -- cgit v1.2.3 From dd6f4b1c84941f4134ac31c4caa2ad74a522ffaf Mon Sep 17 00:00:00 2001 From: ducky Date: Tue, 6 Oct 2015 12:34:30 -0700 Subject: Fix readme for install-linux --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8c380041..8366ae74 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ 1. Clone the repository: `git clone https://github.com/ucb-bar/firrtl` 1. Install Stanza: - `make install-mac` + `make install-linux` 1. Install lit (you need to have pip installed first): `pip install lit` 1. Build firrtl: -- cgit v1.2.3