aboutsummaryrefslogtreecommitdiff
path: root/hw/nvram
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-01-22 16:27:33 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2018-02-05 18:09:45 +0100
commit50876ead08531686275e6fe1999a2d80c7450d67 (patch)
tree487c761d65102b93e0634b2ee7ba0be426c191f5 /hw/nvram
parent9d70618c6842570226866f9409d7b8c4d6489da6 (diff)
downloadqemu-50876ead08531686275e6fe1999a2d80c7450d67.zip
qemu-50876ead08531686275e6fe1999a2d80c7450d67.tar.gz
qemu-50876ead08531686275e6fe1999a2d80c7450d67.tar.bz2
i2c: Add a CONFIG_I2C master switch to the configuration files
The i2c core and the at24c EEPROM should only be compiled and linked on the machines that support i2c. Otherwise it's quite strange to see the at24c-eeprom to be "available" on qemu-system-s390x for example. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1516634853-15883-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/nvram')
-rw-r--r--hw/nvram/Makefile.objs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/Makefile.objs b/hw/nvram/Makefile.objs
index 0f4ee71..a912d25 100644
--- a/hw/nvram/Makefile.objs
+++ b/hw/nvram/Makefile.objs
@@ -1,6 +1,6 @@
common-obj-$(CONFIG_DS1225Y) += ds1225y.o
common-obj-y += eeprom93xx.o
-common-obj-y += eeprom_at24c.o
+common-obj-$(CONFIG_I2C) += eeprom_at24c.o
common-obj-y += fw_cfg.o
common-obj-y += chrp_nvram.o
common-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o