Skip to content

Commit

Permalink
Strip BPF program
Browse files Browse the repository at this point in the history
  • Loading branch information
LOU Xun committed Sep 1, 2020
1 parent f000330 commit dbc0435
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ install_crate_args = ["cargo-bpf", "--git", "https://github.com/redsift/redbpf.g
command = "cargo"
args = ["bpf", "build", "block"]

[tasks.bpf]
command = "llvm-strip-10"
args = ["-R", ".text", "target/bpf/programs/block/block.elf"]
dependencies = ["build_xdp"]

[tasks.release]
description = "Build release"
command = "cargo"
args = ["build", "--release"]
dependencies = ["build_xdp"]
dependencies = ["bpf"]

0 comments on commit dbc0435

Please sign in to comment.