From b36195917e35ead29ae7e4495696f2fe7d540ef6 Mon Sep 17 00:00:00 2001 From: Jake Garver Date: Wed, 20 Sep 2023 04:16:40 -0700 Subject: [PATCH] fix: Disable outline-atomics for nvethernetrm This fixes a compile issue on versions of GCC 10.x or later that enable outline-atomics by default. CompilerIntrinsicsLib supports many of these atomics, but not the ones in use by nvethernetrm. Signed-off-by: Jake Garver Reviewed-by: Jeff Brasen --- Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf b/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf index 364652d63f..f0da131a35 100644 --- a/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf +++ b/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf @@ -113,4 +113,7 @@ [BuildOptions] *_*_*_PP_FLAGS = -DUPDATED_PAD_CAL -DMACSEC_SUPPORT - *_*_*_CC_FLAGS = -DUPDATED_PAD_CAL -DMACSEC_SUPPORT -Wno-unused-function -Wno-self-assign + # -mno-outline-atomics is required for GCC 10.x and later, which makes + # -moutline-atomics the default. nvethernetrm uses atomics not currently + # supported by CompilerIntrinsicsLib. + *_*_*_CC_FLAGS = -DUPDATED_PAD_CAL -DMACSEC_SUPPORT -Wno-unused-function -Wno-self-assign -mno-outline-atomics