diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-26 12:20:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-12-31 09:11:28 +0100 |
commit | 53e8868d69c195b6b57ccc6847057043c26df1b6 (patch) | |
tree | d184c2ec45a3ffa0a924fffa4ec0d7782f0ebf95 /net/can | |
parent | e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b (diff) |
meson: remove OS definitions from config_targetos
CONFIG_DARWIN, CONFIG_LINUX and CONFIG_BSD are used in some rules, but
only CONFIG_LINUX has substantial use. Convert them all to if...endif.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
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) |