]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/misc/Kconfig: add switch for i2c-echo
authorKlaus Jensen <k.jensen@samsung.com>
Wed, 23 Aug 2023 08:14:42 +0000 (10:14 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 12 Oct 2023 12:11:44 +0000 (14:11 +0200)
Associate i2c-echo with TEST_DEVICES and add a dependency on I2C.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20230823-i2c-echo-fixes-v1-2-ccc05a6028f0@samsung.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/misc/Kconfig
hw/misc/meson.build

index 858277bb60258baab408d97ddd048be4f058ad89..dba41afe6768642a6bcf90b80301e2cfe5d8a12f 100644 (file)
@@ -34,6 +34,11 @@ config PCA9552
     bool
     depends on I2C
 
+config I2C_ECHO
+    bool
+    default y if TEST_DEVICES
+    depends on I2C
+
 config PL310
     bool
 
index 33659313b4bb70dac48fc1533955c38832837f7a..f60de33f9afc2b367b4c408023f425b810d4a149 100644 (file)
@@ -138,7 +138,7 @@ system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
 
 system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
 
-system_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
+system_ss.add(when: 'CONFIG_I2C_ECHO', if_true: files('i2c-echo.c'))
 
 specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))