summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorMarc-André Lureau2019-07-22 21:47:50 +0200
committerPaolo Bonzini2020-08-21 12:30:23 +0200
commitcdaf07228cf42d708fe24371a68cec022841e018 (patch)
tree314dea957075960791922c9749c680fcbc86e88a /net/can
parentmeson: convert migration directory to Meson (diff)
downloadqemu-cdaf07228cf42d708fe24371a68cec022841e018.tar.gz
qemu-cdaf07228cf42d708fe24371a68cec022841e018.tar.xz
qemu-cdaf07228cf42d708fe24371a68cec022841e018.zip
meson: convert net directory to Meson
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/can')
-rw-r--r--net/can/Makefile.objs2
-rw-r--r--net/can/meson.build5
2 files changed, 5 insertions, 2 deletions
diff --git a/net/can/Makefile.objs b/net/can/Makefile.objs
deleted file mode 100644
index 9f35dc5c87..0000000000
--- a/net/can/Makefile.objs
+++ /dev/null
@@ -1,2 +0,0 @@
-common-obj-y += can_core.o can_host.o
-common-obj-$(CONFIG_LINUX) += can_socketcan.o
diff --git a/net/can/meson.build b/net/can/meson.build
new file mode 100644
index 0000000000..f53d9ec54f
--- /dev/null
+++ b/net/can/meson.build
@@ -0,0 +1,5 @@
+can_ss = ss.source_set()
+can_ss.add(files('can_core.c', 'can_host.c'))
+can_ss.add(when: 'CONFIG_LINUX', if_true: files('can_socketcan.c'))
+
+softmmu_ss.add_all(when: 'CONFIG_CAN_BUS', if_true: can_ss)