From 0d37a9a93a5d39b5fefb43836d1831eb788cab1f Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 17 Sep 2020 16:55:53 +0100 Subject: [PATCH] bios: Only warn about CSM when using i?86 or x86_64 We're telling people on PPC64 to switch to UEFI mode... --- plugins/bios/fu-plugin-bios.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/bios/fu-plugin-bios.c b/plugins/bios/fu-plugin-bios.c index 7b643a46b..b229bd627 100644 --- a/plugins/bios/fu-plugin-bios.c +++ b/plugins/bios/fu-plugin-bios.c @@ -73,15 +73,17 @@ gboolean fu_plugin_coldplug (FuPlugin *plugin, GError **error) { g_autofree gchar *sysfsfwdir = NULL; - g_autoptr(GError) error_local = NULL; g_autofree gchar *esrt_path = NULL; /* are the EFI dirs set up so we can update each device */ +#if defined(__x86_64__) || defined(__i386__) + g_autoptr(GError) error_local = NULL; if (!fu_efivar_supported (&error_local)) { const gchar *reason = "Firmware can not be updated in legacy BIOS mode, switch to UEFI mode"; g_warning ("%s", error_local->message); return fu_plugin_bios_create_dummy (plugin, reason, error); } +#endif /* get the directory of ESRT entries */ sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);