Skip to content

Commit

Permalink
Merge pull request torvalds#75 from sched-ext/scx-fix-rust_sched_deps
Browse files Browse the repository at this point in the history
tools/sched_ext/Makefile: Don't hard code scx_rusty in rust-sched _deps target
  • Loading branch information
Byte-Lab authored Nov 6, 2023
2 parents 90e1ad1 + f599483 commit eff9487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/sched_ext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ rust-sched-targets := scx_rusty
# CARGO_OFFLINE=1 (e.g. if building locally), then cargo build will download
# all of the necessary dependencies, and the deps target can be skipped.
$(addsuffix _deps,$(rust-sched-targets)):
$(Q)cargo fetch --manifest-path=scx_rusty/Cargo.toml
$(eval sched=$(@:_deps=))
$(Q)cargo fetch --manifest-path=$(sched)/Cargo.toml

$(rust-sched-targets): %: $(INCLUDE_DIR)/vmlinux.h $(SCX_COMMON_DEPS)
$(eval export RUSTFLAGS = -C link-args=-lzstd -C link-args=-lz -C link-args=-lelf -L $(BPFOBJ_DIR))
Expand Down

0 comments on commit eff9487

Please sign in to comment.