]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: bsd-user
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 18 Aug 2019 15:20:37 +0000 (19:20 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:30:38 +0000 (06:30 -0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile.target
bsd-user/Makefile.objs [deleted file]
bsd-user/meson.build [new file with mode: 0644]
meson.build

index a68859d7c2b92d800b9e878fb3c5694e18c35251..5c099fa79f61e0b76823e0e265809b87a06c68ff 100644 (file)
@@ -141,9 +141,6 @@ ifdef CONFIG_BSD_USER
 QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ABI_DIR) \
                         -I$(SRC_PATH)/bsd-user/$(HOST_VARIANT_DIR)
 
-obj-y += bsd-user/
-obj-y += gdbstub.o
-
 endif #CONFIG_BSD_USER
 
 #########################################################
diff --git a/bsd-user/Makefile.objs b/bsd-user/Makefile.objs
deleted file mode 100644 (file)
index 5e77f57..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
-               uaccess.o
diff --git a/bsd-user/meson.build b/bsd-user/meson.build
new file mode 100644 (file)
index 0000000..0369549
--- /dev/null
@@ -0,0 +1,10 @@
+bsd_user_ss.add(files(
+  'bsdload.c',
+  'elfload.c',
+  'main.c',
+  'mmap.c',
+  'signal.c',
+  'strace.c',
+  'syscall.c',
+  'uaccess.c',
+))
index 490f3d9c756948198e75a0f222f147199a27e579..df63f15ee73f70f79b95a81556c1d120b4e39f74 100644 (file)
@@ -705,8 +705,12 @@ subdir('net')
 subdir('replay')
 subdir('hw')
 subdir('accel')
+subdir('bsd-user')
 subdir('linux-user')
 
+bsd_user_ss.add(files('gdbstub.c'))
+specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
+
 linux_user_ss.add(files('gdbstub.c', 'thunk.c'))
 specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)