Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bcc
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
la
platform
external
bcc
Commits
86ec63fc
Commit
86ec63fc
authored
8 years ago
by
Dror Kronstein
Browse files
Options
Downloads
Patches
Plain Diff
Making selection of kernel headers type automatic
parent
0c8c179f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
with
3 additions
and
1 deletion
CMakeLists.txt
+
3
−
1
View file @
86ec63fc
...
...
@@ -52,7 +52,9 @@ find_package(LibElf REQUIRED)
# 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
# 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_MODULES_SUFFIX
"source"
)
else
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment