Skip to content

Commit

Permalink
Update libvirt script to use fedora22
Browse files Browse the repository at this point in the history
* Install into lib64 instead of lib
* Pull 4.2 kernel from rawhide instead of building it

Signed-off-by: Brenden Blanco <[email protected]>
  • Loading branch information
Brenden Blanco committed Jul 3, 2015
1 parent 87697ae commit 3c8c6de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set(CMAKE_BUILD_TYPE Debug)
enable_testing()

include(scripts/GetGitRevisionDescription.cmake)
get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if(LIB64)
set(LIBSUFFIX 64)
endif()

find_package(BISON)
find_package(FLEX)
Expand Down
14 changes: 6 additions & 8 deletions scripts/bpf_demo.ks.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ vim
bc
kexec-tools
cmake
clang
libstdc++-static
python-netaddr
python-futures
%end

%post --log=/root/anaconda-post.log
Expand All @@ -46,6 +46,8 @@ chkconfig network on

chkconfig ntpd on

dnf config-manager --add-repo=http:https://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo

yum -y clean metadata
yum -y update

Expand Down Expand Up @@ -108,15 +110,11 @@ cat > /usr/local/bin/bcc-setup <<'DELIM__'
set -e -x
numcpu=$(grep -c ^processor /proc/cpuinfo)

repo=ssh:https://[email protected]/iovisor/bcc.git
git ls-remote $repo 2>&1 > /dev/null
if [[ $? -ne 0 ]]; then
repo=https://<%= @github_access_token %>@github.com/iovisor/bcc.git
fi
git clone $repo
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build/
cd bcc/build/
cmake ..
export PATH=/opt/local/llvm/bin:$PATH
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$numcpu
make test
DELIM__
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_bpf_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ done

PASSWORD=${PASSWORD:-"iovisor"}
BRIDGE=${BRIDGE:-virbr0}
MIRROR=${MIRROR:-http:https://mirror.pnl.gov/fedora/linux/releases/21}
MIRROR=${MIRROR:-http:https://mirror.pnl.gov/fedora/linux/releases/22}
MEM=${MEM:-4094}
CPU=${CPU:-4}
SIZE=${SIZE:-40}
Expand Down
2 changes: 1 addition & 1 deletion src/cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ set(clang_libs ${libclangFrontend} ${libclangSerialization} ${libclangDriver} ${
# Link against LLVM libraries
target_link_libraries(bpfprog ${clang_libs} ${llvm_libs} LLVMBPFCodeGen)

install(TARGETS bpfprog LIBRARY DESTINATION lib)
install(TARGETS bpfprog LIBRARY DESTINATION lib${LIBSUFFIX})
install(DIRECTORY export/ DESTINATION share/bcc/include/bcc
FILES_MATCHING PATTERN "*.h")

0 comments on commit 3c8c6de

Please sign in to comment.