scx.cscheds: split into multiple outputs

Copy the compiled headers of bpftool and libbpf to dev output
As they will be needed in rust schedulers
This commit is contained in:
John Titor 2024-11-22 18:08:58 +05:30
parent d285c731ed
commit b51fd13e16
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -101,6 +101,17 @@ mkScxScheduler "c" {
"stackprotector"
];
# We copy the compiled header files to the dev output
# These are needed for the rust schedulers
preInstall = ''
mkdir -p ${placeholder "dev"}/libbpf
mkdir -p ${placeholder "dev"}/bpftool
cp -r libbpf/* ${placeholder "dev"}/libbpf/
cp -r bpftool/* ${placeholder "dev"}/bpftool/
'';
outputs = [ "bin" "dev" "out" ];
meta = {
description = "Sched-ext C userspace schedulers";
longDescription = ''