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>
33 lines
1.6 KiB
Plaintext
33 lines
1.6 KiB
Plaintext
option('bpf_clang', type: 'string', value: 'clang',
|
|
description: 'clang to use when compiling .bpf.c')
|
|
option('bpftool', type: 'string',
|
|
description: 'bpftool to use when generating .bpf.skel.h. By default, bpftool is automatically downloaded and built during setup. To use an existing bpftool binary, point this to the bpftool path or set it to "disabled" to have meson try to find it automatically')
|
|
option('libbpf_a', type: 'string',
|
|
description: 'By default, libbpf is automatically downloaded and built during setup. To use an existing static library, point this to the libbpf.a file or set it to "disabled" to use dynamic linking')
|
|
option('libbpf_h', type: 'array',
|
|
description: 'libbpf header directories, only meaningful with libbpf_a option')
|
|
option('cargo', type: 'string', value: 'cargo',
|
|
description: 'cargo to use when building rust sub-projects')
|
|
option('cargo_home', type: 'string',
|
|
description: 'CARGO_HOME env to use when invoking cargo')
|
|
option('offline', type: 'boolean', value: 'false',
|
|
description: 'Compilation step should not access the internet')
|
|
option('enable_rust', type: 'boolean', value: 'true',
|
|
description: 'Enable rust sub-projects')
|
|
option('kernel', type: 'string', value: 'vmlinuz',
|
|
description: 'kernel image used to test schedulers')
|
|
option('kernel_headers', type: 'string', value: '',
|
|
description: 'kernel headers to build the schedulers')
|
|
option(
|
|
'systemd',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'sd-notify support via libsystemd and install systemd unit files'
|
|
)
|
|
option(
|
|
'openrc',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'openrc init.d service file'
|
|
)
|