[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build
From: |
Karim Taha |
Subject: |
[PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build |
Date: |
Sun, 27 Aug 2023 17:57:20 +0200 |
From: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
---
bsd-user/bsd-proc.h | 4 ++++
bsd-user/meson.build | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h
index a1061bffb8..048773a75d 100644
--- a/bsd-user/bsd-proc.h
+++ b/bsd-user/bsd-proc.h
@@ -22,6 +22,10 @@
#include <sys/resource.h>
+#include "qemu-bsd.h"
+#include "gdbstub/syscalls.h"
+#include "qemu/plugin.h"
+
/* exit(2) */
static inline abi_long do_bsd_exit(void *cpu_env, abi_long arg1)
{
diff --git a/bsd-user/meson.build b/bsd-user/meson.build
index 5243122fc5..b97fce1472 100644
--- a/bsd-user/meson.build
+++ b/bsd-user/meson.build
@@ -7,6 +7,7 @@ bsd_user_ss = ss.source_set()
common_user_inc += include_directories('include')
bsd_user_ss.add(files(
+ 'bsd-proc.c',
'bsdload.c',
'elfload.c',
'main.c',
@@ -16,6 +17,11 @@ bsd_user_ss.add(files(
'uaccess.c',
))
+elf = cc.find_library('elf', required: true)
+procstat = cc.find_library('procstat', required: true)
+kvm = cc.find_library('kvm', required: true)
+bsd_user_ss.add(elf, procstat, kvm)
+
# Pull in the OS-specific build glue, if any
subdir(targetos)
--
2.40.0
- [PATCH 01/32] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics., (continued)
- [PATCH 01/32] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics., Karim Taha, 2023/08/28
- [PATCH 02/32] bsd-user: Implement procctl(2) system call., Karim Taha, 2023/08/28
- [PATCH 03/32] bsd-user: Implement host_to_target_siginfo., Karim Taha, 2023/08/28
- [PATCH 04/32] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h., Karim Taha, 2023/08/28
- [PATCH 05/32] bsd-user: add extern declarations for bsd-proc.c conversion functions, Karim Taha, 2023/08/28
- [PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build,
Karim Taha <=
- [PATCH 07/32] bsd-user: Implement target_to_host_resource conversion function, Karim Taha, 2023/08/28
- [PATCH 08/32] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion., Karim Taha, 2023/08/28
- [PATCH 10/32] bsd-user: Implement host_to_target_waitstatus conversion., Karim Taha, 2023/08/28
- [PATCH 09/32] bsd-user: Implement host_to_target_rusage and host_to_target_wrusage., Karim Taha, 2023/08/28
- [PATCH 13/32] bsd-user: Implement umask(2), setlogin(2) and getlogin(2), Karim Taha, 2023/08/28