-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: reorganize driver cmake vars #423
Conversation
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
…the driver from the build Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
I really like this refinement! |
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
I think this is great Leo! |
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
set(DRIVER_NAME "scap") | ||
endif() | ||
|
||
if(NOT DEFINED DRIVER_DEVICE_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be used by scap too:
snprintf(filename, sizeof(filename), "%s/dev/" DRIVER_DEVICE_NAME "%d", scap_get_host_root(), all_scanned_devs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but it's not an issue. Since it's defined in driver_config.h
which is autogenerated and included 👇
#include "driver_config.h" |
All others definition in driver_config.h
work in the same way.
Am I wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
/kind design
/kind feature
Any specific area of the project related to this PR?
/area build
/area libscap
What this PR does / why we need it:
This is mainly required to allow Falco to include different versions of libs and drivers. Falco can now pull libs
WITH_DRIVER=Off
and separately pull the driver. Without this patch, the driver target was always added.Some other minor improvements are included.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: