Commit 439a9f30 authored by Brenden Blanco's avatar Brenden Blanco

WIP: rpm packaging

Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
parent 3c8c6de4
......@@ -13,6 +13,7 @@ if(LIB64)
set(LIBSUFFIX 64)
endif()
if(NOT PYTHON_ONLY)
find_package(BISON)
find_package(FLEX)
find_package(LLVM REQUIRED CONFIG)
......@@ -42,6 +43,7 @@ ENDFOREACH()
set(CMAKE_C_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
endif()
add_subdirectory(scripts)
add_subdirectory(src)
......
......@@ -108,15 +108,19 @@ chmod +x /usr/local/bin/bpf-llvm-setup
cat > /usr/local/bin/bcc-setup <<'DELIM__'
#!/bin/bash
set -e -x
git clone https://github.com/svinota/pyroute2.git
(cd pyroute2; make install)
numcpu=$(grep -c ^processor /proc/cpuinfo)
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build/
cd bcc/build/
git checkout bblanco_dev
export PATH=/opt/local/llvm/bin:$PATH
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$numcpu
make test
DELIM__
chmod +x /usr/local/bin/bcc-setup
......
......@@ -7,5 +7,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(NOT PYTHON_ONLY)
add_subdirectory(cc)
endif()
add_subdirectory(python)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment