[PATCH 7/8] meson-build: Enable CONFIG_REPLICATION only when replication is set

Juan Quintela posted 8 patches 3 years, 5 months ago
[PATCH 7/8] meson-build: Enable CONFIG_REPLICATION only when replication is set
Posted by Juan Quintela 3 years, 5 months ago
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 20fddbd707..cab0474d0c 100644
--- a/meson.build
+++ b/meson.build
@@ -1878,7 +1878,7 @@ config_host_data.set('CONFIG_DEBUG_STACK_USAGE', get_option('debug_stack_usage')
 config_host_data.set('CONFIG_GPROF', get_option('gprof'))
 config_host_data.set('CONFIG_LIVE_BLOCK_MIGRATION', get_option('live_block_migration').allowed())
 config_host_data.set('CONFIG_QOM_CAST_DEBUG', get_option('qom_cast_debug'))
-config_host_data.set('CONFIG_REPLICATION', get_option('live_block_migration').allowed())
+config_host_data.set('CONFIG_REPLICATION', get_option('replication').allowed())
 
 # has_header
 config_host_data.set('CONFIG_EPOLL', cc.has_header('sys/epoll.h'))
-- 
2.37.2
Re: [PATCH 7/8] meson-build: Enable CONFIG_REPLICATION only when replication is set
Posted by Thomas Huth 3 years, 4 months ago
On 02/09/2022 18.51, Juan Quintela wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>   meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 20fddbd707..cab0474d0c 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1878,7 +1878,7 @@ config_host_data.set('CONFIG_DEBUG_STACK_USAGE', get_option('debug_stack_usage')
>   config_host_data.set('CONFIG_GPROF', get_option('gprof'))
>   config_host_data.set('CONFIG_LIVE_BLOCK_MIGRATION', get_option('live_block_migration').allowed())
>   config_host_data.set('CONFIG_QOM_CAST_DEBUG', get_option('qom_cast_debug'))
> -config_host_data.set('CONFIG_REPLICATION', get_option('live_block_migration').allowed())
> +config_host_data.set('CONFIG_REPLICATION', get_option('replication').allowed())
>   
>   # has_header
>   config_host_data.set('CONFIG_EPOLL', cc.has_header('sys/epoll.h'))

Fixes: 406523f6b3 ("configure, meson: move block layer options to meson_options.txt")

Reviewed-by: Thomas Huth <thuth@redhat.com>