Browse Source
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>coverity
15 changed files with 57 additions and 42 deletions
@ -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) |
|||
|
|||
@ -1,4 +1,6 @@ |
|||
block_ss.add(files('utils.c')) |
|||
block_ss.add(when: 'CONFIG_LINUX', |
|||
if_true: files('pr-manager.c', 'pr-manager-helper.c'), |
|||
if_false: files('pr-manager-stub.c')) |
|||
if targetos == 'linux' |
|||
block_ss.add(files('pr-manager.c', 'pr-manager-helper.c')) |
|||
else |
|||
block_ss.add(files('pr-manager-stub.c')) |
|||
endif |
|||
|
|||
Loading…
Reference in new issue