Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
86ec63fc
Commit
86ec63fc
authored
Sep 25, 2016
by
Dror Kronstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making selection of kernel headers type automatic
parent
0c8c179f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
86ec63fc
...
@@ -52,7 +52,9 @@ find_package(LibElf REQUIRED)
...
@@ -52,7 +52,9 @@ find_package(LibElf REQUIRED)
# Set to non-zero if system installs kernel headers with split source and build
# Set to non-zero if system installs kernel headers with split source and build
# directories in /lib/modules/`uname -r`/. This is the case for debian and
# directories in /lib/modules/`uname -r`/. This is the case for debian and
# suse, to the best of my knowledge.
# suse, to the best of my knowledge.
if
(
BCC_KERNEL_HAS_SOURCE_DIR
)
if
(
EXISTS
"
${
ROOT
}
/lib/modules/
${
CMAKE_SYSTEM_VERSION
}
/build"
AND EXISTS
"
${
ROOT
}
/lib/modules/
${
CMAKE_SYSTEM_VERSION
}
/source"
)
message
(
"Building for a split build/source kernel headers package"
)
set
(
BCC_KERNEL_HAS_SOURCE_DIR 1
)
set
(
BCC_KERNEL_HAS_SOURCE_DIR 1
)
set
(
BCC_KERNEL_MODULES_SUFFIX
"source"
)
set
(
BCC_KERNEL_MODULES_SUFFIX
"source"
)
else
()
else
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment