smbios: build legacy mode code only for 'pc' machine
authorIgor Mammedov <imammedo@redhat.com>
Thu, 14 Mar 2024 15:22:52 +0000 (16:22 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 18 Mar 2024 12:42:45 +0000 (08:42 -0400)
commitb42b0e4daaa543bc9f8e24662f94d65f6481c4a0
tree5f5909373d9ac2d563e3887ce52eeae89b7d8c7d
parentd638a8659b7e957dede0cdc5afa569b733a10da5
smbios: build legacy mode code only for 'pc' machine

basically moving code around without functional change.
And exposing some symbols so that they could be shared
between smbbios.c and new smbios_legacy.c

plus some meson magic to build smbios_legacy.c only
for 'pc' machine and otherwise replace it with stub
if not selected.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Message-Id: <20240314152302.2324164-12-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/Kconfig
hw/smbios/Kconfig
hw/smbios/meson.build
hw/smbios/smbios.c
hw/smbios/smbios_legacy.c [new file with mode: 0644]
hw/smbios/smbios_legacy_stub.c [new file with mode: 0644]
include/hw/firmware/smbios.h