X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fcan%2Fmeson.build;fp=net%2Fcan%2Fmeson.build;h=bdf6f8eee16213f599d77d38c836f5d32aee7e61;hb=53e8868d69c195b6b57ccc6847057043c26df1b6;hp=45693c82c9d2e1d251d24a788e6fa37b154e8820;hpb=e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b;p=mirror_qemu.git diff --git a/net/can/meson.build b/net/can/meson.build index 45693c82c9..bdf6f8eee1 100644 --- a/net/can/meson.build +++ b/net/can/meson.build @@ -1,5 +1,7 @@ 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')) +if targetos == 'linux' + can_ss.add(files('can_socketcan.c')) +endif system_ss.add_all(when: 'CONFIG_CAN_BUS', if_true: can_ss)