+prefix = /usr/bin/
+ # Redhat 8.0 ia32 gcc-3.x version is reported to produce working EFI binaries.
+ # Redhat 9.0 ia32 gcc-3.x version is reported to produce BAD binaries.
+CC = $(prefix)gcc
+AS = $(prefix)as
+LD = $(prefix)ld
+AR = $(prefix)ar
+RANLIB = $(prefix)ranlib
+OBJCOPY = $(prefix)objcopy
+
+# Use Modified binutils that supports x86_64 using UEFI ABI
+ifeq ($(ARCH), x86_64)
+ CFLAGS += -DEFI_FUNCTION_WRAPPER
+ OBJCOPY = /usr/bin/objcopy
+endif
+