mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-29 20:50:22 +00:00
eca7ecd24e
If we try to cross-build scx on builders with older versions of system's linux headers (such as those provided by linux-libc-headers in older releases of Ubuntu), we may hit build failures, due to the different kernel ABI, such as: error: invalid use of undefined type ‘struct btf_enum64’ To address this, introduce a new build option called "kernel_headers" that allows to specify a custom path for the kernel headers required during the build process. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
12 lines
485 B
Meson
12 lines
485 B
Meson
c_scheds = ['scx_simple', 'scx_qmap', 'scx_central', 'scx_pair', 'scx_flatcg', 'scx_userland', 'scx_nest']
|
|
|
|
foreach sched: c_scheds
|
|
thread_dep = dependency('threads')
|
|
bpf_o = gen_bpf_o.process(sched + '.bpf.c', extra_args: bpf_includes)
|
|
bpf_skel = gen_bpf_skel.process(bpf_o)
|
|
executable(sched, [bpf_skel, sched + '.c'],
|
|
include_directories: [user_c_includes],
|
|
dependencies: [kernel_dep, libbpf_dep, thread_dep],
|
|
install: true)
|
|
endforeach
|