• Brenden Blanco's avatar
    Add option to change kernel build search paths · 3e2f9d9d
    Brenden Blanco authored
    Some linux distributions structure the /lib/modules directories
    differently, causing complexities. Add cmake overrides to be able to
    compile different behavior.
    
    If your distro sets up `/lib/modules/$(uname -r)/{source,build}` with
    header files split between the two (debian does this), then add
    -DBCC_KERNEL_HAS_SOURCE_DIR=1 to the cmake command line.
    
    If your distro just has something other than build/, but things are
    still in one subdirectory, then add -DBCC_KERNEL_MODULES_SUFFIX=foo to
    the cmake command line.
    
    Also, fix one implicit declaration warning introduced by the new
    bpf_get_stackid() helper.
    
    Fixes: #397
    Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
    3e2f9d9d
CMakeLists.txt 2.42 KB