Skip to content

feat(build,linux): Add Makefile script for build targets - #732

Merged
rabbitstack merged 2 commits into
linux-portfrom
add-makefile-for-build-targets
Sep 21, 2026
Merged

rabbitstack merged 2 commits into
linux-portfrom
add-makefile-for-build-targets

Conversation

@rabbitstack

@rabbitstack rabbitstack commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

What is the purpose of this PR / why it is needed?

The Makefile script automates the process of compiling the eBPF programs, Fibratus binary, running tests, formatting, etc. The bpf2go now drops all generated Go files + ebpf bytecode inside a separate bpf package, making it easier to navigate and distinguish the generated code.

What type of change does this PR introduce?


Uncomment one or more /kind <> lines:

/kind feature (non-breaking change which adds functionality)

/kind bug-fix (non-breaking change which fixes an issue)

/kind refactor (non-breaking change that restructures the code, while not changing the original functionality)

/kind breaking (fix or feature that would cause existing functionality to not work as expected

/kind cleanup

/kind improvement

/kind design

/kind documentation

/kind other (change that doesn't pertain to any of the above categories)

Any specific area of the project related to this PR?


Uncomment one or more /area <> lines:

/area instrumentation

/area telemetry

/area rule-engine

/area filters

/area yara

/area event

/area captures

/area alertsenders

/area outputs

/area rules

/area filaments

/area config

/area cli

/area tests

/area ci

/area build

/area docs

/area deps

/area evasion

/area other

Special notes for the reviewer


Does this PR introduce a user-facing change?


@rabbitstack rabbitstack changed the title feat(build): Add Makefile script for build targets feat(build,linux): Add Makefile script for build targets Sep 16, 2026
The Makefile script automates the process of compiling the eBPF
programs, Fibratus binary, running tests, formatting, etc.
The bpf2go now drops all generated Go files + ebpf bytecode inside a
separate bpf package making it easier to navigate and distinguish the
generated code.

@mostafa mostafa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bpf package split is the right direction. Makefile target paths do not match -output-dir, so make ebpf always rebuilds, and the committed objects fail the Ubuntu clang 18 drift check.

Proposed fix with regenerated objects: #734

Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread .github/workflows/linux-port.yml Outdated
Make looked for bindings next to the C sources, so every CI run rebuilt and failed the clang 18 drift check.
@rabbitstack
rabbitstack merged commit 44378df into linux-port Sep 21, 2026
8 checks passed
@rabbitstack
rabbitstack deleted the add-makefile-for-build-targets branch September 21, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants