aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2016-01-26 22:09:37 +0000
committerGil Pitney <gil.pitney@linaro.org>2016-01-26 22:09:37 +0000
commitd989ae5f5011c0351f83cb9f88dfcb30a7bb74f4 (patch)
tree622899578624c17a3da3db01c652f4e4567f0750
parent95658d9e785a2d51fd02d69b462b9a001b31e3f4 (diff)
Updated README with LLVM config parameters
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r--README35
1 files changed, 23 insertions, 12 deletions
diff --git a/README b/README
index 4b6584f..f9c34e6 100644
--- a/README
+++ b/README
@@ -12,7 +12,7 @@ Prereqs
=======
The following packages need to be installed on your system prior to build:
-gcc 4.8 (for building llvm)
+gcc 4.8+ (for building llvm and shamrock)
cmake
check
libboost-all-dev
@@ -27,26 +27,32 @@ BUILD
LLVM Configuration:
-------------------
-This was tested using LLVM 3.6.0 stable release from:
-http://llvm.org/releases/download.html
+This was tested using and LLVM 3.8.0 pre-release from:
+http://llvm.org/git/llvm.git
+branch: release_38
Note: LLVM must be configured and built with certain options to link with
-shamrock for ARM.
+shamrock for ARM. RTTI must be enabled.
The following creates a release build for ARM, with LLVM installed
into /opt/llvm:
-% CC=gcc CXX=g++ ./configure --prefix=/opt/llvm --enable-jit --enable-targets=arm --enable-optimized --enable-assertions --with-float=hard --with-abi=aapcs-vfp
-% make -j4 REQUIRES_RTTI=1
-% sudo make -j4 install
-
-See: http://llvm.org/releases/3.6.0/docs/HowToBuildOnARM.html for updates.
+cmake -DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_TARGETS_TO_BUILD="ARM" \
+ -DLLVM_ENABLE_ASSERTIONS=True \
+ -DPYTHON_EXECUTABLE=/usr/bin/python \
+ -DCMAKE_INSTALL_PREFIX=/opt/llvm \
+ -DLLVM_ENABLE_RTTI=True \
+ -DCMAKE_C_FLAGS="-mcpu=cortex-a15" \
+ -DCMAKE_CXX_FLAGS="-mcpu=cortex-a15" \
+ ../llvm-3.8.src
+make -j4
+sudo make -j4 install
Shamrock Build:
---------------
-
-Current Branch: master
-
+Current Branch: llvm_3_8
+
Usage: cmake <project_src_dir> <optional_defines>*
If LLVM lives in a private path:
@@ -129,3 +135,8 @@ Debugging OpenCL Kernels:
the kernel function itself, disassemble, and stepi through the
assembly code.
+3. Debugging sanity tests with gdb:
+
+ It is best to pass the 'nofork' option to the tests program 'tests'
+
+