summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-08-29 20:13:48 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-11-26 22:00:36 +0000
commit98f4d35aaeaab48a3b2d505fcd8d43e5c3452a44 (patch)
tree8db31b8aafe5602a8e19d0ab839357e18bd50633
parentf73f7b23184da815503b5e870faeb476b56096a2 (diff)
downloadedk2-98f4d35aaeaab48a3b2d505fcd8d43e5c3452a44.tar.gz
RedfishPkg: Drop ARM support
Redfish uses JsonLib, which supports encoding real numbers. This handling is implemented using C floating point types, which means that on 32-bit ARM, a softfloat library is required, even though the CPUs we still (marginally) care about all support floating point in hardware. The UEFI spec does not permit the use of floating point on ARM at all, and so the correct thing to do here is to simply disable this driver on 32-bit ARM entirely. Note that the ARM platform code does allow the VFP unit to be enabled at boot time, and so rebuilding this driver with hardware FP should be feasible, in case anyone has an interest in running it on a 32-bit ARM system. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
-rw-r--r--RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf5
-rw-r--r--RedfishPkg/RedfishPkg.dsc5
2 files changed, 2 insertions, 8 deletions
diff --git a/RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf b/RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf
index 0757960999..784ac4cac2 100644
--- a/RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf
+++ b/RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf
@@ -19,7 +19,7 @@
UNLOAD_IMAGE = RedfishHttpDriverUnload
#
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
+# VALID_ARCHITECTURES = IA32 X64 AARCH64 RISCV64
#
[Sources]
@@ -36,9 +36,6 @@
NetworkPkg/NetworkPkg.dec
RedfishPkg/RedfishPkg.dec
-[LibraryClasses.ARM]
- ArmSoftFloatLib
-
[LibraryClasses]
BaseLib
BaseMemoryLib
diff --git a/RedfishPkg/RedfishPkg.dsc b/RedfishPkg/RedfishPkg.dsc
index 3b1a02665d..789f0408b5 100644
--- a/RedfishPkg/RedfishPkg.dsc
+++ b/RedfishPkg/RedfishPkg.dsc
@@ -16,7 +16,7 @@
PLATFORM_VERSION = 1.0
DSC_SPECIFICATION = 0x0001001c
OUTPUT_DIRECTORY = Build/RedfishPkg
- SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
+ SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64|RISCV64
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
SKUID_IDENTIFIER = DEFAULT
@@ -52,9 +52,6 @@
IpmiLib|MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf
IpmiCommandLib|MdeModulePkg/Library/BaseIpmiCommandLibNull/BaseIpmiCommandLibNull.inf
-[LibraryClasses.ARM, LibraryClasses.AARCH64]
- ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
-
[Components]
RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibNull.inf
RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.inf