aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-17 14:22:24 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-06 10:21:20 +0100
commit90835c2b8127406615785a9d4348ffdf3c813c8a (patch)
tree8581be166dcf774a72b7b7d1b9e82f906e1305bf /softmmu
parentb1def33d191bf295b21c0dae9d17e0cf3d99255e (diff)
downloadqemu-90835c2b8127406615785a9d4348ffdf3c813c8a.zip
qemu-90835c2b8127406615785a9d4348ffdf3c813c8a.tar.gz
qemu-90835c2b8127406615785a9d4348ffdf3c813c8a.tar.bz2
seccomp: convert to meson
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'softmmu')
-rw-r--r--softmmu/meson.build2
-rw-r--r--softmmu/qemu-seccomp.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/softmmu/meson.build b/softmmu/meson.build
index 2dab6c7..d8e0301 100644
--- a/softmmu/meson.build
+++ b/softmmu/meson.build
@@ -28,5 +28,5 @@ softmmu_ss.add(files(
), sdl, libpmem, libdaxctl)
softmmu_ss.add(when: 'CONFIG_TPM', if_true: files('tpm.c'))
-softmmu_ss.add(when: 'CONFIG_SECCOMP', if_true: [files('qemu-seccomp.c'), seccomp])
+softmmu_ss.add(when: seccomp, if_true: files('qemu-seccomp.c'))
softmmu_ss.add(when: fdt, if_true: files('device_tree.c'))
diff --git a/softmmu/qemu-seccomp.c b/softmmu/qemu-seccomp.c
index 8325ecb..377ef69 100644
--- a/softmmu/qemu-seccomp.c
+++ b/softmmu/qemu-seccomp.c
@@ -202,7 +202,6 @@ static int seccomp_start(uint32_t seccomp_opts, Error **errp)
return rc < 0 ? -1 : 0;
}
-#ifdef CONFIG_SECCOMP
int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp)
{
if (qemu_opt_get_bool(opts, "enable", false)) {
@@ -328,4 +327,3 @@ static void seccomp_register(void)
}
}
opts_init(seccomp_register);
-#endif