Skip to content

Commit

Permalink
Merge pull request #1067 from frelon/meson-bpftool-scx-lib
Browse files Browse the repository at this point in the history
meson: Add scx_lib dep to gen_bpf_o
  • Loading branch information
htejun authored Dec 8, 2024
2 parents 82d6ee5 + a72c24e commit 5e1fea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion meson-scripts/compile_scx_lib
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dir="$PWD/lib"

libs=`find $dir -type f -name *.bpf.o | grep -v $lib.bpf.o`

bpftool gen object "$output" $libs
"$bpftool" gen object "$output" $libs
8 changes: 4 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,15 @@ bpf_includes = ['-I', join_paths(meson.current_source_dir(), 'scheds/include'),
'-I', join_paths(meson.current_source_dir(), 'scheds/include/bpf-compat'),
'-I', join_paths(meson.current_source_dir(), 'lib/include'),]

lib_objs = []
subdir('lib')

#
# Generators to build BPF skel file for C schedulers.
#
gen_bpf_o = generator(bpf_clang,
output: '@[email protected]',
depends: [libbpf],
depends: [libbpf, scx_lib],
arguments: [bpf_base_cflags, '-target', 'bpf', libbpf_c_headers, bpf_includes,
'-c', '@INPUT@', '-o', '@OUTPUT@'])

Expand Down Expand Up @@ -459,9 +462,6 @@ if enable_stress
endif
endif

lib_objs = []
subdir('lib')

thread_dep = dependency('threads')

subdir('scheds')
Expand Down

0 comments on commit 5e1fea8

Please sign in to comment.