xref: /openbmc/qemu/hw/nvram/meson.build (revision de6cd7599b518f0c832cc85980196ec02c129a86)
133cda58fSPhilippe Mathieu-Daudéif have_system or have_tools
28d0bcebaSPhilippe Mathieu-Daudé  # QOM interfaces must be available anytime QOM is used.
38d0bcebaSPhilippe Mathieu-Daudé  qom_ss.add(files('fw_cfg-interface.c'))
433cda58fSPhilippe Mathieu-Daudéendif
58d0bcebaSPhilippe Mathieu-Daudé
6*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(files('fw_cfg.c'))
7*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_CHRP_NVRAM', if_true: files('chrp_nvram.c'))
8*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_DS1225Y', if_true: files('ds1225y.c'))
9*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_NMC93XX_EEPROM', if_true: files('eeprom93xx.c'))
10*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_AT24C', if_true: files('eeprom_at24c.c'))
11*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MAC_NVRAM', if_true: files('mac_nvram.c'))
12*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_otp.c'))
13*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_nvm.c'))
14*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_EFUSE_CRC', if_true: files('xlnx-efuse-crc.c'))
15*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_EFUSE', if_true: files('xlnx-efuse.c'))
16*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_EFUSE_VERSAL', if_true: files(
179e4aa1faSTong Ho                                                   'xlnx-versal-efuse-cache.c',
189e4aa1faSTong Ho                                                   'xlnx-versal-efuse-ctrl.c'))
19*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_EFUSE_ZYNQMP', if_true: files(
2067fa02f8STong Ho                                                   'xlnx-zynqmp-efuse.c'))
21*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_BBRAM', if_true: files('xlnx-bbram.c'))
229f6ede2fSMarc-André Lureau
239f6ede2fSMarc-André Lureauspecific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_nvram.c'))
24