qemu-e2k/hw/smbios
Igor Mammedov 5c5d00df67 hw/smbios: add stub for smbios_get_table_legacy()
QEMU build fails with

  hw/i386/fw_cfg.c:74: undefined reference to `smbios_get_table_legacy'

when it's built with only 'microvm' enabled i.e. with config patch

   +++ b/configs/devices/i386-softmmu/default.mak
   @@ -26,7 +26,7 @@

   # Boards:
   #
   -CONFIG_ISAPC=y
   -CONFIG_I440FX=y
   -CONFIG_Q35=y
   +CONFIG_ISAPC=n
   +CONFIG_I440FX=n
   +CONFIG_Q35=n

It happens because I've fogotten/lost smbios_get_table_legacy() stub.

Fix it by adding missing stub as Philippe suggested.

Fixes: b42b0e4daa "smbios: build legacy mode code only for 'pc' machine"
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-ID: <20240326122630.85989-1-imammedo@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-03-26 14:32:54 +01:00
..
Kconfig smbios: build legacy mode code only for 'pc' machine 2024-03-18 08:42:45 -04:00
meson.build smbios: build legacy mode code only for 'pc' machine 2024-03-18 08:42:45 -04:00
smbios_build.h hw/smbios: add core_count2 to smbios table type 4 2022-11-07 14:08:17 -05:00
smbios_legacy_stub.c hw/smbios: add stub for smbios_get_table_legacy() 2024-03-26 14:32:54 +01:00
smbios_legacy.c smbios: add extra comments to smbios_get_table_legacy() 2024-03-18 08:42:46 -04:00
smbios_type_38-stub.c hw/smbios: Remove "smbios_ipmi.h" 2018-12-19 16:48:16 -05:00
smbios_type_38.c smbios:ipmi: Ignore IPMI devices with no fwinfo function 2019-09-20 14:08:10 -05:00
smbios-stub.c hw/smbios: Dumb down smbios_entry_add() stub 2023-02-23 14:10:17 +01:00
smbios.c smbios: error out when building type 4 table is not possible 2024-03-18 08:42:46 -04:00