diff options
author | Evan Lojewski <github@meklort.com> | 2019-05-05 19:51:36 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-05-05 19:51:36 -0600 |
commit | a644a841c32446e1c3346fc1166efbc18d60c3c6 (patch) | |
tree | 0a40c554a2cb3484542368f3d6ac6047977d544d | |
parent | 9df3f81b37713d9da13ae088e4c50764045bb3fe (diff) | |
download | bcm5719-ortega-a644a841c32446e1c3346fc1166efbc18d60c3c6.tar.gz bcm5719-ortega-a644a841c32446e1c3346fc1166efbc18d60c3c6.zip |
README: Add steps for setting up the compiler.
-rw-r--r-- | CMakeLists.txt | 7 | ||||
-rw-r--r-- | README.md | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c6f4a8d..fc046cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,9 +42,10 @@ ### @endcond ################################################################################ -SET(CMAKE_C_COMPILER /usr/local/bin/clang) -SET(CMAKE_CXX_COMPILER /usr/local/bin/clang++) -SET(CMAKE_ASM_COMPILER /usr/local/bin/clang) + +SET(CMAKE_C_COMPILER $ENV{HOME}/llvm-bcm5719/bin/clang) +SET(CMAKE_CXX_COMPILER $ENV{HOME}/llvm-bcm5719/bin/clang++) +SET(CMAKE_ASM_COMPILER $ENV{HOME}/llvm-bcm5719/bin/clang) cmake_minimum_required(VERSION 3.5.1) project(bcm5719-top) @@ -16,6 +16,19 @@ This repository depends on a number of external tools - Flexelint/PCLint+ (optional) - IPXact generator (optional) +### Required Compiler +Due to limitations in the MIPS CPU, this firmware requires a custom compiler to function properly. +The custom compuler can be built using the following steps: +```bash +git clone https://github.com/meklort/llvm-project.git -b meklort-7.0.1 +cd llvm-project +mkdir build +cd build +cmake ../llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/llvm-bcm5719 +ninja +ninja install +``` + ## Status - Libraries: - MII Library: Done |