Skip to contentSkip to conversation

ebpf: really include it only in system emulators

PATCH In review Paolo Bonzini 3 participants 3 messages Oct 12, 2021 – Oct 15, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ebpf: really include it only in system emulators

eBPF libraries are being included in user emulators, which is useless and also breaks --static compilation if a shared library for libbpf is present in the system.

---
 meson.build | 2 --
 1 file changed, 2 deletions(-)
meson.build +0 -2
index ca7b9d60af..6b7487b725 100644
@@ -2595,8 +2595,6 @@ subdir('bsd-user')
 subdir('linux-user')
 subdir('ebpf')
 
-common_ss.add(libbpf)
-
 bsd_user_ss.add(files('gdbstub.c'))
 specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
 
Signature · 1 line
2.31.1
Reviewed-by Tested-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 6 lines · Paolo Bonzini

eBPF libraries are being included in user emulators, which is useless and also breaks --static compilation if a shared library for libbpf is present in the system.

Quoted 16 lines
---
 meson.build | 2 --
 1 file changed, 2 deletions(-)
meson.build +0 -2
index ca7b9d60af..6b7487b725 100644
@@ -2595,8 +2595,6 @@ subdir('bsd-user')
 subdir('linux-user')
 subdir('ebpf')
 
-common_ss.add(libbpf)
-
 bsd_user_ss.add(files('gdbstub.c'))
 specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
Signature · 1 line
Alex Bennée