Add multiple build support styles
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 7 Jul 2015 06:41:23 +0000 (23:41 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Tue, 7 Jul 2015 06:41:23 +0000 (23:41 -0700)
commitf275d3dbbccd2ec0f987a96ef64ac076691826f4
tree893de73c374408110ed64717c8d54ed658dc809f
parent439a9f30fa9ea7ca0996f432116570957d80228f
Add multiple build support styles

* Add RPM and DEB packaging targets (using CPack from CMake) to build
  binary packages for Fedora and Ubuntu targets.
* Add Docker build scripts for each of the above that run the build in
  the right environment (assuming docker is available).
 - In Ubuntu, build against the LLVM 3.7 nightly snapshots
 - In Fedora, build against LLVM 3.7 from git (takes longer)
* Depending on packages installed on the build machine, it may be
  possible to cross-package for other targets without invoking Docker.
* Re-introduce src/cc/compat directory to keep the build stable for the
  time being. Similarly, it was necessary to #define some ugly constants
  that should eventually show up in libc.
* Add a few simple version checks to allow a partially working (really
  tracing only) libbcc in 4.1 kernels.

TODO (followup commit): Re-work the READMEs

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
15 files changed:
.dockerignore [new file with mode: 0644]
CMakeLists.txt
Dockerfile.fedora [new file with mode: 0644]
Dockerfile.ubuntu [new file with mode: 0644]
scripts/CMakeLists.txt
scripts/bpf_demo.ks.erb
src/cc/CMakeLists.txt
src/cc/b_frontend_action.cc
src/cc/compat/linux/bpf.h [new file with mode: 0644]
src/cc/compat/linux/bpf_common.h [new file with mode: 0644]
src/cc/export/helpers.h
src/cc/libbpf.c
src/python/CMakeLists.txt
src/python/bpf/__init__.py
src/python/setup.py.in